High Sierra, Xcode 9.1 or 9.0, multilines label constraints and storyboard

Hi !


I have some problems since I updated macOS to High Sierra and Xcode 8 to 9.

All my multilines labels are no longer displayed correctly, with my old projects as with new ones. Embedded in stack views, they completely disappear.

Has someone already had this problem ?


http://imageshack.com/a/img923/8748/hKw4vT.png

http://imageshack.com/a/img922/2161/ILYeer.png

http://imageshack.com/a/img922/5795/dSHr7M.png

Replies

Ripping my hair out over the same problem now. What is going on? Not updated to High Sierra yet though.

- This problem appears in XCode 9 with Sierra

- This problem appears in XCode 9 with High Sierra

- This problem appears in XCode 8 with High Sierra


- This problem doesn't appear in XCode 8 with Sierra

I have exactly the same issue with XCode 9.2 on High Sierra.


Is there a solution or workaround?

Works in code, not alwaus in IB, until you :


Select the label.

Show Size inspector.

Mke the Preferred width for the label "Explicit".


Then it will show multilines in IB as well.

Thanks for this workaround.


It works well in IB but when I'm running on the device the label takes much more space vertically than expected.


Do you let the value before "Explicit" empty or do you put a value? I need to put 1 for "Preferred Width" to display it correctly in IB.

I put a value. The problem may be that it does not adapt to device size ? Or maybe by adding a constraint on the trailing.