"Follow readable width" not working

I have a sample project with a single label constrained to the root view on top, leading, trailing sides. The label has numberOfLines=0 and multiple lines of text. In IB, the root view has Follow readable width checked, and for good measure so does the label.

But when I run it on an iPad simulator, the width of the text is full screen. What's missing?

Replies

I've not tested it, but if you set leading and trailing (which values ? 0 ?) then Follow Readable width should be no effect.

Try removing the lead and trailing constraints.

Hopefully, this may help you:
h ttps://useyourloaf.com/blog/readable-content-guides/
Interesting idea, @Claude31, but it doesn't work. If you remove leading/trailing constraints it just breaks the layout. The ReadableContentGuide is a layout guide that you're supposed to attach constraints to.