SwapperViewConfig

public class SwapperViewConfig

Configuration for SwapperView

  • Singleton access to SwapperViewConfig.

    Declaration

    Swift

    public static var shared: SwapperViewConfig
  • Create instance of SwapperViewConfig

    Declaration

    Swift

    public init()
  • The animation duration for swapping from an old view to the new view.

    Declaration

    Swift

    public var transitionAnimationDuration: Double
  • Automatically update the AutoLayout constraints of the children UIViews added to SwapperView. SwapperView will set the size of the UIView to the same bounds that the SwapperView is set for so all of the children UIViews are the same size as the SwapperView.

    Declaration

    Swift

    public var updateAutoLayoutConstraints: Bool
  • Override the animation for old view that is getting swapped out.

    Declaration

    Swift

    public var swapToAnimateOldView: (_ oldView: UIView) -> Void
  • Override the animation for new view that is getting swapped in.

    Declaration

    Swift

    public var swapToAnimateNewView: (_ newView: UIView) -> Void