How to use Interpolation in SwiftUI

Smoothing out the edges of large images

Kelvin Tan
Swiftly Engineered iOS
2 min readApr 2, 2020

--

Photo by timJ on Unsplash.

I find it pretty funny that Apple doesn’t have any definition of interpolation. Oh well, I guess I will try my best to explain it then. Interpolation in SwiftUI can be used when an image is stretched larger than usual and you can see some pixels and lose some details. Interpolation pretty much helps you break up those pixels into smaller…

--

--

Kelvin Tan
Swiftly Engineered iOS

Father, husband, software engineer. Building software and building a family, one line of code and one moment at a time. 🚀💻💙 http://ko-fi.com/kelvintanzy