AddMomentView: ScrollView + kleineres Textfeld für KI-Vorschläge
TextEditor auf minHeight 120 verkleinert, VStack in ScrollView eingebettet – KI-Vorschläge schieben den Editierbereich nicht mehr aus dem Sichtfeld. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -76,6 +76,7 @@ struct AddMomentView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationStack {
|
NavigationStack {
|
||||||
|
ScrollView {
|
||||||
VStack(alignment: .leading, spacing: 20) {
|
VStack(alignment: .leading, spacing: 20) {
|
||||||
|
|
||||||
// Person-Kontext-Chip
|
// Person-Kontext-Chip
|
||||||
@@ -135,7 +136,7 @@ struct AddMomentView: View {
|
|||||||
.padding(.vertical, 10)
|
.padding(.vertical, 10)
|
||||||
.focused($isFocused)
|
.focused($isFocused)
|
||||||
}
|
}
|
||||||
.frame(minHeight: 180)
|
.frame(minHeight: 120)
|
||||||
.background(theme.surfaceCard)
|
.background(theme.surfaceCard)
|
||||||
.clipShape(RoundedRectangle(cornerRadius: theme.radiusCard))
|
.clipShape(RoundedRectangle(cornerRadius: theme.radiusCard))
|
||||||
.padding(.horizontal, 20)
|
.padding(.horizontal, 20)
|
||||||
@@ -158,13 +159,14 @@ struct AddMomentView: View {
|
|||||||
.transition(.opacity.combined(with: .move(edge: .top)))
|
.transition(.opacity.combined(with: .move(edge: .top)))
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer()
|
|
||||||
}
|
}
|
||||||
.animation(.easeInOut(duration: 0.2), value: showsCalendarSection)
|
.animation(.easeInOut(duration: 0.2), value: showsCalendarSection)
|
||||||
.animation(.easeInOut(duration: 0.2), value: showsReminderSection)
|
.animation(.easeInOut(duration: 0.2), value: showsReminderSection)
|
||||||
.animation(.easeInOut(duration: 0.2), value: selectedType)
|
.animation(.easeInOut(duration: 0.2), value: selectedType)
|
||||||
.animation(.easeInOut(duration: 0.2), value: addToCalendar)
|
.animation(.easeInOut(duration: 0.2), value: addToCalendar)
|
||||||
.animation(.easeInOut(duration: 0.2), value: addReminder)
|
.animation(.easeInOut(duration: 0.2), value: addReminder)
|
||||||
|
.padding(.bottom, 24)
|
||||||
|
} // ScrollView
|
||||||
.background(theme.backgroundPrimary.ignoresSafeArea())
|
.background(theme.backgroundPrimary.ignoresSafeArea())
|
||||||
.navigationTitle("Moment festhalten")
|
.navigationTitle("Moment festhalten")
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
|
|||||||
Reference in New Issue
Block a user