Use split view for Settings

This commit is contained in:
Bob Sun 2017-06-22 00:09:12 -07:00
parent d25cc9eb9a
commit 72424c7db2
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
7 changed files with 143 additions and 116 deletions

View file

@ -0,0 +1,24 @@
//
// 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() {
self.delegate = self
self.preferredDisplayMode = .allVisible
}
func splitViewController(
_ splitViewController: UISplitViewController,
collapseSecondary secondaryViewController: UIViewController,
onto primaryViewController: UIViewController) -> Bool {
// Return true to prevent UIKit from applying its default behavior
return true
}
}