FluidTransitionSourceConfigurationDelegate
public protocol FluidTransitionSourceConfigurationDelegate : FluidTransitionConfigurationDelegate
The FluidTransitionConfigurationDelegate
for the source view controller and the transition animation.
-
transitionAllowsInteractivePresent(from:to:with:)
Default implementationThe function that determines whether an interactive present transition can begin.
Default Implementation
Declaration
Swift
func transitionAllowsInteractivePresent(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?) -> Bool
Parameters
source
The source view controller that conforms to
FluidSourceViewController
.destination
The destination view controller that conforms to
FluidDestinationViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
Boolean
value. -
transitionPresentationStyle(from:to:with:)
Default implementationThe function that determines
FluidPresentationStyle
.Default Implementation
Declaration
Swift
func transitionPresentationStyle(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?) -> FluidTransitionStyle
Parameters
source
The source view controller that conforms to
FluidSourceViewController
.destination
The destination view controller that conforms to
FluidDestinationViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
FluidPresentationStyle
object. -
transitionBackgroundStyle(from:to:with:)
Default implementationThe function that determines
FluidBackgroundStyle
.Default Implementation
Declaration
Swift
func transitionBackgroundStyle(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?) -> FluidBackgroundStyle
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
FluidBackgroundStyle
object. -
transitionPresentEasing(from:to:with:)
Default implementationThe function that determines
FluidAnimatorEasing
for presentation transition.Default Implementation
Declaration
Swift
func transitionPresentEasing(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?) -> FluidAnimatorEasing?
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
FluidAnimatorEasing
object. -
transitionDismissEasing(from:to:with:)
Default implementationThe function that determines
FluidAnimatorEasing
for dismissal transition.Default Implementation
Declaration
Swift
func transitionDismissEasing(from destination: FluidDestinationViewController, to source: FluidSourceViewController, with navigation: FluidNavigationController?) -> FluidAnimatorEasing?
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
FluidAnimatorEasing
object. -
transitionPresentDuration(from:to:with:)
Default implementationThe function that determines an animation duration for presentation transition.
Default Implementation
Declaration
Swift
func transitionPresentDuration(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?) -> TimeInterval?
Parameters
source
The source view controller that conforms to
FluidSourceViewController
.destination
The destination view controller that conforms to
FluidDestinationViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
TimeInterval
value. -
transitionDismissDuration(from:to:with:)
Default implementationThe function that determines an animation duration for dismissal transition.
Default Implementation
Declaration
Swift
func transitionDismissDuration(from destination: FluidDestinationViewController, to source: FluidSourceViewController, with navigation: FluidNavigationController?) -> TimeInterval?
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
TimeInterval
value. -
transitionInitialDestinationFrameDimension(from:to:with:)
Default implementationThe function that determines a frame dimension at the beginning of transition.
Default Implementation
Declaration
Swift
func transitionInitialDestinationFrameDimension(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?) -> FluidInitialFrameDimension?
Parameters
source
The source view controller that conforms to
FluidSourceViewController
.destination
The destination view controller that conforms to
FluidDestinationViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
FluidFrameDimension
value. -
transitionFinalDestinationFrameDimension(from:to:with:)
Default implementationThe function that determines a frame dimension at the end of transition.
Default Implementation
Declaration
Swift
func transitionFinalDestinationFrameDimension(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?) -> FluidFinalFrameDimension?
Parameters
source
The source view controller that conforms to
FluidSourceViewController
.destination
The destination view controller that conforms to
FluidDestinationViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
FluidFrameDimension
object. -
transitionInitialDestinationFrameStyle(from:to:with:)
Default implementationThe function that determines frame style at the beginning of transition.
Default Implementation
Declaration
Swift
func transitionInitialDestinationFrameStyle(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?) -> FluidInitialFrameStyle?
Parameters
source
The source view controller that conforms to
FluidSourceViewController
.destination
The destination view controller that conforms to
FluidDestinationViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
FluidFrameStyle
value. -
transitionFinalDestinationFrameStyle(from:to:with:)
Default implementationThe function that determines frame style at the end of transition.
Default Implementation
Declaration
Swift
func transitionFinalDestinationFrameStyle(from source: FluidSourceViewController, to destination: FluidDestinationViewController, with navigation: FluidNavigationController?) -> FluidFinalFrameStyle?
Parameters
source
The source view controller that conforms to
FluidSourceViewController
.destination
The destination view controller that conforms to
FluidDestinationViewController
.navigation
The destination navigation view controller that conforms to
FluidDestinationNavigationController
.Return Value
A
FluidFrameStyle
object.
-
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]?