init(attributedString:range:)
Creates a new line fragment from the attributed string for the range of characters you specify.
Declaration
init(attributedString: NSAttributedString, range: NSRange)Parameters
- attributedString:
The attributed string.
- range:
An Nsrange C.struct that specifies which characters to include.