Text in SwiftUI Form not wrapping after being changed
问题 I need to display some text in a SwiftUI Form that will change depending on the current state. However, if the "new" text is longer than the original string displayed when the form first appeared, it won't wrap correctly. In the example below, turning the toggle on changes the text being displayed, but it gets truncated instead of wrapping struct ContentView: View { @State var showLongString = false var body: some View { Form { Section { Text(showLongString ? "This is a string that is too