How to log in SwiftUI
Issue #604
I see that the modifier needs to do something on the content, otherwise it is not getting called!
This logs on the modifier, when the View is created. A View won’t be recreated unless necessary
1 | struct LogModifier: ViewModifier { |
1 | VStack { |
Another simpler way is to make an extension
1 | extension View { |