Skip to content

Commit

Permalink
Add header
Browse files Browse the repository at this point in the history
  • Loading branch information
aheze committed Sep 27, 2022
1 parent a258282 commit 7bb5463
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Example/PrismExample/PrismExample/Gallery/GalleryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,20 @@ struct GalleryView: View {

var body: some View {
LazyVGrid(columns: columns, spacing: 8) {
ColorGalleryView(model: model)
Section {
ColorGalleryView(model: model)

GradientGalleryView(model: model)
GradientGalleryView(model: model)

ImageGalleryView(model: model)
ImageGalleryView(model: model)

GlassGalleryView(model: model)
GlassGalleryView(model: model)
} header: {
Text("Templates")
.foregroundColor(UIColor.secondaryLabel.color)
.textCase(.uppercase)
.frame(maxWidth: .infinity, alignment: .leading)
}
}
.padding(.horizontal, 20)
.navigationDestination(for: DetailKind.self) { kind in
Expand Down

0 comments on commit 7bb5463

Please sign in to comment.