AlertViewController
open class AlertViewController : NibViewController
extension AlertViewController: AlertEmbeddableViewControllerDelegate
                A container NibViewController that contains an AlertEmbeddableViewController
- 
                  
                  
View container for non-full screen
AlertEmbeddableViewControllerDeclaration
Swift
@IBOutlet public weak var containerView: UIView! - 
                  
                  
Defines the corner radius of the
viewContainerDeclaration
Swift
public var containerViewCornerRadius: CGFloat - 
                  
                  
Defines if
AlertEmbeddableViewControllershould be displayed full screenDeclaration
Swift
public var isFullScreen: Bool { get set } - 
                  
                  
Defines if
AlertEmbeddableViewControllershould be fit to theAlertViewControllerlayout.Declaration
Swift
public var fitEmbeddedViewToLayout: Bool { get set } - 
                  
                  
The embedded
AlertEmbeddableViewControllerDeclaration
Swift
public var embeddedView: AlertEmbeddableViewController? - 
                  
                  
Declaration
Swift
override public init() - 
                  
                  
Declaration
Swift
override public init(nibName: String) - 
                  
                  
Undocumented
Declaration
Swift
override public init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) - 
                  
                  
Undocumented
Declaration
Swift
public required init?(coder: NSCoder) - 
                  
                  
Undocumented
Declaration
Swift
public convenience init(embeddedView: AlertEmbeddableViewController, isFullScreen: Bool, fitEmbeddedViewToLayout: Bool = true) - 
                  
                  
Declaration
Swift
override open func setup() - 
                  
                  
Sets up the delegate of the
embeddedViewand embeds it in its respective parent view depending on the value ofisFullScreenDeclaration
Swift
open func setupEmbeddedView() - 
                  
                  
Sets up the presentation and transition style of the
AlertViewController.Declaration
Swift
open func setupPresentationAndTransitionStyle() - 
                  
                  
Sets up the height and width constraints of the view container.
Depending on the value of
fitEmbeddedViewToLayout, the width and height constraints will either be activated or deactivated.Declaration
Swift
open func setupEmbeddedViewLayoutFit() - 
                  
                  
Declaration
Swift
public func dismissAlert(completion: (() -> Void)?) - 
                  
                  
Returns an
AlertViewControllerwith an embeddedGenericAlertViewControllerthat displays a heading message, an optional subheading, and a single buttonDeclaration
Swift
public static func message(heading: String, subheading: String = "", actionText: String = "Generic.Okay".localized, isFullScreen: Bool = false, action: (() -> Void)? = nil) -> AlertViewControllerParameters
headingHeading message
subheading(Optional) Subheading message
actionText(Optional) Custom button text
isFullScreen(Optional) Boolean to override the
AlertViewControllerisFullScreenpropertyaction(Optional) Closure to be executed once the button was tapped
 - 
                  
                  
Returns an
AlertViewControllerwith an embeddedGenericAlertViewControllerthat displays a heading message, an optional subheading, and a couple of buttonsDeclaration
Swift
public static func confirmation(heading: String, subheading: String = "", confirmText: String = "Generic.Confirm".localized, cancelText: String = "Generic.Cancel".localized, isFullScreen: Bool = false, action: ((Int) -> Void)? = nil) -> AlertViewControllerParameters
headingHeading message
subheading(Optional) Subheading message
confirmText(Optional) Custom confirm button text
cancelText(Optional) Custom cancel button text
isFullScreen(Optional) Boolean to override the
AlertViewControllerisFullScreenpropertyaction(Optional) Closure to be executed once the button was tapped that returns the index of the tapped button
 - 
                  
                  
Returns an
AlertViewControllerwith an embeddedUpgradeCheckViewControllerthat displays a full screen view that blocks the user and forces them to upgrade the applicationDeclaration
Swift
public static func forcedUpgradeCheck(heading: String = "UpgradeCheck.UpgradeRequired".localized, subheading: String = "UpgradeCheck.NewVersionAvailable".localized, upgradeNowText: String = "UpgradeCheck.UpgradeNow".localized, appLink: String, isFullScreen: Bool = true) -> AlertViewControllerParameters
heading(Optional) Heading message
subheading(Optional) Subheading message
upgradeNowText(Optional) Custom upgrade now button text
appLinkURL of the application in the app store
isFullScreen(Optional) Boolean to override the
AlertViewControllerisFullScreenproperty - 
                  
                  
Returns an
AlertViewControllerwith an embeddedUpgradeCheckViewControllerthat displays a full screen view that suggests an application upgrade to the userDeclaration
Swift
public static func upgradeCheck(heading: String = "UpgradeCheck.SuggestedUpgrade".localized, subheading: String = "UpgradeCheck.NewVersionAvailable".localized, upgradeNowText: String = "UpgradeCheck.UpgradeNow".localized, upgradeLaterText: String = "UpgradeCheck.UpgradeLater".localized, appLink: String, isFullScreen: Bool = true) -> AlertViewControllerParameters
heading(Optional) Heading message
subheading(Optional) Subheading message
upgradeNowText(Optional) Custom upgrade now button text
upgradeLaterText(Optional) Custom upgrade later button text
appLinkURL of the application in the app store
isFullScreen(Optional) Boolean to override the
AlertViewControllerisFullScreenproperty - 
                  
                  
Undocumented
Declaration
Swift
public static func loading(loadingText: String? = nil, isFullScreen: Bool = false) -> AlertViewController 
View on GitHub
        AlertViewController Class Reference