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

Love it, but modifiers.. #3

Closed
SpectralDragon opened this issue Nov 20, 2019 · 2 comments
Closed

Love it, but modifiers.. #3

SpectralDragon opened this issue Nov 20, 2019 · 2 comments

Comments

@SpectralDragon
Copy link

I think, that will good solutions using a modifiers instead of closures in init method. It'll more flexible and SwiftUI-like.

Examples:
Pretty modifiers for custom view.
https://github.com/onevcat/Kingfisher/blob/master/Sources/SwiftUI/KFImage.swift

Pure SwiftUI modifiers:
https://github.com/SwiftUIExtensions/Grid

@crelies
Copy link
Owner

crelies commented Nov 20, 2019

Hey @SpectralDragon ,

Thank you for feedback! I wanted to implement it using modifiers but the compiler was complaining all the time :D ('you can't mutate the view ...').
But as it turns out there is a way. Thank you for the examples 👍. I will take a look at them and will publish a new version.

@crelies
Copy link
Owner

crelies commented Nov 20, 2019

Thanks again @SpectralDragon . I just released Version 4.0.0 ;)

@crelies crelies closed this as completed Nov 20, 2019
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