FluidTransitionDestinationConfigurationDelegate
public protocol FluidTransitionDestinationConfigurationDelegate : FluidTransitionConfigurationDelegate
The FluidTransitionConfigurationDelegate
for the destination view controller and the transition animation.
-
transitionAllowsInteractiveDismiss(from:to:with:)
Default implementationThe function that determines whether an interactive dismissal transition can begin.
Default Implementation
Declaration
Swift
func transitionAllowsInteractiveDismiss(from destination: FluidDestinationViewController, to source: FluidSourceViewController, with navigation: FluidNavigationController?) -> Bool
Parameters
destination
The destination view controller that conforms to
FluidDestinationViewController
.source
The source view controller that conforms to
FluidSourceViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
Boolean
value. -
transitionAllowsDismissFromChildViewControllers(from:to:with:)
Default implementationThe function that determines whether only a root view controller can begin a dismissal transition.
Default Implementation
Declaration
Swift
func transitionAllowsDismissFromChildViewControllers(from destination: FluidDestinationViewController, to source: FluidSourceViewController, with navigation: FluidNavigationController?) -> Bool
Parameters
destination
The destination view controller that conforms to
FluidDestinationViewController
.source
The source view controller that conforms to
FluidSourceViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
Boolean
value. -
transitionAllowsDismissWhenTapBackground(from:to:with:)
Default implementationThe function that determines whether the view should dismiss when a user taps the background.
Default Implementation
Declaration
Swift
func transitionAllowsDismissWhenTapBackground(from destination: FluidDestinationViewController, to source: FluidSourceViewController, with navigation: FluidNavigationController?) -> Bool
Parameters
destination
The destination view controller that conforms to
FluidDestinationViewController
.source
The source view controller that conforms to
FluidSourceViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
Boolean
value. -
transitionObservesScrollViews(from:to:with:)
Default implementationThe function that determines whether the view should dismiss when a user taps the background.
Default Implementation
Declaration
Swift
func transitionObservesScrollViews(from destination: FluidDestinationViewController, to source: FluidSourceViewController, with navigation: FluidNavigationController?) -> [UIScrollView]?
Parameters
destination
The destination view controller that conforms to
FluidDestinationViewController
.source
The source view controller that conforms to
FluidSourceViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
An
Array
value that containsUIScrollView
objects.
-
transitionAdditionalPresentAnimations(from:to:with:on:initialDimension:finalDimension:initialStyle:finalStyle:transitionStyle:duration:easing:)
Extension methodDeclaration
Swift
func transitionAdditionalPresentAnimations(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?, on container: UIView?, initialDimension: FluidInitialFrameDimension, finalDimension: FluidFinalFrameDimension, initialStyle: FluidInitialFrameStyle, finalStyle: FluidFinalFrameStyle, transitionStyle: FluidTransitionStyle, duration: TimeInterval, easing: FluidAnimatorEasing) -> [FluidAnimatorCompatible]?
-
transitionAdditionalDismissAnimations(from:to:with:on:initialDimension:finalDimension:initialStyle:finalStyle:transitionStyle:duration:easing:)
Extension methodDeclaration
Swift
func transitionAdditionalDismissAnimations(from destination: FluidDestinationViewController, to source: FluidSourceViewController, with navigation: FluidNavigationController?, on container: UIView?, initialDimension: FluidInitialFrameDimension, finalDimension: FluidFinalFrameDimension, initialStyle: FluidInitialFrameStyle, finalStyle: FluidFinalFrameStyle, transitionStyle: FluidTransitionStyle, duration: TimeInterval, easing: FluidAnimatorEasing) -> [FluidAnimatorCompatible]?