Revert "Fix MessageInputBar translucent property"

This reverts commit f873c6d2bc.
This commit is contained in:
zhongwuzw
2017-11-13 11:07:47 +08:00
parent f873c6d2bc
commit 3b48dc38dc
+1 -5
View File
@@ -74,11 +74,7 @@ open class MessageInputBar: UIView {
}
blurView.isHidden = !isTranslucent
let color: UIColor = backgroundView.backgroundColor ?? .white
backgroundView.backgroundColor = isTranslucent ? color.withAlphaComponent(0.75) : color.withAlphaComponent(1.0)
let bgColor: UIColor = backgroundColor ?? .inputBarGray
backgroundColor = isTranslucent ? bgColor.withAlphaComponent(0.75) : bgColor.withAlphaComponent(1.0)
backgroundView.backgroundColor = isTranslucent ? color.withAlphaComponent(0.75) : .white
}
}