CollisionEffect

public struct CollisionEffect

Used to create a collision effect animation

  • The force that will affect to collision effect, should be more than 0

    Declaration

    Swift

    public var force: Double
  • The angle which will be rotated a View

    Declaration

    Swift

    public var angle: CGFloat
  • Initializes collision effect

    Declaration

    Swift

    public init(force: Double = 10, angle: CGFloat = 30)

    Parameters

    force

    The force that will affect to collision effect, should be more than 0, default value is 10

    angle

    The angle which will be rotated a View, default value is 30