Xamarin.SwiftUI icon indicating copy to clipboard operation
Xamarin.SwiftUI copied to clipboard

Support defining custom ViewModifiers

Open chkn opened this issue 5 years ago • 3 comments

ViewModifier is another protocol in SwiftUI that is implemented as a struct, very similar to View.

  • [ ] Following the pattern of the View class, create a ViewModifier base class.
  • [ ] Following the pattern of CustomViewType, make a CustomViewModifierType type that derives from ManagedSwiftType

chkn avatar Jun 06 '20 05:06 chkn

I have some of this in a branch.

CartBlanche avatar Jun 07 '20 12:06 CartBlanche

@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??

CartBlanche avatar Jun 21 '22 12:06 CartBlanche

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

chkn avatar Jun 21 '22 12:06 chkn