Instance Property


Returns the extension context of the view controller.


var extensionContext: NSExtensionContext? { get }


The view controller can check this property to see if it participates in an extension request. If no extension context is set for the current view controller, the system walks up the view controller hierarchy to find a parent view controller that has a non nil extensionContext value.