which way is the optimal option when it comes ViewModifiers ? as extension for View ? or as .modifier(something())
I have a modifier and I am confused in implementing it as .modifier() , or as View extension . Yet , visually they work the same thing, but technically under the hood , not sure .