We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
Did you find a way to handle this?
Sorry, something went wrong.
i trim text if over 15 length
func setMenuTitle(_ title: String) { if title.count > 16 { let temp = "\(String(title[String.Index(encodedOffset: 0)...String.Index(encodedOffset: 16)])).." self.menuTitle.text = temp }else { self.menuTitle.text = title } self.setNeedsLayout() }
I think I will provide the method to truncate long text (head/middle/tail). Thanks for raising the issue.
is this issue fixed?
No branches or pull requests
The text was updated successfully, but these errors were encountered: