Instance Property


The largest display mode the widget supports.


var widgetLargestAvailableDisplayMode: NCWidgetDisplayMode { get set }


The default value of this property is NCWidgetDisplayMode.compact. At any time, you can change the largest display mode your widget supports by changing the value of this property. For example, you can update the property value as more or less content is available to display in your widget.

See Also

Managing the Display Mode for a Widget

var widgetActiveDisplayMode: NCWidgetDisplayMode

The active display mode of the widget.

func widgetMaximumSize(for: NCWidgetDisplayMode) -> CGSize

Returns the maximum size for the specified widget display mode.