iOS-15-unicode-character-issue

This documents an issue with unicode characters in UILabel on iOS 15.

Prerequisites

  • Xcode version 13.0 (13A233)
  • Simulators for iOS 15.0 & iOS 14.x

Steps to reproduce

  1. Run the app in the simulator with iOS 15.0. The label with the text “Very\u{00AD}VeryVeryVeryVeryVeryLongWordWithASoftHyphenToShowTheIssue” does not break at the expected soft hyphen \u{00AD}.

Screenshot 2021-10-04 at 11 14 22

  1. Run the app in the simulator with iOS 14.x. The label with the text “Very\u{00AD}VeryVeryVeryVeryVeryLongWordWithASoftHyphenToShowTheIssue” does break at the expected soft hyphen \u{00AD}.

Screenshot 2021-10-04 at 11 14 10

Expected result

UILabel should behave the same on iOS 15.x and iOS 14.x. \u{00AD} should make the label break at \u{00AD}.

GitHub

https://github.com/reni99/iOS-15-unicode-character-issue