mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Changed to automatically hide the master list when on iPad in portrait.
This commit is contained in:
14
iOS/Extensions/UISplitViewController-Extensions.swift
Normal file
14
iOS/Extensions/UISplitViewController-Extensions.swift
Normal 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)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user