Fix text field bottom padding in EditorView (#1570)

This commit is contained in:
Eslam Nahel 2023-09-17 08:47:15 +02:00 committed by GitHub
parent 5b0f10f0a2
commit 3853eff065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,10 @@ public struct StatusEditorView: View {
}
.padding(.top, 8)
.padding(.bottom, 40)
}.accessibilitySortPriority(1) // Ensure that all elements inside the `ScrollView` occur earlier than the accessory views
}
.accessibilitySortPriority(1) // Ensure that all elements inside the `ScrollView` occur earlier than the accessory views
.padding(.top, 1) // hacky fix for weird SwiftUI scrollView bug when adding padding
.padding(.bottom, 48)
VStack(alignment: .leading, spacing: 0) {
StatusEditorAutoCompleteView(viewModel: viewModel)
StatusEditorAccessoryView(isSpoilerTextFocused: $isSpoilerTextFocused,