Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Incorrect text layout

This text is cut off for some unknown reason, but if you explicitly specify the default font, it is displayed correctly.

Various solutions like .fixedSize(horizontal:,), frame(maxWidth:), lineLimit() do not solve the problem.

Any other text does not have such problems.

The bug is reproduced on iPhone 12 (iOS 18.4.1)

public var body: some View {
    Text("Включите уведомления, чтобы первыми узнавать о новых коллекциях, эксклюзивных предложениях и статусе доставки")
        .padding(.horizontal)
//        .font(.system(size: 17)) // it works correctly with this
}

The system truncates the text by default if the parent view doesn't have suffice space to display the text content.

You can see this on an empty project with a single screen and this body

Incorrect text layout
 
 
Q