swiftui foreach enum pas tous les cas

enum Category {
    case all
    case A
    case B
    case C
    
    static let categories: [Category] = [.A, .B, .C]
}
Marco Medhat