voice-overlay-ios icon indicating copy to clipboard operation
voice-overlay-ios copied to clipboard

Title and subtitle text get truncated

Open apats opened this issue 4 years ago • 0 comments

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?

apats avatar Jul 09 '19 09:07 apats