CGSize

public extension CGSize
  • fmt

    Returns a pair of “%.2f” formatted strings

    Declaration

    Swift

    var fmt: String { get }

Arithmetic operations between CG structures and scalars

  • Multiplies a CGSize by a CGFloat

    Declaration

    Swift

    static func * (size: CGSize, scalar: CGFloat) -> CGSize
  • Multiplies a CGSize by a Double

    Declaration

    Swift

    static func * (size: CGSize, scalar: Double) -> CGSize
  • Divides a CGSize by a CGFloat

    Declaration

    Swift

    static func / (size: CGSize, scalar: CGFloat) -> CGSize
  • Divides a CGSize by a Double

    Declaration

    Swift

    static func / (size: CGSize, scalar: Double) -> CGSize