Enumerations

The following enumerations are available globally.

  • An enumeration for the kinds of actions that can be created

    • VSAlertActionStyleDefault: A normal action
    • VSAlertActionStyleCancel: An action that indicates to the user that the current process wil be cancelled
    • VSAlertActionStyleDestructive: An action indicates to the user that an irreversible process is about to happen.
    See more

    Declaration

    Objective-C

    enum VSAlertActionStyle {}
  • An enumeration describing the kinds of alerts that VSAlertController can display

    • VSAlertControllerStyleAlert: A standard alert, 270pt wide, variable height. Supports texts fields.
    • VSAlertControllerStyleWalkthroughAlert: A wider alert that stretches to the margins of the device - 18pt in either direction. Supports text fields, useful for onboarding. 500pt wide on iPad.
    • VSAlertControllerStyleActionSheet: An alert that appears at the bottom of the display, similar to Apple’s action sheet stlye. Does NOT support text fields.
    See more

    Declaration

    Objective-C

    enum VSAlertControllerStyle {}
  • An enumeration describing the kinds of animations that can be used to present and hide an alert

    • VSAlertControllerAnimationStyleRise: The alert rises from the bottom of the screen and falls down when dismissed.
    • VSAlertControllerAnimationStyleFall: The alert falls from the top of the screen and rises up when dismissed.
    • VSAlertControllerAnimationStyleSlide: The alert slides from the left of the screen and slides to the right when dismissed.
    • VSAlertControllerAnimationStyleFlip: The alert flips from the right, and flips to the left when dismissed.
    • VSAlertControllerAnimationStyleSticker: The alert page flips from the top, then again from the bottom when dismissed.
    • VSAlertControllerAnimationStyleCrossDisolve: The alert page fades in, then fades out dismissed.
    • VSAlertControllerAnimationStyleAutomatic: The alert chooses its presentation and dismissal styles automatically.
    See more

    Declaration

    Objective-C

    enum VSAlertControllerAnimationStyle {}