RawOptionSetType
When interacting with frameworks like Foundation in Swift, all of those
NS_ENUM
declarations are automatically converted into anenum
—often improving on the original Objective-C declaration by eliminating naming redundancies […] Unfortunately, forNS_OPTIONS
, the Swift equivalent is arguably worse.[…]
Compared to the syntactically concise
enum
declaration,RawOptionsSetType
is awkward and cumbersome, requiring over a dozen lines of boilerplate for computed properties.