Contents

string(for:)

Returns a string formatted to contain the data from a size data structure.

Declaration

class func string(for size: CGSize) -> String

Parameters

  • size:

    A Core Graphics structure representing a size.

Return Value

A string that corresponds to size. See cgSize(for:) for a discussion of the string format.

See Also

Representing Geometric Types as Strings