A chat controller written in Swift
pod 'SwiftyChat'
- Import SwiftyChat
- Create a new view controller and make it a subclass of ChatViewController
- Run your app and try it out!
You can set your own style instead of that comes by default by assigning the controllers.
You can customize the following:
- Typing area font:
self.style.textViewFont = .systemFont(ofSize: 12, weight: .regular)
- Typing area tint color: use this to customize the cursor color
self.style.textViewTintColor = .black
- Placeholder text color:
self.style.placeholderTextColor = .lightGray
- Text area background color:
self.style.textAreaBackgroundColor = .white
You can also change the send buttons image, the table footer view etc..
You can change these options if you prefer:
- Hiding the keyboard on scroll (defaults to
true
):self.options.hideKeyboardOnScroll = false
- Hiding keyboard when tapping the table view (defaults to
true
):self.options.hideKeyboardOnTableTap = false