UIPopoverSourceType
public enum UIPopoverSourceType
Enum to pass to methods that can present a UIViewController modally from multiple sources.
This removes the the need for providing two APIs or specifying AnyObject as the parameter type and maintains type safety.
Seealso
openURL(_:fromSourceItem:inViewController:)
-
Specifies to popover from the associated
UIBarButtonItem.Declaration
Swift
case BarButton(UIBarButtonItem)
-
Specifies to popover from the associated
UIView.Declaration
Swift
case View(UIView)
View on GitHub
UIPopoverSourceType Enum Reference