Merge branch 'dev' into feature/message-requests

This commit is contained in:
Morgan Pretty 2022-02-02 17:00:40 +11:00
commit 7f479bbca4
1 changed files with 4 additions and 2 deletions

View File

@ -477,9 +477,11 @@ final class VisibleMessageCell : MessageCell, LinkPreviewViewDelegate {
}
func highlight() {
bubbleView.setShadow(radius: 6, opacity: 1, offset: .zero, color: Colors.accent.cgColor)
let shawdowColour = isLightMode ? UIColor.black.cgColor : Colors.accent.cgColor
let opacity : Float = isLightMode ? 0.5 : 1
bubbleView.setShadow(radius: 10, opacity: opacity, offset: .zero, color: shawdowColour)
DispatchQueue.main.async {
UIView.animate(withDuration: 2) {
UIView.animate(withDuration: 1.6) {
self.bubbleView.setShadow(radius: 0, opacity: 0, offset: .zero, color: UIColor.clear.cgColor)
}
}