mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
26 lines
568 B
Swift
26 lines
568 B
Swift
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
@objc
|
||
|
class MessageActionsViewController: UIViewController {
|
||
|
|
||
|
@objc
|
||
|
weak var delegate: MessageActionsDelegate?
|
||
|
|
||
|
override func loadView() {
|
||
|
self.view = UIView()
|
||
|
view.backgroundColor = .purple
|
||
|
|
||
|
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(didTapBackground))
|
||
|
self.view.addGestureRecognizer(tapGesture)
|
||
|
}
|
||
|
|
||
|
@objc
|
||
|
func didTapBackground() {
|
||
|
self.delegate?.dismissMessageActions(self)
|
||
|
}
|
||
|
}
|