iOS 15.2 UILabel line break mode incorrect work

854 views Asked by At

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?

0

There are 0 answers