<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSLayoutManager/init()",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLayoutManager(im)init"
  },
  "title" : "init()"
}
-->

# init()

Initializes a newly created layout manager object.

```
init()
```

## Discussion

This method is the designated initializer for the `NSLayoutManager` class. Returns an initialized object.

## See Also

  [Text Layout Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/TextLayout/TextLayout.html#//apple_ref/doc/uid/10000158i)

  [Cocoa Text Architecture Guide](https://developer.apple.com/library/archive/documentation/TextFonts/Conceptual/CocoaTextArchitecture/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009459)

[`func addTextContainer(NSTextContainer)`](/documentation/UIKit/NSLayoutManager/addTextContainer(_:))

Appends the specified text container to the series of text containers where the layout manager arranges text.

[`func addLayoutManager(NSLayoutManager)`](/documentation/UIKit/NSTextStorage/addLayoutManager(_:))

Adds a layout manager to the text storage object’s set of layout managers.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)