-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[iOS] adds support for column-based SplitViews on iOS 14+ #6705
base: master
Are you sure you want to change the base?
Conversation
Hi @jpdriver 👋 Thanks for this awesome PR! I didn't do a code review yet, but a couple of points:
Btw, we are also all available on Discord if there is any in depth discussion to be had. |
hey @danilobuerger 👋🏻
|
Just some additions to showcase the new features (like supplementary, display mode and style)
Sure go with the new naming convention and lets deprecate the old one. See the example for the search bar that I mentioned above on how to convert the values in js and throw a deprecation warning.
Awesome! The following logic would be nice:
|
I'd love to see this updated and merged, what ended up happening with it @danilobuerger? |
@lprhodes I have no idea, I am not a maintainer of this repo :) |
for what it's worth, i'm happy to dust this PR off and keep it ready to go -- but i completely understand that it likely can't come in until the next major.. |
good |
UISplitViewController was extensively rewritten as part of iOS 14.
It now supports either a two or three multi-column layout in place of the classic master-detail style.
This PR extends
SplitView
to additionally support the updated implementation.I have tried to ensure that there will be no breaking changes, however this PR deprecates the
master
anddetail
Layout properties.Apps using these will continue to function in exactly the same way (and continue using the classic interface style) but will see JS warnings about adopting the corresponding new properties
primary
andsecondary
Examples
"Classic" Behaviour
style
setprimary
+secondary
instead ofmaster
+detail
Three Columns,
twoBesideSecondary
tripleColumn
styletwoBesideSecondary
displayMode to show all columns by defaultThree Columns,
secondaryOnly
Playground (before update)
master
+detail
but continues to work the samePlayground (after update)
primary
+secondary
doubleColumn
style