You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you dynamically change the scale of a TextField (like when a @State changes) inside a SwiftUI view inside a Settings Panel, a warning appears in the XCode log:
<_TtGC7SwiftUI16PlatformViewHostGVS_P10$1d0f7449832PlatformViewRepresentableAdaptorVS_P10$1d104826024PlatformTextFieldAdaptor__: 0x12576d9e0> has an maximum length (21.666667) that doesn't satisfy min (21.666667) <= max (21.666667).
It also seems to log that warning on every change of scale, so when you change the scale with animation or apply a scale transition to a TextField, hundreds of warnings are printed on the log.
It seems to happen even when you don't scale the TextField directly (it also happens if you change scale of a View with a child TextField).
I don't think many people use scaling on TextField, but I ended up writing a nice effect using .scale and when I'm using it on a VStack with like, 5 TextFields, I got a ton of warnings.
Oh, thanks for making this package btw. The work you've done for the Swift open source community is ridiculous. Thanks a lot!
The text was updated successfully, but these errors were encountered:
@sindresorhus sorry for the delay, I actually tested that, but forgot to include int he bug report, sorry. It doesn't happen when doing that outside the Settings view.
When you dynamically change the scale of a TextField (like when a
@State
changes) inside a SwiftUI view inside a Settings Panel, a warning appears in the XCode log:It also seems to log that warning on every change of scale, so when you change the scale with animation or apply a scale transition to a TextField, hundreds of warnings are printed on the log.
It seems to happen even when you don't scale the TextField directly (it also happens if you change scale of a View with a child TextField).
I don't think many people use scaling on TextField, but I ended up writing a nice effect using .scale and when I'm using it on a VStack with like, 5 TextFields, I got a ton of warnings.
Oh, thanks for making this package btw. The work you've done for the Swift open source community is ridiculous. Thanks a lot!
The text was updated successfully, but these errors were encountered: