subscript(_:)
The custom attribute of type T associated with the run of glyphs, or nil. If no run contains the custom attribute we also check its attachment’s runs.
Declaration
subscript<T>(key: T.Type) -> T? where T : TextAttribute { get }The custom attribute of type T associated with the run of glyphs, or nil. If no run contains the custom attribute we also check its attachment’s runs.
subscript<T>(key: T.Type) -> T? where T : TextAttribute { get }