AnimationSettings

public struct AnimationSettings

It contains default animation settings which apply when constraints are being changed animated.

By default a change to the padding or to a dimension constraint takes place animated using the predefined values specified into this structure.

Create objects of this struct to disable animation by setting the duration to zero, or customize other animation properties. Custom initializers are provided.

  • The animation duration. Set this value to 0.0 to prevent animation. Default value is 0.4.

    Declaration

    Swift

    public var duration: TimeInterval
  • The delay of the animation. Default value is 0.0.

    Declaration

    Swift

    public var delay: TimeInterval
  • The damping. Default value is 0.75.

    Declaration

    Swift

    public var damping: CGFloat
  • The velocity of the animation. Default value is 1.0.

    Declaration

    Swift

    public var velocity: CGFloat
  • Animation options. Default value is curveEaseInOut.

    Declaration

    Swift

    public var options: UIView.AnimationOptions
  • Undocumented

    Declaration

    Swift

    public init()
  • Undocumented

    Declaration

    Swift

    public init(withDuration duration: TimeInterval)
  • Undocumented

    Declaration

    Swift

    public init(withDuration duration: TimeInterval, delay: TimeInterval, damping: CGFloat, velocity: CGFloat, options: UIView.AnimationOptions)