CGSize

public extension CGSize
  • Scales the current size by the passed in factor

    Throws

    Throws if the passed in factor is less than or equal to 0

    Declaration

    Swift

    func scaled(by factor: CGFloat) throws -> CGSize

    Parameters

    factor

    The factor by which the CGSize should be scaled

    Return Value

    A new, scaled CGSize instance