From 3b48dc38dc5a85fe5300bfeffa57c41b871f8bc2 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Mon, 13 Nov 2017 11:07:47 +0800 Subject: [PATCH] Revert "Fix MessageInputBar translucent property" This reverts commit f873c6d2bc979f0367a5705c255a9f35d78440e8. --- Sources/Views/MessageInputBar.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Sources/Views/MessageInputBar.swift b/Sources/Views/MessageInputBar.swift index d9b54466..07cd87d7 100644 --- a/Sources/Views/MessageInputBar.swift +++ b/Sources/Views/MessageInputBar.swift @@ -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 } }