Classes

The following classes are available globally.

  • A segue to implement the Deck transition via Storyboards

    To use this, set your segue’s class to DeckSegue, and its kind to custom

    See more

    Declaration

    Swift

    public final class DeckSegue: UIStoryboardSegue
  • The DeckTransitioningDelegate class vends out the presentation and animation controllers required to present a view controller with the Deck transition style

    The following snippet described the steps for presenting a given ModalViewController with the DeckTransitioningDelegate

    let modal = ModalViewController()
    let transitionDelegate = DeckTransitioningDelegate()
    modal.transitioningDelegate = transitionDelegate
    modal.modalPresentationStyle = .custom
    present(modal, animated: true, completion: nil)
    
    See more

    Declaration

    Swift

    public final class DeckTransitioningDelegate: NSObject, UIViewControllerTransitioningDelegate