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
I'm evaluating this library and I found a problem when trying to put a Map (SwiftUI) into the Top view on a VSplit. I've reproduced it by adding a Map to the Demo sample simpleAdjustable Code below. Once I move the map (or zoom) the Split is resized back to an original position instead of retaining where the User left it. Is there a known workaround to resolve this? Video below.
It turns out that a fix I made to allow the Split view to respond to changes in the split fraction caused this. I was a little worried at the time that there might be side-effects, but I could not find any. I believe you can fix the issue by removing or commenting out the following ~line 102 in Split.swift:
.onChange(of: fraction.value) { new in constrainedFraction = new }
I will have to follow-up with a fix that works in that case without screwing up yours. Unless you're also trying to set the fraction as discussed in #29, it should not impact you to remove this. Thanks.
Yes, disabling that line for me works. Thanks for the quick tip! I was experimenting with fraction, and it doesn't seem to cause a problem using that for an initial setting, and then the User can adjust and all seems well.
I'm evaluating this library and I found a problem when trying to put a Map (SwiftUI) into the Top view on a VSplit. I've reproduced it by adding a Map to the Demo sample
simpleAdjustable
Code below. Once I move the map (or zoom) the Split is resized back to an original position instead of retaining where the User left it. Is there a known workaround to resolve this? Video below.Simulator.Screen.Recording.-.iPhone.14.Pro.-.2024-12-16.at.12.41.17.mp4
Other supporting code:
Originally posted by @kylepinionseb in #43
The text was updated successfully, but these errors were encountered: