SwiftUI ScrollView Centered Items with ScrollTargetBehavior
Dec 21, 2024 · 2 min read · Let’s make a ScrollView show a bunch of views horizontally, and center each one as the user scrolls, while also showing edges of adjacent ones. In a hurry to get the entire code? It’s at the bottom of the article. Any time a ScrollView scrolls, it c...
Join discussion