-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I have a fairly complex layout scenario which would benefit from the following technique (scroll down to "Using a preference key"):
https://swiftbysundell.com/questions/syncing-the-width-or-height-of-two-swiftui-views/
I use this in my iOS code and it works well.
Unfortunately, while Skip does seem to support PreferenceKey
generally, .onPreferenceChange
is not supported. This prevents me from being able to get the CGSize of a view and use it for calculations as needed.
Would it be possible to implement .onPreferenceChange
?
Metadata
Metadata
Assignees
Labels
No labels