We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
In order to avoid shotgun surgery in the event you may want to change usage of mixer, write an adapter:
class ColorAdapter { private let mixer = Mixer(bundle: NSBundle(forClass: ColorAdapter.self)) func colorFor(color: String) -> UIColor? { return mixer.colorFor(color) } }
If you're a fan of extensions, here's how to extend UIColor:
UIColor
extension UIColor { init(withName name: String) { guard let colorWithName = ColorAdapter().colorFor(name) else { return nil } self.init(CIColor: colorWithName.CIColor) } }