layoutManager
The text container’s layout manager.
Declaration
unowned(unsafe) var layoutManager: NSLayoutManager? { get set }Discussion
Avoid assigning a layout manager directly through this property. Instead, use the replaceLayoutManager(_:) method when you want to replace the layout manager. The framework sets the value of this property automatically when you add a text container to your layout manager using the addTextContainer(_:) method.