NetNewsWire/iOS/Extensions/UISplitViewController-Extensions.swift

15 lines
329 B
Swift

//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)
}
}
}