simplified backgroundColor logic

pull/1/head
Fredrik Lillejordet 7 years ago committed by Matthew Chen
parent 3a47422b31
commit 21e0d1cd3d

@ -5,7 +5,7 @@
@objc class NeverClearView: UIView {
override var backgroundColor: UIColor? {
didSet {
if backgroundColor != nil && backgroundColor!.cgColor.alpha == 0 {
if backgroundColor?.cgColor.alpha == 0 {
backgroundColor = oldValue
}
}

Loading…
Cancel
Save