Instance Method

layoutManager:textContainer:didChangeGeometryFromSize:

Informs the delegate that the layout manager will invalidate layout due to a change in the geometry of the specified text container.

Declaration

iOS, Mac Catalyst, tvOS
- (void)layoutManager:(NSLayoutManager *)layoutManager textContainer:(NSTextContainer *)textContainer didChangeGeometryFromSize:(CGSize)oldSize;
macOS
- (void)layoutManager:(NSLayoutManager *)layoutManager textContainer:(NSTextContainer *)textContainer didChangeGeometryFromSize:(NSSize)oldSize;

Parameters

layoutManager

The layout manager invalidating layout.

textContainer

The text container that changed geometry.

oldSize

The size of the text container before it changed geometry.

Discussion

The delegate can react to the geometry change and perform adjustments such as recreating an exclusion path.

See Also

Responding to Text Container Layout

- layoutManager:didCompleteLayoutForTextContainer:atEnd:

Informs the delegate that the layout manager finished laying out text in the specified text container.