Changed to automatically hide the master list when on iPad in portrait.

This commit is contained in:
Maurice Parker
2019-04-18 08:33:39 -05:00
parent b1a9a45f53
commit 5ffc6e1cef
3 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
//Copyright © 2019 Ranchero Software. All rights reserved.
import UIKit
extension UISplitViewController {
func toggleMasterView() {
let barButtonItem = self.displayModeButtonItem
if let action = barButtonItem.action {
UIApplication.shared.sendAction(action, to: barButtonItem.target, from: nil, for: nil)
}
}
}