mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
improvbe text field
This commit is contained in:
@@ -70,15 +70,15 @@ 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user