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:
2026-04-22 06:27:45 +02:00
parent 22e1d68217
commit 3ac221a049
+4 -2
View File
@@ -76,6 +76,7 @@ struct AddMomentView: View {
var body: some View {
NavigationStack {
ScrollView {
VStack(alignment: .leading, spacing: 20) {
// Person-Kontext-Chip
@@ -135,7 +136,7 @@ struct AddMomentView: View {
.padding(.vertical, 10)
.focused($isFocused)
}
.frame(minHeight: 180)
.frame(minHeight: 120)
.background(theme.surfaceCard)
.clipShape(RoundedRectangle(cornerRadius: theme.radiusCard))
.padding(.horizontal, 20)
@@ -158,13 +159,14 @@ struct AddMomentView: View {
.transition(.opacity.combined(with: .move(edge: .top)))
}
Spacer()
}
.animation(.easeInOut(duration: 0.2), value: showsCalendarSection)
.animation(.easeInOut(duration: 0.2), value: showsReminderSection)
.animation(.easeInOut(duration: 0.2), value: selectedType)
.animation(.easeInOut(duration: 0.2), value: addToCalendar)
.animation(.easeInOut(duration: 0.2), value: addReminder)
.padding(.bottom, 24)
} // ScrollView
.background(theme.backgroundPrimary.ignoresSafeArea())
.navigationTitle("Moment festhalten")
.navigationBarTitleDisplayMode(.inline)