SwiftUI: Calculate Scroll Offset in ScrollViews

Learn how to computer real-time offsets in a SwiftUI ScrollView

Alessandro Manilii
Better Programming
Published in
3 min readJan 8, 2022

--

Photo by Markus Spiske on Unsplash

SwiftUI, the new declarative way to create user interfaces, is really an amazing framework. A lot of things can be done in no time with full live previews but, sometimes, replicating something quite common in UIKit can become a pain in the neck. ScrollView offsets are one of…

--

--

I’m an Italian professional iOS Developer, iOS Tech Lead at Wakala — Join Medium from the following link: https://medium.com/@alessandromanilii/membership