Type Method

uiOffset(for:)

Returns a UIKit offset structure corresponding to the data in a given string.

Declaration

class func uiOffset(for string: String) -> UIOffset

Parameters

string

A string containing a representation of an offset.

Return Value

An edge insets data structure. If the string is not well-formed, the function returns zero.

Discussion

In general, you should use this function only to convert strings that were previously created using the string(for:) function.

See Also

Converting To and From Strings

class func string(for: UIOffset) -> String

Returns a string formatted to contain the data from an offset structure.