is there any way to disable antialiasing when scaling images in uiimage? thanks
Add the QuartzCore framework to your project, then set the image view’s layer
’s magnificationFilter
property to kCAFilterNearest
.
I was working with SpriteKit in Xcode 11 (Swift 5) and also got this problem. To solve it (i.e. disable anti-aliasing) i did the following:
texture?.filteringMode = SKTextureFilteringMode.nearest
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With