From d5a9050464fa9770b19ef7dfbaaa71af98edf891 Mon Sep 17 00:00:00 2001 From: Magesh K <47920326+mahee96@users.noreply.github.com> Date: Thu, 12 Dec 2024 19:12:09 +0530 Subject: [PATCH] [settings]: Fix: siri shortcut missing from settings --- AltStore/Settings/Settings.storyboard | 56 +++++++++---------- .../Settings/SettingsViewController.swift | 4 +- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/AltStore/Settings/Settings.storyboard b/AltStore/Settings/Settings.storyboard index 2b825df8..02085bde 100644 --- a/AltStore/Settings/Settings.storyboard +++ b/AltStore/Settings/Settings.storyboard @@ -272,6 +272,34 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -301,34 +329,6 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index d50fbf98..e16610ac 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -40,8 +40,10 @@ extension SettingsViewController static var allCases: [AppRefreshRow] { var c: [AppRefreshRow] = [.backgroundRefresh, .noIdleTimeout] guard #available(iOS 14, *) else { return c } - if !ProcessInfo().sparseRestorePatched { c.append(.disableAppLimit) } c.append(.addToSiri) + + // conditional entries go at the last to preserve ordering + if !ProcessInfo().sparseRestorePatched { c.append(.disableAppLimit) } return c } }