Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title and subtitle text get truncated #20

Open
apats opened this issue Jul 9, 2019 · 0 comments
Open

Title and subtitle text get truncated #20

apats opened this issue Jul 9, 2019 · 0 comments

Comments

@apats
Copy link

apats commented Jul 9, 2019

With specific combinations of title and subtitle text and device screen size you can end up with truncated text.

  • for permission screen subtitle was set to First, you need to grant device permissions., but visible text is just First, you need to grant device

Screen Shot 2019-07-09 at 12 02 42

  • for no permission screen title was set to Time can't create a Smart Memo, but visible text is just Time can't create a

Screen Shot 2019-07-09 at 12 02 50

I poked around the sample app and found that removing override for viewDidLayoutSubviews() in those UIViewControllers fixes this issue. I'm not sure why it happens, thought. As preferredMaxLayoutWidth should drive the max width of a UILabel, but if constraints have been set for both leading and trailing, then preferredMaxLayoutWidth is not needed..?

Any thought on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant