Use split view for Settings
This commit is contained in:
parent
d25cc9eb9a
commit
72424c7db2
7 changed files with 143 additions and 116 deletions
24
pass/Controllers/SettingsSplitViewController.swift
Normal file
24
pass/Controllers/SettingsSplitViewController.swift
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue