Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support defining custom ViewModifiers #23

Open
2 tasks
chkn opened this issue Jun 6, 2020 · 3 comments
Open
2 tasks

Support defining custom ViewModifiers #23

chkn opened this issue Jun 6, 2020 · 3 comments
Assignees

Comments

@chkn
Copy link
Owner

chkn commented Jun 6, 2020

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
@CartBlanche
Copy link
Collaborator

I have some of this in a branch.

@CartBlanche
Copy link
Collaborator

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

@chkn
Copy link
Owner Author

chkn commented Jun 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants