Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: InpuBar as subview instead of accessoryView
Updated InputBarAccessoryView version to 6.0.0
  • Loading branch information
martinpucik committed May 5, 2022
commit aef7eccaba698737354a32bf422f1e04cc91fbba
6 changes: 4 additions & 2 deletions Example/Sources/View Controllers/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ class ChatViewController: MessagesViewController, MessagesDataSource {

override func viewDidLoad() {
super.viewDidLoad()

navigationItem.largeTitleDisplayMode = .never
navigationItem.title = "MessageKit"

configureMessageCollectionView()
configureMessageInputBar()
loadFirstMessages()
title = "MessageKit"

}

override func viewDidAppear(_ animated: Bool) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ final internal class LaunchViewController: UITableViewController {
title = "MessageKit"
navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil)
navigationController?.navigationBar.prefersLargeTitles = true
navigationController?.navigationBar.tintColor = .primaryColor
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "cell")
tableView.tableFooterView = UIView()
}
Expand Down
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ let package = Package(
.library(name: "MessageKit", targets: ["MessageKit"]),
],
dependencies: [
// .package(url: "https://github.com/nathantannar4/InputBarAccessoryView", .upToNextMajor(from: "5.5.0"))
.package(url: "https://github.com/nathantannar4/InputBarAccessoryView", .branch("master"))
.package(url: "https://github.com/nathantannar4/InputBarAccessoryView", .upToNextMajor(from: "6.0.0"))
],
targets: [
.target(
Expand Down
1 change: 0 additions & 1 deletion Sources/Controllers/MessagesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ open class MessagesViewController: UIViewController, UICollectionViewDelegateFlo
addMenuControllerObservers()
/// Layout input container view and update messagesCollectionViewInsets
view.layoutIfNeeded()
updateMessageCollectionViewBottomInset()
}

open override func viewSafeAreaInsetsDidChange() {
Expand Down