Contents

viewWillTransition(to:)

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

Declaration

func viewWillTransition(to newSize: NSSize)

Parameters

  • newSize:

    The new size for the view controller’s view.

Discussion

Override this method if you want to change layout in response to the change in size, potentially in an animated way.

See Also

Configuring an App Extension View Controller