Simply I have a struct that stores the application constants as below:
struct Constant {
static let ParseApplicationId = "xxx"
static let ParseClientKey = "xxx"
static var AppGreenColor: UIColor {
return UIColor(hexString: "67B632")
}
}
These constants can be use in Swift code by calling Constant.ParseClientKey
for example. But in my code, it also contains some Objective-C classes. So my question is how to use these constants in the Objective-C code?
If this way to declare constants is not good then what is the best way to create global constants to be used in both Swift and Objective-C code?