Is there something equivalent in SwiftUI as lineBreakStrategy
that we set for UILabel
?
Asked
Active
Viewed 604 times
4

Bathant Hegazy
- 549
- 4
- 16
-
Look at `.truncationMode` – Asperi Feb 09 '22 at 16:02
-
doesn't work, I have the same issue like this one https://stackoverflow.com/a/65025926/5271999 and the solution works for me in UIKit, but can't figure out the equivalent with swiftUI – Bathant Hegazy Feb 09 '22 at 16:35
-
Did you find a solution yet? – Nimrod Shai Mar 01 '22 at 19:30
-
Unfortunately, I didn't find any I just used an UIKit Label and add it to my custom SwiftUI view. – Bathant Hegazy May 16 '22 at 09:22