Skip to content

Commit d2882fc

Browse files
committed
Fix: misspellings
1 parent c33d028 commit d2882fc

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

Example/Sources/Models/MockMessage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private struct ImageMediaItem: MediaItem {
6060
}
6161
}
6262

63-
private struct MockAudiotem: AudioItem {
63+
private struct MockAudioItem: AudioItem {
6464

6565
var url: URL
6666
var size: CGSize
@@ -156,7 +156,7 @@ internal struct MockMessage: MessageType {
156156
}
157157

158158
init(audioURL: URL, user: MockUser, messageId: String, date: Date) {
159-
let audioItem = MockAudiotem(url: audioURL)
159+
let audioItem = MockAudioItem(url: audioURL)
160160
self.init(kind: .audio(audioItem), user: user, messageId: messageId, date: date)
161161
}
162162

Example/Sources/View Controllers/AdvancedExampleViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ final class AdvancedExampleViewController: ChatViewController {
175175
}
176176
}
177177

178-
/// The input bar will autosize based on the contained text, but we can add padding to adjust the height or width if neccesary
178+
/// The input bar will autosize based on the contained text, but we can add padding to adjust the height or width if necessary
179179
/// See the InputBar diagram here to visualize how each of these would take effect:
180180
/// https://raw.githubusercontent.com/MessageKit/MessageKit/master/Assets/InputBarAccessoryViewLayout.png
181181
private func configureInputBarPadding() {
@@ -419,7 +419,7 @@ extension AdvancedExampleViewController: MessagesDisplayDelegate {
419419
}
420420

421421
func configureAudioCell(_ cell: AudioMessageCell, message: MessageType) {
422-
audioController.configureAudioCell(cell, message: message) // this is needed especily when the cell is reconfigure while is playing sound
422+
audioController.configureAudioCell(cell, message: message) // this is needed especially when the cell is reconfigure while is playing sound
423423
}
424424

425425
}

Example/Sources/View Controllers/AutocompleteExampleViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final class AutocompleteExampleViewController: ChatViewController {
5656
return array
5757
}()
5858

59-
// Completions loaded async that get appeneded to local cached completions
59+
// Completions loaded async that get appended to local cached completions
6060
var asyncCompletions: [AutocompleteCompletion] = []
6161

6262
override func viewDidAppear(_ animated: Bool) {

Example/Sources/View Controllers/BasicExampleViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ extension BasicExampleViewController: MessagesDisplayDelegate {
116116
}
117117

118118
func configureAudioCell(_ cell: AudioMessageCell, message: MessageType) {
119-
audioController.configureAudioCell(cell, message: message) // this is needed especily when the cell is reconfigure while is playing sound
119+
audioController.configureAudioCell(cell, message: message) // this is needed especially when the cell is reconfigure while is playing sound
120120
}
121121

122122
}

Example/Sources/View Controllers/ChatViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ChatViewController: MessagesViewController, MessagesDataSource {
3131

3232
// MARK: - Public properties
3333

34-
/// The `BasicAudioController` controll the AVAudioPlayer state (play, pause, stop) and udpate audio cell UI accordingly.
34+
/// The `BasicAudioController` control the AVAudioPlayer state (play, pause, stop) and update audio cell UI accordingly.
3535
lazy var audioController = BasicAudioController(messageCollectionView: messagesCollectionView)
3636

3737
lazy var messageList: [MockMessage] = []

Example/Sources/Views/SwiftUI/MessagesView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct MessagesView: UIViewControllerRepresentable {
6262

6363
private func scrollToBottom(_ uiViewController: MessagesViewController) {
6464
DispatchQueue.main.async {
65-
// The initialized state variable allows us to start at the bottom with the initial messages without seeing the inital scroll flash by
65+
// The initialized state variable allows us to start at the bottom with the initial messages without seeing the initial scroll flash by
6666
uiViewController.messagesCollectionView.scrollToLastItem(animated: self.initialized)
6767
self.initialized = true
6868
}

0 commit comments

Comments
 (0)