Skip to content
Prev Previous commit
Next Next commit
fix: SwiftPM plugins
Test failures reporting on CI
  • Loading branch information
martinpucik committed Jul 31, 2022
commit a08ac7028a5498f28ab003a5ad10ddfa05568700
7 changes: 6 additions & 1 deletion Sources/Controllers/MessagesViewController+Keyboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ extension MessagesViewController {
keyboardManager.bind(inputAccessoryView: inputContainerView)
keyboardManager.bind(to: messagesCollectionView)




Comment thread
martinpucik marked this conversation as resolved.
Outdated
/// Observe didBeginEditing to scroll content to last item if necessary
NotificationCenter.default
.publisher(for: UITextView.textDidBeginEditingNotification)
Expand All @@ -42,7 +45,9 @@ extension MessagesViewController {
.delay(for: .milliseconds(200), scheduler: DispatchQueue.main)
.receive(on: DispatchQueue.main)
.sink { [weak self] notification in
self?.handleTextViewDidBeginEditing(notification)


Comment thread
martinpucik marked this conversation as resolved.
Outdated
self?.handleTextViewDidBeginEditing(notification)
}
.store(in: &disposeBag)

Expand Down
3 changes: 2 additions & 1 deletion Tests/MessageKitTests/Views Tests/AvatarViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ final class AvatarViewTests: XCTestCase {
XCTAssertEqual(avatarView.layer.cornerRadius, 15.0)
// For certain dynamic colors, need to compare cgColor in XCTest
// https://stackoverflow.com/questions/58065340/how-to-compare-two-uidynamicprovidercolor
XCTAssertEqual(avatarView.backgroundColor!.cgColor, UIColor.avatarViewBackground.cgColor)
// XCTAssertEqual(avatarView.backgroundColor!.cgColor, UIColor.avatarViewBackground.cgColor)
XCTAssertEqual(avatarView.backgroundColor!.cgColor, UIColor.red)
}

func testWithImage() {
Expand Down