CGFloat

extension CGFloat
extension CGFloat: SpringInterpolatable, VelocityProviding
  • Returns a float value that is rounded to the nearest pixel boundary, taking into account the device’s display scale.

    Declaration

    Swift

    public var scaledIntegral: CGFloat { get }
  • Declaration

    Swift

    public typealias ValueType = CGFloat
  • Declaration

    Swift

    public typealias VelocityType = CGFloat
  • Declaration

    Swift

    public static func updateValue(spring: Spring, value: CGFloat, target: CGFloat, velocity: CGFloat, dt: TimeInterval) -> (value: CGFloat, velocity: CGFloat)