From 9c5eceb4a2fdd889a62ad37efd10bbe992c2216a Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sun, 20 Mar 2022 14:53:35 -0700 Subject: [PATCH] . --- Sources/Secretive/Views/CreateSecretView.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Sources/Secretive/Views/CreateSecretView.swift b/Sources/Secretive/Views/CreateSecretView.swift index 1a5e74a..0538da1 100644 --- a/Sources/Secretive/Views/CreateSecretView.swift +++ b/Sources/Secretive/Views/CreateSecretView.swift @@ -7,7 +7,7 @@ struct CreateSecretView: View { @Binding var showing: Bool @State private var name = "" - @State private var requiresAuthentication = false + @State private var requiresAuthentication = true var body: some View { VStack { @@ -75,9 +75,9 @@ struct ThumbnailPickerView: View { var body: some View { - HStack { + HStack(alignment: .top) { ForEach(items) { item in - VStack { + VStack(alignment: .leading, spacing: 5) { item.thumbnail .frame(width: 250, height: 200) .clipShape(RoundedRectangle(cornerRadius: 10, style: .continuous)) @@ -86,10 +86,12 @@ struct ThumbnailPickerView: View { .foregroundColor(.accentColor) Text(item.name) .bold() - Text(item.description) + Text(item.description).frame(width: 250) } .onTapGesture { - selection = item.value + withAnimation(.spring()) { + selection = item.value + } } } }