uiOffset(for:)
Returns a UIKit offset structure corresponding to the data in a given string.
Declaration
class func uiOffset(for string: String) -> UIOffsetParameters
- 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.