Fixes to add tag group view
This commit is contained in:
parent
8ace002e4a
commit
fbff719066
|
@ -17,6 +17,7 @@ struct AddTagGroupView: View {
|
||||||
@State private var sfSymbolName: String = ""
|
@State private var sfSymbolName: String = ""
|
||||||
@State private var tags: [String] = []
|
@State private var tags: [String] = []
|
||||||
@State private var newTag: String = ""
|
@State private var newTag: String = ""
|
||||||
|
@State private var popupTagsPresented = false
|
||||||
|
|
||||||
private var canSave: Bool {
|
private var canSave: Bool {
|
||||||
!title.isEmpty &&
|
!title.isEmpty &&
|
||||||
|
@ -34,6 +35,7 @@ struct AddTagGroupView: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationStack {
|
NavigationStack {
|
||||||
|
ZStack(alignment: .bottom) {
|
||||||
Form {
|
Form {
|
||||||
metadataSection
|
metadataSection
|
||||||
keywordsSection
|
keywordsSection
|
||||||
|
@ -53,12 +55,11 @@ struct AddTagGroupView: View {
|
||||||
.disabled(!canSave)
|
.disabled(!canSave)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
symbolsSuggestionView
|
||||||
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
focusedField = .title
|
focusedField = .title
|
||||||
}
|
}
|
||||||
.overlay(alignment: .bottom) {
|
|
||||||
symbolsSuggestionView
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,10 +87,9 @@ struct AddTagGroupView: View {
|
||||||
Image(systemName: sfSymbolName)
|
Image(systemName: sfSymbolName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
@State private var popupTagsPresented = false
|
|
||||||
|
|
||||||
private var keywordsSection: some View {
|
private var keywordsSection: some View {
|
||||||
Section("add-tag-groups.edit.tags") {
|
Section("add-tag-groups.edit.tags") {
|
||||||
ForEach(tags, id: \.self) { tag in
|
ForEach(tags, id: \.self) { tag in
|
||||||
|
|
Loading…
Reference in New Issue