2024-11-12
#code-snippet
#swiftui
How to know if text reaches the line limit in SwiftUI?
// to see if text reaches the limit @State private var isTruncated = false Text("text content")