Question : swiftui view modifier
Answered by : tony-sacco
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())
Source : | Last Update : Sun, 21 Aug 22