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.
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.
- Some times cannot play voice messages. 🤔
- Minimum message bubble width is 180 px. (Easy to fix 😜)
- Share images from camera roll
- Video cell and send video from camera roll
- Clickable link in messages
Xcode 9 or later
iOS 10.0 or later
Swift 4 or later
The MIT License (MIT)
Coder ACJHP (Onur Işık)