SwiftUI
Reusable component design
You're building a design system's card component in SwiftUI to reuse across many screens. When would you use each approach (a custom View, a ViewModifier, a Style protocol, and so on), and by what criteria?
Reusable component design
You're building a design system's card component in SwiftUI to reuse across many screens. When would you use each approach (a custom View, a ViewModifier, a Style protocol, and so on), and by what criteria?