FluidFinalFrameDimension
public struct FluidFinalFrameDimension : FluidFrameDimensionCompatible
The final frame dimension that conforms to the FluidFrameDimensionCompatible
protocol.
-
init(for:portraitContainerSize:landscapeContainerSize:portraitContentOrigin:portraitContentSize:landscapeContentOrigin:landscapeContentSize:portraitContentTransform:landscapeContentTransform:)
The initializer that instantiates a
FluidInitialFrameDimension
object.Declaration
Swift
public init<T: FluidTransformConvertible>(for navigationStyle: FluidNavigationStyle, portraitContainerSize: CGSize? = nil, landscapeContainerSize: CGSize? = nil, portraitContentOrigin: CGPoint? = nil, portraitContentSize: CGSize? = nil, landscapeContentOrigin: CGPoint? = nil, landscapeContentSize: CGSize? = nil, portraitContentTransform: T = .identity, landscapeContentTransform: T = .identity)
Parameters
navigationStyle
The
FluidNavigationStyle
value of the navigation.origin
The position value of the destination frame when the transition ends.
size
The size value of the destination frame when the transition ends.
-
init(for:portraitContainerSize:landscapeContainerSize:portraitContentOrigin:portraitContentSize:landscapeContentOrigin:landscapeContentSize:portraitContentTransform:landscapeContentTransform:)
The initializer that instantiates a
FluidInitialFrameDimension
object.Declaration
Swift
public init<T: FluidTransformConvertible>(for transitionStyle: FluidTransitionStyle, portraitContainerSize: CGSize? = nil, landscapeContainerSize: CGSize? = nil, portraitContentOrigin: CGPoint? = nil, portraitContentSize: CGSize? = nil, landscapeContentOrigin: CGPoint? = nil, landscapeContentSize: CGSize? = nil, portraitContentTransform: T = .identity, landscapeContentTransform: T = .identity)
Parameters
transitionStyle
The
FluidTransitionStyle
value of the transition.origin
The position value of the destination frame when the transition ends.
size
The size value of the destination frame when the transition ends.
-
The function that returns final frame for an orientation.
Declaration
Swift
public func frame(for containerSize: CGSize? = nil) -> CGRect
Parameters
orientation
The
UIInterfaceOrientation
value.Return Value
The
CGRect
value. -
The function that returns final transform for an orientation.
Declaration
Swift
public func transform(for containerSize: CGSize? = nil) -> CATransform3D
Parameters
orientation
The
UIInterfaceOrientation
value.Return Value
The
CATransform3D
value.