Skip to content

Commit 4e6250f

Browse files
Merge pull request #1038 from MessageKit/typingIndicatorView
Typing Indicator Support
2 parents 231e4ca + 8cc96d7 commit 4e6250f

35 files changed

Lines changed: 753 additions & 83 deletions

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,27 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa
1010

1111
### Changed
1212

13-
- **Breaking Change** Add support for share contact. [#1013](https://github.com/MessageKit/MessageKit/pull/1013) by [@moldovaniosif](https://github.com/moldovaniosif)
13+
- **Breaking Change** Deprecated the Sender struct in favor of the `SenderType` protocol.
14+
[#909](https://github.com/MessageKit/MessageKit/pull/909) by [@nathantannar4](https://github.com/nathantannar4)
1415

1516
- **Breaking Change** Deprecated the Sender struct in favor of the `SenderType` protocol. [#909](https://github.com/MessageKit/MessageKit/pull/909) by [@nathantannar4](https://github.com/nathantannar4)
1617

17-
- **Breaking Change** Add support for audio messages [#892](https://github.com/MessageKit/MessageKit/pull/892) by [@moldovaniosif](https://github.com/moldovaniosif). Added new protocols `AudioControllerDelegate`, `AudioItem` a new cell `AudioMessageCell` and a new controller `BasicAudioController`.
18+
- **Breaking Change** Add support for audio messages. Added new protocols `AudioControllerDelegate`, `AudioItem` a new cell `AudioMessageCell` and a new controller `BasicAudioController`.
19+
[#892](https://github.com/MessageKit/MessageKit/pull/892) by [@moldovaniosif](https://github.com/moldovaniosif).
1820

19-
- **Breaking Change** Moved `handleTapGesture` method to `MessageCollectionViewCell` [#950](https://github.com/MessageKit/MessageKit/pull/950) by [@nathantannar4](https://github.com/nathantannar4)
21+
- **Breaking Change** Moved `handleTapGesture` method to `MessageCollectionViewCell`
22+
[#950](https://github.com/MessageKit/MessageKit/pull/950) by [@nathantannar4](https://github.com/nathantannar4)
2023

2124
- **Breaking Change** Renamed function `layoutBottomLabel(with:)` to `layoutMessageBottomLabel(with:)` in `MessageContentCell` class.
2225
[#920](https://github.com/MessageKit/MessageKit/pull/920) by [@maxxx777](https://github.com/maxxx777)
2326

2427
### Added
2528

29+
- **Breaking Change** Add support for share contact. [#1013](https://github.com/MessageKit/MessageKit/pull/1013) by [@moldovaniosif](https://github.com/moldovaniosif)
30+
31+
- Added typing indicator support, `func setTypingIndicatorViewHidden(_ isHidden: Bool, animated: Bool, whilePerforming updates: (() -> Void)? = nil, completion: ((Bool) -> Void)? = nil)`. Return a custom typing view by conforming to `MessagesDisplayDelegate` or use the [default appearance](https://github.com/nathantannar4/TypingIndicator). Customize the size with `MessagesLayoutDelegate` .
32+
[#989](https://github.com/MessageKit/MessageKit/pull/911) by [@nathantannar4](https://github.com/nathantannar4)
33+
2634
- Added `AccessoryPosition` class.
2735
[#989](https://github.com/MessageKit/MessageKit/pull/989) by [@subdiox](https://github.com/subdiox)
2836

Example/Sources/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MIT License
33

4-
Copyright (c) 2017-2018 MessageKit
4+
Copyright (c) 2017-2019 MessageKit
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

Example/Sources/AudioController/BasicAudioController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MIT License
33

4-
Copyright (c) 2017-2018 MessageKit
4+
Copyright (c) 2017-2019 MessageKit
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

Example/Sources/Data Generation/Lorem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MIT License
33

4-
Copyright (c) 2017-2018 MessageKit
4+
Copyright (c) 2017-2019 MessageKit
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

Example/Sources/Data Generation/SampleData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MIT License
33

4-
Copyright (c) 2017-2018 MessageKit
4+
Copyright (c) 2017-2019 MessageKit
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

Example/Sources/Extensions/UIColor+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MIT License
33

4-
Copyright (c) 2017-2018 MessageKit
4+
Copyright (c) 2017-2019 MessageKit
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

Example/Sources/Extensions/UIViewController+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MIT License
33

4-
Copyright (c) 2017-2018 MessageKit
4+
Copyright (c) 2017-2019 MessageKit
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

Example/Sources/Layout/CustomMessageFlowLayout.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MIT License
33

4-
Copyright (c) 2017-2018 MessageKit
4+
Copyright (c) 2017-2019 MessageKit
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -30,9 +30,9 @@ open class CustomMessagesFlowLayout: MessagesCollectionViewFlowLayout {
3030
open lazy var customMessageSizeCalculator = CustomMessageSizeCalculator(layout: self)
3131

3232
open override func cellSizeCalculatorForItem(at indexPath: IndexPath) -> CellSizeCalculator {
33-
// if isSectionReservedForTypingBubble(indexPath.section) {
34-
// return typingMessageSizeCalculator
35-
// }
33+
if isSectionReservedForTypingIndicator(indexPath.section) {
34+
return typingIndicatorSizeCalculator
35+
}
3636
let message = messagesDataSource.messageForItem(at: indexPath, in: messagesCollectionView)
3737
if case .custom = message.kind {
3838
return customMessageSizeCalculator

Example/Sources/Models/MockMessage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MIT License
33

4-
Copyright (c) 2017-2018 MessageKit
4+
Copyright (c) 2017-2019 MessageKit
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

Example/Sources/Models/MockSocket.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MIT License
33

4-
Copyright (c) 2017-2018 MessageKit
4+
Copyright (c) 2017-2019 MessageKit
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)