Contents

string(for:)

Returns a string formatted to contain the data from a rectangle.

Declaration

class func string(for rect: CGRect) -> String

Parameters

  • rect:

    A Core Graphics structure representing a rectangle.

Return Value

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

See Also

Representing Geometric Types as Strings