Love it, but modifiers..
SpectralDragon opened this issue ยท 2 comments
SpectralDragon commented
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
chris-swift-dev commented
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.
chris-swift-dev commented
Thanks again @SpectralDragon . I just released Version 4.0.0 ;)