I have two colour variables:
var blue = UIColor(red:0.08, green:0.49, blue:0.49, alpha:1.0)
var red = UIColor(red:0.61, green:0.12, blue:0.20, alpha:1.0)
I have declared these variables in my EntryViewController
, however, I also need to use them in my other ViewControllers
. I was wondering if it were possible to use the same variables in multiple ViewControllers
? I already know about passing data with segues, but I was wondering if there were a way to maybe declare the colours in their own class and subclass my ViewControllers
with this class. Thank you.