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
UIView
s added toSwapperView
.SwapperView
will set the size of theUIView
to the same bounds that theSwapperView
is set for so all of the childrenUIViews
are 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