Change settings from using SwiftUI to using UIKit

This commit is contained in:
Maurice Parker
2019-10-21 11:51:33 -05:00
parent 94f31b18bc
commit effec24674
26 changed files with 1916 additions and 1198 deletions

View File

@@ -786,9 +786,10 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
}
func showSettings() {
rootSplitViewController.present(style: .formSheet) {
SettingsView(viewModel: SettingsView.ViewModel()).environment(\.sceneCoordinator, self)
}
let settingsNavController = UIStoryboard.settings.instantiateInitialViewController() as! UINavigationController
settingsNavController.modalPresentationStyle = .formSheet
settingsNavController.preferredContentSize = SettingsViewController.preferredContentSizeForFormSheetDisplay
masterFeedViewController.present(settingsNavController, animated: true)
}
func showFeedInspector() {