macos 26, xcode 26, ios 26. Everytime when you add new line at some point (like after 10-20 lines) the TextField will ignore the lineLimit and start changing the height. The problem related to Form but not Scroll. Maybe it can be reproduced in other scroll-based views. Bug report opened. Any siggestions?
struct Test: View {
@State var text = ""
var body: some View {
Form {
Section {
TextField("", text: $text, axis: .vertical)
.lineLimit(3)
.background(Color.green)
}
}
}
}
@main
struct TestApp: App {
var body: some Scene {
WindowGroup {
Test()
}
}
}