I'm building an iOS 10 widget and I noticed that by default, they're all one standard size calculated by the system.
As a developer, you can use the NCWidgetDisplayMode
and choose the expanded
option to provide more information inside your widget as it will expand the height of the widget.
Using this option (which I set in viewDidLoad
) will also give a "Show More/Show Less" button on the upper right. Choosing the compact
option will not put this toggle in the upper right.
This is great and all but if I choose the expanded
option in order to have my widget in two optional sizes, it always starts expanded
.
How can I have the option to show a compact
and expanded
widget but start out with the compact
option? It always starts out in its expanded
size and I do not want this.