Skip to content

Commit 644ee72

Browse files
committed
Fix tests and warnings
1 parent 7e4c116 commit 644ee72

9 files changed

Lines changed: 567 additions & 577 deletions

Sources/Views/TypingIndicator.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,13 @@ open class TypingIndicator: UIView {
9191
guard !isAnimating else { return }
9292
var delay: TimeInterval = 0
9393
for dot in dots {
94+
let currentDelay = delay
9495
DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
9596
guard let self = self else { return }
9697
if self.isBounceEnabled {
9798
dot.layer.add(self.initialOffsetAnimationLayer, forKey: AnimationKeys.offset)
9899
let bounceLayer = self.bounceAnimationLayer
99-
bounceLayer.timeOffset = delay + 0.33
100+
bounceLayer.timeOffset = currentDelay + 0.33
100101
dot.layer.add(bounceLayer, forKey: AnimationKeys.bounce)
101102
}
102103
if self.isFadeEnabled {

Tests/MessageKitTests/Controllers Test/MessageLabelTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import XCTest
2626

2727
// MARK: - MessageLabelTests
2828

29+
@MainActor
2930
final class MessageLabelTests: XCTestCase {
3031
// MARK: Internal
3132

0 commit comments

Comments
 (0)