You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: