I have created an extension for UIColor in swift to add custom colors. The colors I have grouped together in their own namespace for which I have used enums with no cases. Here is the class:
extension UIColor {
public enum FirstGroup {
static var salmonColor: UIColor {
return UIColor(red: 255.0 / 255.0, green: 102.0 / 255.0, blue: 102.0 / 255.0, alpha: 1.0)
}
}
public enum SecondGroup {
static var strawberryColor: UIColor {
return UIColor(red: 255.0 / 255.0, green: 0.0 / 255.0, blue: 128.0 / 255.0, alpha: 1.0)
}
}
}
I am able to call this in my swift class like UIColor.FirstGroup.salmonColor
Now, I would like to use this extension in my Objective-C classes too. How can I do that?