Prepare

public struct Prepare<T>

Prepare objects or views for certain state

  • Will touch view of a view controller in order to get loadView and viewDidLoad called, than manually calls viewWillAppear and viewDidAppear with animations disabled

    Declaration

    Swift

    @discardableResult public func simulatePresentViewController() -> Prepare
  • Set a new size for a view controllers view during runtime

    Declaration

    Swift

    @discardableResult public func set(viewSize: CGSize) -> Prepare
  • Set a screensize of a desired device on a view of your view controller, you can specify a custom height. Custom height might be useful when scrollviews are present

    Declaration

    Swift

    @discardableResult public func set(viewSize: DeviceScreenSize, height: CGFloat? = nil) -> Prepare
  • Give view controller a navigation controller

    Declaration

    Swift

    @discardableResult public func assignNavigationController<T>(ofClass classType: T.Type? = nil) -> Prepare where T: UINavigationController
  • Give view controller a mock navigation controller which mainly allows for testing push/pop functionality

    Declaration

    Swift

    @discardableResult public func assignMockNavigationController() -> Prepare