replace(_:)
Replaces the current text content manager with a new one you provide.
Declaration
func replace(_ textContentManager: NSTextContentManager)Parameters
- textContentManager:
The new text context manager.
Discussion
Use this method to replace the current NSTextContentManager with a new one, leaving all related objects intact. This method makes sure the NSTextLayoutManager doesn’t get deallocated while migrating to the new manager.