News for hackers. Stuff that matters.
Re:A Girl and Her ViewBuilder by hhh on Sunday February 25, 2024 @02:33PM (#39503980)
I quite like this style of blog entry, it flows well once you get used to the structure.
Re:A Girl and Her ViewBuilder by whaleofatw2022 on Sunday February 25, 2024 @02:56PM (#39504182)
This all reminds me of WebSharper, so cool but DSLs for this have been around for over a decade.
Re:A Girl and Her ViewBuilder by saagarjha on Sunday February 25, 2024 @02:31PM (#39503952)
You know, I never really understood why ViewModifier exists at all. How is it different from an extension on View?
Re:A Girl and Her ViewBuilder by TheNightman on Sunday February 25, 2024 @06:47PM (#39506178)
A viewmodifier can have its own @State, etc. I can’t think of anything that couldn’t be accomplished with an extension on View with a few tricks but ViewModifiers are easier & cleaner IMO. I usually have a ViewModifier along with an extension on view used to apply it
Re:A Girl and Her ViewBuilder by Zetobal on Sunday February 25, 2024 @02:39PM (#39504034)
Didn't really do anything for me neither helping to understand the subject nor the style of it. Rather the opposite I am now less likely to try it.