Reputation: 19449
is there any way to disable antialiasing when scaling images in uiimage? thanks
Upvotes: 19
Views: 4944
Reputation: 1135
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
Upvotes: 3
Reputation: 57149
Add the QuartzCore framework to your project, then set the image view’s layer
’s magnificationFilter
property to kCAFilterNearest
.
Upvotes: 37