apple / sample-cloudkit-sharing

MIT License
293 stars 40 forks source link

Fixed navigationViewStyle and wrapped controller presentationStyle for iPad #2

Closed sjrmanning closed 3 years ago

sjrmanning commented 3 years ago

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

sjrmanning commented 3 years ago

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.