Skip to content

Commit c6e866e

Browse files
committed
Updated the basic code sample
1 parent 8cc4a2f commit c6e866e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Basic code to make it work:
2222
let layoutManager = NSLayoutManager()
2323
textStorage.addLayoutManager(layoutManager)
2424

25-
let textContainer = NSTextContainer(containerSize: .zero)
25+
let textContainer = NSTextContainer()
2626
layoutManager.addTextContainer(textContainer)
2727

2828
let textView = NSTextView(frame: someFrame, textContainer: textContainer)

0 commit comments

Comments
 (0)