mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Quick fix for #993
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user