Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPad sheet alignment and side padding options #158

Closed
wants to merge 5 commits into from

Conversation

mstoreytr
Copy link

@mstoreytr mstoreytr commented Apr 6, 2024

By default the BottomSheet on iPads will appear over the top left corner of the screen.
The top placement can be changed to the bottom by setting enableFloatingIPadSheet to false, but the sheet stays align to the .bottomLeading alignment.

In order for the sheet to be placed on the right side of the screen a new modifier called iPadSheetAlignment has been added.

Also another modifier called sheetSidePadding was added to allow for side padding of the sheet to prevent the sheet from hugging the side.

Default iPad Sheet:
Simulator Screenshot - iPad mini (6th generation) - 2024-04-06 at 11 00 22

iPad Sheet with enableFloatingIPadSheet set to false:
Simulator Screenshot - iPad mini (6th generation) - 2024-04-06 at 10 47 25

iPad Sheet with enableFloatingIPadSheet set to false, iPadSheetAlignment set to .bottomTrailing, and sheetSidePadding set to 20:

Simulator Screenshot - iPad mini (6th generation) - 2024-04-06 at 10 47 06

@lucaszischka lucaszischka added bug Something isn't working enhancement New feature or request labels Apr 10, 2024
@mstoreytr mstoreytr closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants