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
FluidInitialFrameDimensionobject.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
navigationStyleThe
FluidNavigationStylevalue of the navigation.originThe position value of the destination frame when the transition ends.
sizeThe 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
FluidInitialFrameDimensionobject.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
transitionStyleThe
FluidTransitionStylevalue of the transition.originThe position value of the destination frame when the transition ends.
sizeThe 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) -> CGRectParameters
orientationThe
UIInterfaceOrientationvalue.Return Value
The
CGRectvalue. -
The function that returns final transform for an orientation.
Declaration
Swift
public func transform(for containerSize: CGSize? = nil) -> CATransform3DParameters
orientationThe
UIInterfaceOrientationvalue.Return Value
The
CATransform3Dvalue.
View on GitHub
FluidFinalFrameDimension Structure Reference