In a macOS or iOS app, you can easily add a zoom feature to any SwiftUI view with the scaleEffect modifier. In the below example, I am using a Slider to control the zoom level. Here’s how you can implement zooming in and out with a slider:
You have an Ad Blocker, great!
I have one too, but I try to support specific creators whose content I like. You can do the same.
I promise, there won't be more than two ads on a page, and you will still have a great
experience :)
Enter your email here to get an update when there's a new blog post. If you prefer using a
feed reader instead, you can easily add my feed to your reader.