mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-04-10 17:47:19 +00:00
.
This commit is contained in:
parent
2fd4f74a41
commit
9c5eceb4a2
@ -7,7 +7,7 @@ struct CreateSecretView<StoreType: SecretStoreModifiable>: View {
|
|||||||
@Binding var showing: Bool
|
@Binding var showing: Bool
|
||||||
|
|
||||||
@State private var name = ""
|
@State private var name = ""
|
||||||
@State private var requiresAuthentication = false
|
@State private var requiresAuthentication = true
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack {
|
VStack {
|
||||||
@ -75,9 +75,9 @@ struct ThumbnailPickerView<ValueType: Hashable>: View {
|
|||||||
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
HStack {
|
HStack(alignment: .top) {
|
||||||
ForEach(items) { item in
|
ForEach(items) { item in
|
||||||
VStack {
|
VStack(alignment: .leading, spacing: 5) {
|
||||||
item.thumbnail
|
item.thumbnail
|
||||||
.frame(width: 250, height: 200)
|
.frame(width: 250, height: 200)
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 10, style: .continuous))
|
.clipShape(RoundedRectangle(cornerRadius: 10, style: .continuous))
|
||||||
@ -86,10 +86,12 @@ struct ThumbnailPickerView<ValueType: Hashable>: View {
|
|||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
Text(item.name)
|
Text(item.name)
|
||||||
.bold()
|
.bold()
|
||||||
Text(item.description)
|
Text(item.description).frame(width: 250)
|
||||||
}
|
}
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
selection = item.value
|
withAnimation(.spring()) {
|
||||||
|
selection = item.value
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user