From 3ac221a04932485707c0da5b513c423c41cb79f5 Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 22 Apr 2026 06:27:45 +0200 Subject: [PATCH] =?UTF-8?q?AddMomentView:=20ScrollView=20+=20kleineres=20T?= =?UTF-8?q?extfeld=20f=C3=BCr=20KI-Vorschl=C3=A4ge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- nahbar/nahbar/AddMomentView.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nahbar/nahbar/AddMomentView.swift b/nahbar/nahbar/AddMomentView.swift index 403ddca..7d6d3d6 100644 --- a/nahbar/nahbar/AddMomentView.swift +++ b/nahbar/nahbar/AddMomentView.swift @@ -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)