mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Merge branch 'dev' into feature/message-requests
This commit is contained in:
commit
7f479bbca4
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue