2019-04-19 14:49:35 +02:00
|
|
|
//
|
|
|
|
// UISplitViewController-Extensions.swift
|
|
|
|
// NetNewsWire
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 4/18/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
2019-04-18 15:33:39 +02:00
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|