Open godbout opened 2 years ago
a basic TextField that starts small and grows when you type in it. here's the code:
TextField("", text: $input.value) .textFieldStyle(.plain) .font(.system(size: inputTextSize)) .frame(minWidth: inputWidth, alignment: .leading) .fixedSize() .padding(6) .padding(.trailing) .onChange(of: input.value) { searchString in // TODO: should the trimming be happening here? let targets = AppCore.shared.wooshyEngine.search(for: searchString.trimmingCharacters(in: .whitespaces)) AppCore.shared.wooshyEngine.clean() AppCore.shared.wooshyEngine.highlight(elements: targets) } .overlay(alignment: .trailing) { if input.showPreloading { VStack { ProgressView() .padding(.trailing, 6) .padding(.top, inputTextSize > 28 ? 6 : 0) .controlSize(.small) if inputTextSize > 28 { Spacer() } } } }
it has never jiggled on Monterey. now it jiggles on Ventura. i'm attaching two videos showing the difference. thanks.
https://user-images.githubusercontent.com/121373/179496712-bb0f7cf9-b40d-4c2a-b6b2-a0860021fff7.mp4
https://user-images.githubusercontent.com/121373/179496749-1fa7555b-8510-4e01-85a3-b8328b4b697d.mp4
i'm adding a simple sample project that shows the issue: https://github.com/godbout/TheInputVentura
no jiggling under Monterey. total jiggling under Ventura. thanks.
Description
a basic TextField that starts small and grows when you type in it. here's the code:
it has never jiggled on Monterey. now it jiggles on Ventura. i'm attaching two videos showing the difference. thanks.
Files
https://user-images.githubusercontent.com/121373/179496712-bb0f7cf9-b40d-4c2a-b6b2-a0860021fff7.mp4
https://user-images.githubusercontent.com/121373/179496749-1fa7555b-8510-4e01-85a3-b8328b4b697d.mp4