Instance Property

preferredMaximumSize

For a view controller that is part of an app extension, the largest allowable size for the app extension’s primary view, in screen units.

Declaration

@property(readonly) NSSize preferredMaximumSize;

Discussion

An app extension should return the maximum dimensions that are potentially useful for its root view, based on the items the service has been sent. By default, the value of this property is a large or infinite size.

See Also

Configuring an App Extension View Controller

extensionContext

For a view controller that is part of an app extension, the app extension context.

preferredScreenOrigin

For a view controller that is part of an app extension, the preferred screen origin.

preferredMinimumSize

For a view controller that is part of an app extension, the smallest allowable size for the app extension’s primary view, in screen units.

- viewWillTransitionToSize:

For a view controller that is part of an app extension, called when its view is about to be resized.