Skip to content

Keyboard hides part of the form - #5

Open
ulibath wants to merge 2 commits into
mainfrom
feature/scrollview-should-not-ignore-keyboard-safe-area
Open

Keyboard hides part of the form#5
ulibath wants to merge 2 commits into
mainfrom
feature/scrollview-should-not-ignore-keyboard-safe-area

Conversation

@ulibath

@ulibath ulibath commented Oct 23, 2023

Copy link
Copy Markdown
Collaborator

IOS-4493

Removed ignoreSafeAre .bottom from the submission form, so the submission button does not disappear behind the keyboard

…sion button does not disappear behind the keyboard
@ulibath
ulibath requested a review from frankschlegel October 23, 2023 12:53
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(backgroundColor)
.ignoresSafeArea(edges: [.leading, .bottom, .trailing])
.ignoresSafeArea(edges: [.leading, .trailing])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might have been a rationale behind this. I think we're more on the safe side if you define it for specific regions. What happens if you do .ignoresSafeArea(.container, edges: [.leading, .bottom, .trailing])?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Maybe you can tell the inner scrollview to respect the safe area this way. There is also the .keyboard region, maybe that helps.

.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(backgroundColor)
.ignoresSafeArea(edges: [.leading, .bottom, .trailing])
.ignoresSafeArea(edges: [.leading, .trailing])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Maybe you can tell the inner scrollview to respect the safe area this way. There is also the .keyboard region, maybe that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants