Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swiftui foreach enum not all cases

enum Category {
    case all
    case A
    case B
    case C
    
    static let categories: [Category] = [.A, .B, .C]
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swiftui #foreach #enum #cases
ADD COMMENT
Topic
Name
2+3 =