How do I set only the advanced mode in the Today Widget Extension?

IOS 10 has two widget display modes: NCWidgetDisplayModeCompact

and NCWidgetDisplayModeExpanded

. The first is enabled by default. How can I enable the second one by default, but not show the "show more" / "show less" buttons? The Vidgets app does this.enter image description here

+3


source to share


1 answer


You cannot hide the button Show less / Show more

if you change the display mode.

However, if you set the widget display mode to the maximum available, it should hide it:



self.extensionContext?.widgetLargestAvailableDisplayMode = .compact

      

+2


source







All Articles