Presentr

public class Presentr: NSObject

Main Presentr class. This is the point of entry for using the framework.

  • This must be set during initialization, but can be changed to reuse a Presentr object.

    Declaration

    Swift

    public var presentationType: PresentationType
  • The type of transition animation to be used to present the view controller. This is optional, if not provided the default for each presentation type will be used.

    Declaration

    Swift

    public var transitionType: TransitionType?
  • Should the presented controller have rounded corners. Default is true, except for .BottomHalf and .TopHalf presentation types.

    Declaration

    Swift

    public var roundCorners = true
  • Public helper class method for creating and configuring an instance of the ‘AlertViewController’

    Declaration

    Swift

    public static func alertViewController(title title: String = PresentrConstants.Strings.alertTitle, body: String = PresentrConstants.Strings.alertBody) -> AlertViewController

    Parameters

    title

    Title to be used in the Alert View Controller.

    body

    Body of the message to be displayed in the Alert View Controller.

    Return Value

    Returns a configured instance of ‘AlertViewController’