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() -> BoolReturn Value
The
Boolvalue. -
The function that determines minimum vertical margin for resizing.
Declaration
Swift
func transitionMinimumMarginForResizing() -> CGFloatReturn Value
The
Boolvalue. -
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
Arrayobject containingCGFloatvalues. 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
stateThe
FluidInteractiveTransitionStatevalue indicating the current state of the resizing interaction.positionThe
CGFloatvalue indicating the percentage of the current position. The range of values is 1.0 to 0.0.infoThe
FluidGestureInfoobject that contains the gesture information.
View on GitHub
FluidResizableTransitionDelegate Protocol Reference