-
Notifications
You must be signed in to change notification settings - Fork 2
/
ChatViewController.swift
44 lines (35 loc) · 1.08 KB
/
ChatViewController.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import Parley
import UIKit
class ChatViewController: BaseViewController {
@IBOutlet weak var parleyView: ParleyView! {
didSet {
let appearance = ParleyViewAppearance(
fontRegularName: "Montserrat-Regular",
fontItalicName: "Montserrat-Italic",
fontBoldName: "Montserrat-Bold"
)
appearance.offlineNotification.show = true
appearance.pushDisabledNotification.show = true
parleyView.appearance = appearance
parleyView.imagesEnabled = true
parleyView.delegate = self
}
}
var secret: String!
// MARK: Lifecycle
override func viewDidLoad() {
super.viewDidLoad()
title = NSLocalizedString("chat_title", comment: "")
}
// MARK: Actions
@IBAction
func dismiss(_ sender: Any) {
dismiss(animated: true, completion: nil)
}
}
// MARK: ParleyViewDelegate
extension ChatViewController: ParleyViewDelegate {
func didSentMessage() {
debugPrint("ChatViewController.didSentMessage")
}
}