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

Fixed navigationViewStyle and wrapped controller presentationStyle for iPad #2

Merged
merged 3 commits into from
Jun 14, 2021

Conversation

sjrmanning
Copy link
Member

By default iPad is using a split view so the contact list is only showing on the left in a split view. This sets an explicit navigationViewStyle to show the content as a single top view on iPad instead of a split view.

Related to #1

This shows the content as a single top view on iPad instead of a split
view and simplifies navigation.
@sjrmanning sjrmanning mentioned this pull request Jun 10, 2021
Copy link

@pseligman pseligman left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@sjrmanning
Copy link
Member Author

As mentioned in #1, the later commits here fix the iPad presentation issue by using an explicit presentationStyle. Without this set, the presentation on iPad is defaulting to a popover presentation, which would require a sourceView set.

Copy link

@pseligman pseligman left a comment

Choose a reason for hiding this comment

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

Verified this works as expected on iPad and iPhone UIs.

@sjrmanning sjrmanning changed the title Use explicit navigationViewStyle on ContentView NavigationView Fixed navigationViewStyle and wrapped controller presentationStyle for iPad Jun 14, 2021
@sjrmanning sjrmanning merged commit 6a760a3 into main Jun 14, 2021
@sjrmanning sjrmanning deleted the explicit-navigationviewstyle branch June 14, 2021 22:08
sjrmanning added a commit that referenced this pull request Feb 1, 2022
* added link to branch

* added link to branch

* Update README.md

* Fixed navigationViewStyle and wrapped controller presentationStyle for iPad (#2)

* Use explicit navigationViewStyle on ContentView NavigationView.

This shows the content as a single top view on iPad instead of a split
view and simplifies navigation.

* Use explicit modalPresentationStyle to fix iPad presentation issue.

* Updated comment brought over from another sample.

* Support for re-using existing shares on swift-concurrency branch.

* Reuse existing CKShare if it already exists (#6)

* Reuse existing CKShare if it already exists

If a contact is already shared we use the existing CKShare object.

fixes #5

* Rename func createShare

* Rename ViewModelError `unknown` case

Co-authored-by: Tony Tam <tonytam@apple.com>
Co-authored-by: Tony Tam <tony@eatbacon.org>
Co-authored-by: César Pinto Castillo <jagcesar@me.com>
This pull request was closed.
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