Contents

replaceLayoutManager(_:)

Replaces the layout manager for the group of text system objects that contains the text container.

Declaration

func replaceLayoutManager(_ newLayoutManager: NSLayoutManager)

Parameters

  • newLayoutManager:

    The new layout manager.

Discussion

The framework reassigns all text containers and text views attached to the old layout manager to the new layout manager. Unlike setting the layoutManager property directly, this method makes all the adjustments necessary to keep the text object relationships intact.

See Also

Managing text components