小编Dom*_*mes的帖子

Text.lineLimit() behavior is inconsistent in SwiftUI

I have some description text in a VStack, and I'd like to limit it to 3 lines. My understanding is that I modify Text() with a .lineLimit(3) modifier. However, when I do this, some of the descriptions get capped at 3 lines, while others get capped at 1. There doesn't seem to be any consistency as to where this happens.

I thought this could be the order in which I'm calling the modifier attributes, but switching the order of …

ios swift swiftui

8
推荐指数
1
解决办法
704
查看次数

标签 统计

ios ×1

swift ×1

swiftui ×1