nsDirectionalEdgeInsets(for:)
Returns a directional edge insets structure based on data in the specified string.
Declaration
class func nsDirectionalEdgeInsets(for string: String) -> NSDirectionalEdgeInsetsParameters
- string:
A string whose contents are of the form “{top, leading, bottom, trailing}”, where top, leading, bottom, trailing are the floating-point component values of the Nsdirectionaledgeinsets structure. An example of a valid string is “
{3.0,8.0,3.0,5.0}”. The string is not localized, so items are always separated with a comma.
Return Value
A directional edge insets data structure. If the string is not well-formed, the function returns NSDirectionalEdgeInsetsZero.