Instance Method

widgetMaximumSize(for:)

Returns the maximum size for the specified widget display mode.

Declaration

func widgetMaximumSize(for displayMode: NCWidgetDisplayMode) -> CGSize

Parameters

displayMode

The active display mode of the widget. For possible values, see .

See Also

Managing the Display Mode for a Widget

var widgetLargestAvailableDisplayMode: NCWidgetDisplayMode

The largest display mode the widget supports.

var widgetActiveDisplayMode: NCWidgetDisplayMode

The active display mode of the widget.