You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
In certain cases Label on iOS may cut last line of text. This happens if padding is applied to the Label and the text would otherwise fit into the view if the Label was the same width but without the padding.
See the screenshot below (iPhone 11 iOS 13.3, two screenshots merged).
Sections on the screenshot:
First three sections show example text, with orange Labels not showing the whole text.
Green section shows Labels with progressively larger padding. First three Labels have right margin set to 54, and last three to 53 (just enough to not cause line break). It shows that if first Label (which is without horizontal padding) wraps text (and therefore increases view height), Labels with horizontal padding will also increase their height. But if Label without horizontal padding does not wrap the text (first of the last three Labels), Labels with padding won't increase their height to account for the new line.
Grey section: text is not shown even if Label has pre-set larger height.
Issue also appears on iPhone 8 iOS 13.3 and iPhone 7 iOS 10.3, but not on the same labels.