Type Aliases

The following type aliases are available globally.

JJButtonAnimationConfiguration

  • A typealias representing a closure that calculates the angle for each item in a floating action button.

    Declaration

    Swift

    public typealias JJItemAngle = (_ index: Int, _ numberOfItems: Int, _ actionButton: JJFloatingActionButton) -> CGFloat

    Parameters

    index

    The index of the item.

    numberOfItems

    The total number of items.

    actionButton

    The floating action button.

    Return Value

    The angle in radians for the specified item.