CGRect

extension CGRect
extension CGRect: SpringInterpolatable, VelocityProviding
  • Returns a rect whose origin and size are rounded to the nearest pixel boundary, taking into account the device’s display scale.

    Declaration

    Swift

    public var scaledIntegral: CGRect { get }
  • Declaration

    Swift

    public typealias ValueType = CGRect
  • Declaration

    Swift

    public typealias VelocityType = CGRect
  • Declaration

    Swift

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