mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Fix: misspellings
This commit is contained in:
@@ -60,7 +60,7 @@ private struct ImageMediaItem: MediaItem {
|
||||
}
|
||||
}
|
||||
|
||||
private struct MockAudiotem: AudioItem {
|
||||
private struct MockAudioItem: AudioItem {
|
||||
|
||||
var url: URL
|
||||
var size: CGSize
|
||||
@@ -156,7 +156,7 @@ internal struct MockMessage: MessageType {
|
||||
}
|
||||
|
||||
init(audioURL: URL, user: MockUser, messageId: String, date: Date) {
|
||||
let audioItem = MockAudiotem(url: audioURL)
|
||||
let audioItem = MockAudioItem(url: audioURL)
|
||||
self.init(kind: .audio(audioItem), user: user, messageId: messageId, date: date)
|
||||
}
|
||||
|
||||
|
||||
@@ -175,7 +175,7 @@ final class AdvancedExampleViewController: ChatViewController {
|
||||
}
|
||||
}
|
||||
|
||||
/// The input bar will autosize based on the contained text, but we can add padding to adjust the height or width if neccesary
|
||||
/// The input bar will autosize based on the contained text, but we can add padding to adjust the height or width if necessary
|
||||
/// See the InputBar diagram here to visualize how each of these would take effect:
|
||||
/// https://raw.githubusercontent.com/MessageKit/MessageKit/master/Assets/InputBarAccessoryViewLayout.png
|
||||
private func configureInputBarPadding() {
|
||||
@@ -419,7 +419,7 @@ extension AdvancedExampleViewController: MessagesDisplayDelegate {
|
||||
}
|
||||
|
||||
func configureAudioCell(_ cell: AudioMessageCell, message: MessageType) {
|
||||
audioController.configureAudioCell(cell, message: message) // this is needed especily when the cell is reconfigure while is playing sound
|
||||
audioController.configureAudioCell(cell, message: message) // this is needed especially when the cell is reconfigure while is playing sound
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ final class AutocompleteExampleViewController: ChatViewController {
|
||||
return array
|
||||
}()
|
||||
|
||||
// Completions loaded async that get appeneded to local cached completions
|
||||
// Completions loaded async that get appended to local cached completions
|
||||
var asyncCompletions: [AutocompleteCompletion] = []
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
|
||||
@@ -116,7 +116,7 @@ extension BasicExampleViewController: MessagesDisplayDelegate {
|
||||
}
|
||||
|
||||
func configureAudioCell(_ cell: AudioMessageCell, message: MessageType) {
|
||||
audioController.configureAudioCell(cell, message: message) // this is needed especily when the cell is reconfigure while is playing sound
|
||||
audioController.configureAudioCell(cell, message: message) // this is needed especially when the cell is reconfigure while is playing sound
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ class ChatViewController: MessagesViewController, MessagesDataSource {
|
||||
|
||||
// MARK: - Public properties
|
||||
|
||||
/// The `BasicAudioController` controll the AVAudioPlayer state (play, pause, stop) and udpate audio cell UI accordingly.
|
||||
/// The `BasicAudioController` control the AVAudioPlayer state (play, pause, stop) and update audio cell UI accordingly.
|
||||
lazy var audioController = BasicAudioController(messageCollectionView: messagesCollectionView)
|
||||
|
||||
lazy var messageList: [MockMessage] = []
|
||||
|
||||
@@ -62,7 +62,7 @@ struct MessagesView: UIViewControllerRepresentable {
|
||||
|
||||
private func scrollToBottom(_ uiViewController: MessagesViewController) {
|
||||
DispatchQueue.main.async {
|
||||
// The initialized state variable allows us to start at the bottom with the initial messages without seeing the inital scroll flash by
|
||||
// The initialized state variable allows us to start at the bottom with the initial messages without seeing the initial scroll flash by
|
||||
uiViewController.messagesCollectionView.scrollToLastItem(animated: self.initialized)
|
||||
self.initialized = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user