CGSize

extension CGSize
  • A size with infinity in both dimensions.

    Declaration

    Swift

    public static let infinity: CGSize
  • Returns a size with infinite dimensions replaced by the values from the given replacement.

    Declaration

    Swift

    public func replacingInfinity(with replacement: CGSize) -> CGSize