简体   繁体   中英

Multiline truncate middle is not working in swift

I have a label inside stack view with fixed height and width, the number of line is set to 2 and line breaking mode to "truncate middle". However the label's text gets truncated at it's tail. If I have single line it is getting truncated in middle. Does attributed text restricts the middle truncation?

@Shreeja

step 1 -> set number of lines to 0

step 2 -> set line break word wrap

Step 3 -> Remove Fix height

Happy coding :P

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM