UICMessenger
It's chat application, with whatsapp interface on iOS, built in Swift. No storyboard you can edit from the code only (if you want). Navigationbar button's action empty so you can handle them by your custom functions under delegate methods (ChatsNavigationBarDelegate & FloatingStartChatButtonDelegate, MessagesNavigationBarDelegate).
- Multiple included cell types: text, emoji, image, audio
- Easy to integrate with backend service, messages will sort automatically (depended on message date) after fetch.
- TableView based you can pre-load and cache something
- Press and hold mic button to record and immediatly send voice message.
- Auto resize message textView depended on text size.
- Send button automatically will change to record button if textView is empty and vice versa.
Screenshot:
How to implement it? (use it)
Inside AppDelegate.swift class :
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
window?.makeKeyAndVisible()
window?.rootViewController = ChatsViewController()
return true
}
Or create an instance of ChatsViewController.swift
in you VC then add it as child VC.
Issues 🦠 🦗:
- Some times cannot play voice messages. 🤔
- Minimum message bubble width is 180 px. (Easy to fix 😜)
In next update I will try to add :
- Share images from camera roll
- Video cell and send video from camera roll
- Clickable link in messages
Requirements
Xcode 9 or later
iOS 10.0 or later
Swift 4 or later
Licence :
The MIT License (MIT)
Credits
Coder ACJHP (Onur Işık)