From 01c8eb3ad5ebf86552fd427be9b5cf0b9b9e06fb Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 3 Nov 2019 07:30:36 -0600 Subject: [PATCH] Correct settings display size. Issue #1236 --- iOS/SceneCoordinator.swift | 1 - iOS/Settings/SettingsViewController.swift | 2 -- 2 files changed, 3 deletions(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 1be094103..3d55c937f 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -793,7 +793,6 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { let settingsNavController = UIStoryboard.settings.instantiateInitialViewController() as! UINavigationController let settingsViewController = settingsNavController.topViewController as! SettingsViewController settingsNavController.modalPresentationStyle = .formSheet - settingsNavController.preferredContentSize = SettingsViewController.preferredContentSizeForFormSheetDisplay settingsViewController.presentingParentController = rootSplitViewController rootSplitViewController.present(settingsNavController, animated: true) } diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift index 0b155f06b..2834fac1a 100644 --- a/iOS/Settings/SettingsViewController.swift +++ b/iOS/Settings/SettingsViewController.swift @@ -15,8 +15,6 @@ class SettingsViewController: UITableViewController { private let appNewsURLString = "https://nnw.ranchero.com/feed.json" private weak var opmlAccount: Account? - static let preferredContentSizeForFormSheetDisplay = CGSize(width: 460.0, height: 400.0) - @IBOutlet weak var timelineSortOrderSwitch: UISwitch! @IBOutlet weak var groupByFeedSwitch: UISwitch! @IBOutlet weak var numberOfTextLinesLabel: UILabel!