struct modifySomething: ViewModifier { func body(content: Content) -> some View { content .shadow(color: .black, radius: 20, x: 0, y: 0) } } // HOW TO USE Circle() .modifier(modifySomething())
struct modifySomething: ViewModifier { func body(content: Content) -> some View { content .shadow(color: .black, radius: 20, x: 0, y: 0) } } // HOW TO USE Circle() .modifier(modifySomething())