Skip to content

Instantly share code, notes, and snippets.

@yfujiki
Last active July 2, 2019 18:21
Show Gist options
  • Save yfujiki/d44d71768590d9a6913c939aade4ecef to your computer and use it in GitHub Desktop.
Save yfujiki/d44d71768590d9a6913c939aade4ecef to your computer and use it in GitHub Desktop.
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