Last active
July 2, 2019 18:21
-
-
Save yfujiki/d44d71768590d9a6913c939aade4ecef to your computer and use it in GitHub Desktop.
Overview ScrollView Architecture for https://github.com/yfujiki/SwiftUICollectionLayoutSample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ScrollView { | |
| VStack(alignment: .leading, spacing: 16) { | |
| // MARK: - Brand Names Section | |
| HeaderView(headerText: "Brand Names") | |
| ScrollView(showsHorizontalIndicator: false) { | |
| HStack {...} | |
| } | |
| .frame(height: 64) | |
| // MARK: - Cat Foods Section | |
| HeaderView(headerText: "Cat Foods") | |
| ScrollView(showsHorizontalIndicator: false) { | |
| HStack {...} | |
| } | |
| .frame(height: 120) | |
| // MARK: - Cats Section | |
| HeaderView(headerText: "Cats") | |
| ForEach(cats.identified(by: \.self)) {...} | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment