2017-06-22 00:09:12 -07:00
|
|
|
//
|
|
|
|
|
// SettingsSplitViewController.swift
|
|
|
|
|
// pass
|
|
|
|
|
//
|
|
|
|
|
// Created by Mingshen Sun on 6/21/17.
|
|
|
|
|
// Copyright © 2017 Bob Sun. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
|
|
class SettingsSplitViewController: UISplitViewController, UISplitViewControllerDelegate {
|
|
|
|
|
override func viewDidLoad() {
|
2020-06-28 21:25:40 +02:00
|
|
|
delegate = self
|
|
|
|
|
preferredDisplayMode = .allVisible
|
2017-06-22 00:09:12 -07:00
|
|
|
}
|
2018-12-09 16:59:07 -08:00
|
|
|
|
2017-06-22 00:09:12 -07:00
|
|
|
func splitViewController(
|
2020-06-28 21:25:40 +02:00
|
|
|
_: UISplitViewController,
|
|
|
|
|
collapseSecondary _: UIViewController,
|
|
|
|
|
onto _: UIViewController
|
|
|
|
|
) -> Bool {
|
2017-06-22 00:09:12 -07:00
|
|
|
// Return true to prevent UIKit from applying its default behavior
|
2020-06-28 21:25:40 +02:00
|
|
|
true
|
2017-06-22 00:09:12 -07:00
|
|
|
}
|
|
|
|
|
}
|