I have begun to try to use MessageKit
from the Firebase Chat tutorial that uses MessageKit
so far. I have come across this error that does not appear inside the tutorial project. When I try to use the code from the tutorial project I am getting this error and am not sure how to solve it.
Argument labels '(type:)' do not match any available overloads
let cameraItem = UIBarButtonItem(type: .system)
You cannot create an UIBarButtonItem like that because it's not part of the documentation. Here is the official documentation of UIBarButtonItem with different initialisers.
If you want to create a UIBarButtonItem with default system items:
Here is a list of all UIBarButtonItem.SystemItem that you can use to create a UIBarButtonItem
You can also create a UIBarButtonItem with different data, like images, text etc... Take a look at this page