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

Modal navigation stack presentation detents #38

Merged
merged 6 commits into from
Feb 6, 2025

Conversation

ssestak
Copy link
Contributor

@ssestak ssestak commented Jan 28, 2025

Add support of Presentation detents for NavigationStack.
In next PR I will add support for "height" detent, since it's more complex and not so clean in code base. Than we can decide if we want to support "heigh" detent as well.

In iOS 18+, presentation detents start working for this case even if you defined detent in Component of rootView of NavigationStack. In pervious versions iOS this not works 😞.

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2025-01-28.at.12.42.25.mp4

jmarek41
jmarek41 previously approved these changes Jan 28, 2025
@ssestak ssestak force-pushed the feature/Modal-navigation-stack-presentation-detents branch from 535b2a9 to f2025f1 Compare January 28, 2025 12:20
@ssestak ssestak merged commit b63b80a into main Feb 6, 2025
1 check passed
@ssestak ssestak deleted the feature/Modal-navigation-stack-presentation-detents branch February 6, 2025 02:30
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.

2 participants