SwapperViewConfig
public class SwapperViewConfig
Configuration for SwapperView
-
Singleton access to
SwapperViewConfig.Declaration
Swift
public static var shared: SwapperViewConfig -
Create instance of
SwapperViewConfigDeclaration
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 toSwapperView.SwapperViewwill set the size of theUIViewto the same bounds that theSwapperViewis set for so all of the childrenUIViewsare the same size as theSwapperView.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
View on GitHub
SwapperViewConfig Class Reference