FluidInitialFrameDimension

public struct FluidInitialFrameDimension : FluidFrameDimensionCompatible

The initial frame dimension that conforms to the FluidFrameDimensionCompatible protocol.

  • The initializer that instantiates a FluidInitialFrameDimension object.

    Declaration

    Swift

    public init<T>(for navigationStyle: FluidNavigationStyle, containerSize: CGSize? = nil, contentOrigin: CGPoint, contentSize: CGSize, contentTransform: T = T.identity) where T : FluidTransformConvertible

    Parameters

    navigationStyle

    The FluidNavigationStyle value of the navigation.

    origin

    The position value of the destination frame when the transition starts.

    size

    The size value of the destination frame when the transition starts.

  • The initializer that instantiates a FluidInitialFrameDimension object.

    Declaration

    Swift

    public init<T>(for transitionStyle: FluidTransitionStyle, containerSize: CGSize? = nil, contentOrigin: CGPoint, contentSize: CGSize, contentTransform: T = T.identity) where T : FluidTransformConvertible

    Parameters

    transitionStyle

    The FluidTransitionStyle value of the transition.

    origin

    The position value of the destination frame when the transition starts.

    size

    The size value of the destination frame when the transition starts.

  • The function that returns initial frame for an orientation.

    Declaration

    Swift

    public func frame(for containerSize: CGSize? = nil) -> CGRect

    Parameters

    orientation

    The UIInterfaceOrientation value.

    Return Value

    The CATransform3D 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.