Swift question is there a way of having an enum type with one case that can have an associated value.
I have an API that gives me available filters, it\'s unlikely but p
According to this answer: Default value for Enum in Swift
I recommend using such an approach
public enum Result { case passed(hint: String) case failed(message: String) static let passed: Self = .passed(hint: "") } let res: Result = Result.passed