From 7bb546351cb1e1e12978a851c95e94c6eec17553 Mon Sep 17 00:00:00 2001 From: Zheng Date: Mon, 26 Sep 2022 18:05:53 -0700 Subject: [PATCH] Add header --- .../PrismExample/Gallery/GalleryView.swift | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Example/PrismExample/PrismExample/Gallery/GalleryView.swift b/Example/PrismExample/PrismExample/Gallery/GalleryView.swift index b421801..d485a74 100644 --- a/Example/PrismExample/PrismExample/Gallery/GalleryView.swift +++ b/Example/PrismExample/PrismExample/Gallery/GalleryView.swift @@ -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