From 58346140a8c2044dcad778347c95fc49e0c6c51d Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 4 Jan 2021 14:20:25 -0600 Subject: [PATCH] =?UTF-8?q?Unhides=20=E2=80=9CHome=20Screen=20Shortcuts?= =?UTF-8?q?=E2=80=9D=20setting=20on=20devices=20without=203D=20Touch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All devices on iOS 13 or later support either 3D Touch or Haptic Touch, which means all devices now support home screen shortcuts. --- Delta/Settings/SettingsViewController.swift | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Delta/Settings/SettingsViewController.swift b/Delta/Settings/SettingsViewController.swift index 3709c66..b528edc 100644 --- a/Delta/Settings/SettingsViewController.swift +++ b/Delta/Settings/SettingsViewController.swift @@ -186,7 +186,17 @@ private extension SettingsViewController { switch section { - case .hapticTouch: return self.view.traitCollection.forceTouchCapability != .available + case .hapticTouch: + if #available(iOS 13, *) + { + // All devices on iOS 13 support either 3D touch or Haptic Touch. + return false + } + else + { + return self.view.traitCollection.forceTouchCapability != .available + } + default: return false } }