onevcat / APNGKit

High performance and delightful way to play with APNG format in iOS.
MIT License
2.21k stars 201 forks source link

visionOS Support #142

Closed m4p closed 7 months ago

m4p commented 8 months ago

This adds support for visionOS by using UITraitCollection.current to get the correct display scale. Downside: bumps minimum iOS requirements from 9 to 13.

onevcat commented 7 months ago

Thanks for it!

Although increasing the minimal target should be not a big problem, there should be a better way and I will check it soon when I have time!

onevcat commented 7 months ago

@m4p Thanks for this PR.

I applied some similar changes as well as other fixes to the project file / manifest file and podspec in #146. Now I believe we can have the native support for visionOS. Thank you for suggesting it!

I will try to test it a bit more before I can tag it with a new version soon.