Xamarin.SwiftUI
Xamarin.SwiftUI copied to clipboard
Support defining custom ViewModifiers
ViewModifier is another protocol in SwiftUI that is implemented as a struct, very similar to View.
- [ ] Following the pattern of the
Viewclass, create aViewModifierbase class. - [ ] Following the pattern of
CustomViewType, make aCustomViewModifierTypetype that derives fromManagedSwiftType
I have some of this in a branch.
@chkn do you think it's worth updating/rebasing https://github.com/chkn/Xamarin.SwiftUI/tree/dominique-ViewModifier2 to see how much more work is required to finish this? Or scrap the branch and start from scratch??
Good question. You could try merging main into it and see how bad the conflicts are. It looks like most of that work is still applicable, with a little updating. But starting from scratch and copying stuff over might be less tedious