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

Path config underscores #63

Merged
merged 4 commits into from
Dec 18, 2024
Merged

Path config underscores #63

merged 4 commits into from
Dec 18, 2024

Conversation

joemasilotti
Copy link
Member

This PR matches path configuration values using underscores to match Navigation.Presentation.clearAll and Navigation.Presentation.replaceRoot.

It also removes an empty test file and fixes a test to work with iOS 18+.

Copy link
Contributor

@svara svara left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks for addressing this @joemasilotti.

Comment on lines +342 to +351
// For most view controllers, UIKit maps [automatic] to:
// UIModalPresentationStyle.formSheet in iOS 18 and later
// UIModalPresentationStyle.pageSheet in versions of iOS earlier than iOS 18
// Some system view controllers may map it to a different style.
// https://developer.apple.com/documentation/uikit/uimodalpresentationstyle/automatic
if #available(iOS 18, *) {
XCTAssertEqual(modalNavigationController.modalPresentationStyle, .formSheet)
} else {
XCTAssertEqual(modalNavigationController.modalPresentationStyle, .pageSheet)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

👌

@jayohms jayohms merged commit aa5da14 into main Dec 18, 2024
1 check passed
@jayohms jayohms deleted the path-config-underscores branch December 18, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants