algolia / voice-overlay-ios

🗣 An overlay that gets your user’s voice permission and input as text in a customizable UI
https://alg.li/voice
MIT License
544 stars 62 forks source link

Title and subtitle text get truncated #20

Open apats opened 5 years ago

apats commented 5 years ago

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

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?