improvbe text field

This commit is contained in:
neon443
2025-06-19 15:02:46 +01:00
parent 3fe9077e69
commit be68c44ffe

View File

@@ -70,16 +70,16 @@ struct AddEventView: View {
// dscription // dscription
ZStack { ZStack {
TextField("Event Notes", text: $event.notes) if event.notes.isEmpty {
.textFieldStyle(RoundedBorderTextFieldStyle()) HStack {
.padding(.trailing, event.notes.isEmpty ? 0 : 30) Text("Event Notes")
.animation(.spring, value: event.notes) .opacity(0.5)
.focused($focusedField, equals: Field.Notes) Spacer()
.lineLimit(5)
.onSubmit {
focusedField = nil
} }
} }
TextEditor(text: $event.notes)
.lineLimit(10)
}
ColorPicker("Event Color", selection: $event.color.colorBind) ColorPicker("Event Color", selection: $event.color.colorBind)