iOS 15.2 UILabel line break mode incorrect work
Asked Answered
Y

0

9

Faced the problem that on iOS 15.2 all labels incorrectly handle line break mode.
Below are examples of rendering labels:

Line Break Mode: .byClipping

  • Xcode 13.0 iOS 15.0.

enter image description here

  • Xcode 13.2.1 iOS 15.2

enter image description here

As you can see, the last word is truncated and does not remain on the line.

Line Break Mode: .byTruncatingMiddle

  • Xcode 13.0 iOS 15.0.

enter image description here

  • Xcode 13.2.1 iOS 15.2

enter image description here

Same issue on AppStore UILabels. It seems that the bug is in the iOS SDK version. Has anyone encountered a similar problem? Perhaps there are workarounds?

Yeaton answered 28/12, 2021 at 8:30 Comment(3)
If you have found an iOS bug, file a bug report with Apple.Minute
I have filed the bug for you, but you should file it as well. The more reports, the better.Minute
We ran into this as well and looks like they may have fixed it in Xcode 13.3.1 running iOS 15.4.Gadgetry

© 2022 - 2024 — McMap. All rights reserved.