How can I create a storyboard that works well on both iPad and iPhone for a Today Extension? Can I use size classes? There are other methods? Thanks in advance
App extensions were introduced in the Windows 10 Anniversary edition (version 1607, build 10.0. 14393). App extensions are UWP apps or packaged desktop apps that have an extension declaration that allows them to share content and deployment events with a host app. An extension app can provide multiple extensions.
An app extension lets you extend custom functionality and content beyond your app and make it available to users while they're interacting with other apps or the system. You create an app extension to enable a specific task.
It's still used for what is often called "classic Windows desktop development." UWP, a "modern" take on Windows development, provides a common type system and application model and APIs for all Windows 10 devices.
The solution is to activate size classes for the storyboard and then change the Simulated Size of the View Controller to Fixed.
You do not need to create multiple storyboards, but just activate size classes. I don't know why it's disabled per default.
This next step will change your views to the generic size.
And now you have to fix your UI elements to be generic and adaptable through auto-layout.
EDIT: And if you have something like a "fullscreen" tableview within the view, which is the widget, don't forget to create constraints for the nested "fullscreen" view, otherwise it will work on the iPad but overlap on the iPhone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With