From 0df1efb28b92b45b361f3f27c6240d96a25736a2 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sun, 18 Dec 2022 15:51:47 -0800 Subject: [PATCH] Cleanup --- 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 90c81b5..5bbcf9c 100644 --- a/Sources/Secretive/Views/CreateSecretView.swift +++ b/Sources/Secretive/Views/CreateSecretView.swift @@ -74,27 +74,29 @@ struct ThumbnailPickerView: View { _selection = selection } - var body: some View { HStack(alignment: .top) { ForEach(items) { item in VStack(alignment: .leading, spacing: 5) { item.thumbnail - .frame(width: 250, height: 200) - .clipShape(RoundedRectangle(cornerRadius: 10, style: .continuous)) + .frame(height: 200) .overlay(RoundedRectangle(cornerRadius: 10) - .stroke(lineWidth: item.value == selection ? 5 : 0)) + .stroke(lineWidth: item.value == selection ? 15 : 0)) + .clipShape(RoundedRectangle(cornerRadius: 10, style: .continuous)) .foregroundColor(.accentColor) Text(item.name) .bold() - Text(item.description).frame(width: 250) + Text(item.description) + .fixedSize(horizontal: false, vertical: true) } + .frame(width: 250) .onTapGesture { withAnimation(.spring()) { selection = item.value } } } + .padding(5) } }