Quick fix for #993

This commit is contained in:
Nathan Tannar
2019-02-28 22:33:27 -08:00
parent 6eff119a5e
commit e9b3a7065f
2 changed files with 10 additions and 2 deletions
@@ -207,8 +207,16 @@ final class AdvancedExampleViewController: ChatViewController {
$0.tintColor = .primaryColor
}.onDeselected {
$0.tintColor = UIColor(white: 0.8, alpha: 1)
}.onTouchUpInside { _ in
}.onTouchUpInside {
print("Item Tapped")
let actionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
let action = UIAlertAction(title: "Cancel", style: .cancel, handler: nil)
actionSheet.addAction(action)
if let popoverPresentationController = actionSheet.popoverPresentationController {
popoverPresentationController.sourceView = $0
popoverPresentationController.sourceRect = $0.frame
}
self.navigationController?.present(actionSheet, animated: true, completion: nil)
}
}