AP
Size: a a a
AP
AP
ПП
extension UIColor {Так симпатичнее чем в енамах этих ваших
struct MyTheme {
static var firstColor: UIColor { return UIColor(red: 1, green: 0, blue: 0, alpha: 1) }
static var secondColor: UIColor { return UIColor(red: 0, green: 1, blue: 0, alpha: 1) }
}
}
AP
extension UIColor {Так симпатичнее чем в енамах этих ваших
struct MyTheme {
static var firstColor: UIColor { return UIColor(red: 1, green: 0, blue: 0, alpha: 1) }
static var secondColor: UIColor { return UIColor(red: 0, green: 1, blue: 0, alpha: 1) }
}
}
КS
ПП
AP
Colors {
case red, blue
var color: UIColor {
switch
self {
case .red:
return UIColor.red
case .blue:
return UIColor.blue
}
}
}
КS
ПП
Colors {
case red, blue
var color: UIColor {
switch
self {
case .red:
return UIColor.red
case .blue:
return UIColor.blue
}
}
}
AK
NM
NM
AK
NM
ПП
КS
Colors {
case red, blue
var color: UIColor {
switch
self {
case .red:
return UIColor.red
case .blue:
return UIColor.blue
}
}
}