4 ms·
I still don’t think this is a good solution because of the common CNLabelContactRelation prefix. It would be better to introduce a CNLabelContactRelation enum?
by zoul 7y ago
I still don’t think this is a good solution because of the common CNLabelContactRelation prefix. It would be better to introduce a CNLabelContactRelation enum? Then the enum cases would be much less painful. Or at least an empty enum as a namespace:
enum CNLabelContactRelation {
static let aunt = "…"
static let auntFathersBrothersWife = "…"
}
- umanwizard 7y agoIn Objective-C (and C), enum members are unscoped. So in your example "aunt" would be in the global namespace.