How to master grid layout in iOS with SwiftUI
Published in
4 min readJul 1, 2021
Grid layouts enable us to show views in a grid that expands either vertically or horizontally. For instance, we’ve all seen it in the iOS Photos application. Those who have worked with UIKit might recognize it as UICollectionView.
SwiftUI offers two excellent options — LazyVGrid
and LazyHGrid
. This time, we will dig deeper and understand how we can use these components. The great thing…