Short enumeration declaration in type signatures

My pitch wasn't anonymous unions, it was ad-hoc enums

image: UIImage,
toSize size: CGSize,
fitImage: Bool = true
) -> UIImage {```

And here's what I want the function signature to actually look like:

image: UIImage,
toSize size: CGSize,
operation: (.Fit | .Fill) = .Fit
) -> UIImage {```
1 Like