Back to Swipecellkit

ScaleAndAlphaExpansion

docs/Structs/ScaleAndAlphaExpansion.html

2.7.11.8 KB
Original Source

ScaleAndAlphaExpansion

public struct ScaleAndAlphaExpansion: SwipeExpanding

A scale and alpha expansion object drives the custom appearance of the effected actions during expansion.

`

                default
                `

Returns a ScaleAndAlphaExpansion instance with default expansion options.

Declaration

Swift

public static var `default`: ScaleAndAlphaExpansion

`

                duration
                `

The duration of the animation.

Declaration

Swift

public let duration: Double

`

                scale
                `

The scale factor used during animation.

Declaration

Swift

public let scale: CGFloat

`

                interButtonDelay
                `

The inter-button delay between animations.

Declaration

Swift

public let interButtonDelay: Double

`

                init(duration:scale:interButtonDelay:)
                `

Contructs a new ScaleAndAlphaExpansion instance.

Declaration

Swift

public init(duration: Double = 0.15, scale: CGFloat = 0.8, interButtonDelay: Double = 0.1)

Parameters

| duration |

The duration of the animation.

| | scale |

The scale factor used during animation.

| | interButtonDelay |

The inter-button delay between animations.

|

Return Value

The new ScaleAndAlphaExpansion instance.

© 2018 Mohammad Kurabi. All rights reserved. (Last updated: 2018-05-26)

Generated by jazzy ♪♫ v0.8.4, a Realm project.