FluidResizableTransitionDelegate

public protocol FluidResizableTransitionDelegate : NSObjectProtocol

The FluidResizableDelegate protocol. The delegates will be invoked if you only specify the presentation style to .drawer(position: top) or .drawer(position: bottom)

  • The function that determines whether the view should perform resize interaction.

    Declaration

    Swift

    func transitionShouldPerformResizing() -> Bool

    Return Value

    The Bool value.

  • The function that determines minimum vertical margin for resizing.

    Declaration

    Swift

    func transitionMinimumMarginForResizing() -> CGFloat

    Return Value

    The Bool value.

  • The function that determines the positions that the panning view should be snapped to after interaction end.

    Declaration

    Swift

    func transitionSnapPositionsForResizing() -> [CGFloat]?

    Return Value

    The Array object containing CGFloat values. The range of values should be 1.0 to 0.0. If it contains out-of-range or duplicate values, those values are ignored.

  • The function that is invoked when an interactive resize transition updates.

    Declaration

    Swift

    func transitionInteractiveResizeDidProgress(state: FluidProgressState, position: CGFloat, info: FluidGestureInfo)

    Parameters

    state

    The FluidInteractiveTransitionState value indicating the current state of the resizing interaction.

    position

    The CGFloat value indicating the percentage of the current position. The range of values is 1.0 to 0.0.

    info

    The FluidGestureInfo object that contains the gesture information.