mirror of
https://github.com/louisdh/panelkit.git
synced 2024-09-11 08:15:24 +03:00
[Unit Test] Removed dead code
This commit is contained in:
parent
5e7049f662
commit
91257481d0
@ -43,36 +43,16 @@ class ViewController: UIViewController, PanelManager {
|
||||
|
||||
enableTripleTapExposeActivation()
|
||||
|
||||
mapPanelBarBtn = UIBarButtonItem(title: "Map", style: .done, target: self, action: #selector(showMap(_:)))
|
||||
textPanelBarBtn = UIBarButtonItem(title: "Text", style: .done, target: self, action: #selector(showTextViewPanel(_:)))
|
||||
mapPanelBarBtn = UIBarButtonItem(title: "Map", style: .done, target: self, action: nil)
|
||||
textPanelBarBtn = UIBarButtonItem(title: "Text", style: .done, target: self, action: nil)
|
||||
|
||||
self.navigationItem.title = "Test"
|
||||
self.navigationItem.rightBarButtonItems = [mapPanelBarBtn, textPanelBarBtn]
|
||||
|
||||
}
|
||||
|
||||
// MARK: - Exposé
|
||||
|
||||
@IBAction func toggleExpose(_ sender: UIBarButtonItem) {
|
||||
|
||||
toggleExpose()
|
||||
|
||||
}
|
||||
|
||||
// MARK: - Popover
|
||||
|
||||
func showMap(_ sender: UIBarButtonItem) {
|
||||
|
||||
showPopover(mapPanelVC, from: sender)
|
||||
|
||||
}
|
||||
|
||||
func showTextViewPanel(_ sender: UIBarButtonItem) {
|
||||
|
||||
showPopover(textPanelVC, from: sender)
|
||||
|
||||
}
|
||||
|
||||
func showMapPanelFromBarButton(completion: @escaping (() -> Void)) {
|
||||
showPopover(mapPanelVC, from: mapPanelBarBtn, completion: completion)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user