Instance Method

layoutManagerDidInvalidateLayout(_:)

Informs the delegate that the given layout manager has invalidated layout information (not glyph information).

Declaration

optional func layoutManagerDidInvalidateLayout(_ sender: NSLayoutManager)

Parameters

sender

The layout manager that invalidated layout.

Discussion

This method is invoked only when layout was complete and then became invalidated for some reason. Delegates can use this information to show an indicator of background layout or to enable a button that forces immediate layout of text.