Skip to content

Commit ffa21fd

Browse files
committed
Fixed bubbleTailOutline of message bubble
1 parent 03a4b58 commit ffa21fd

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa
66

77
## Upcoming release
88

9+
### Fixed
10+
11+
- Fixed `bubbleTailOutline` invalidation of message bubble.
12+
[#633](https://github.com/MessageKit/MessageKit/pull/633) by [@zhongwuzw](https://github.com/zhongwuzw).
13+
914
## [[Prerelease] 0.13.3](https://github.com/MessageKit/MessageKit/releases/tag/0.13.3)
1015

1116
### Fixed

Sources/Views/MessageContainerView.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,8 @@ open class MessageContainerView: UIImageView {
4848
switch style {
4949
case .none, .custom:
5050
break
51-
case .bubble, .bubbleTail:
51+
case .bubble, .bubbleTail, .bubbleOutline, .bubbleTailOutline:
5252
imageMask.frame = bounds
53-
case .bubbleOutline, .bubbleTailOutline:
54-
imageMask.frame = bounds.insetBy(dx: 1.0, dy: 1.0)
5553
}
5654
}
5755

@@ -70,11 +68,11 @@ open class MessageContainerView: UIImageView {
7068
image = style.image?.withRenderingMode(.alwaysTemplate)
7169
tintColor = color
7270
case .bubbleTailOutline(let color, let tail, let corner):
73-
let bubbleStyle: MessageStyle = .bubbleTailOutline(.white, tail, corner)
71+
let bubbleStyle: MessageStyle = .bubbleTail(tail, corner)
7472
imageMask.image = bubbleStyle.image
7573
sizeMaskToView()
7674
mask = imageMask
77-
image = style.image
75+
image = style.image?.withRenderingMode(.alwaysTemplate)
7876
tintColor = color
7977
case .none:
8078
mask = nil

0 commit comments

Comments
 (0)