chris-swift-dev/AdvancedList

Love it, but modifiers..

SpectralDragon opened this issue ยท 2 comments

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

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.

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