Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
feat: Mod Settings groups its rows by purpose with Redesigned UI first
My-Name-Is-Jeff4bc6e4b6b3e5
diff --git a/AGENTS.md b/AGENTS.mdindex 9c47dd22..8cc0a8be 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -5,7 +5,7 @@ A Theos tweak (Objective-C + Logos) injected into the decrypted Spotify iOS app.## Two looks, never both-**Redesigned UI** (Mod Settings → Appearance) picks one of two looks, read once at launch:+**Redesigned UI** (the first row of Mod Settings) picks one of two looks, read once at launch:- **Native**: Spotify's own screens with the mod's tweaks on them (hide switches, glass header buttons,Home gradient, AMOLED switch, accent colour...).diff --git a/docs/tweaks.md b/docs/tweaks.mdindex 504a7c08..53598129 100644--- a/docs/tweaks.md+++ b/docs/tweaks.md@@ -38,7 +38,7 @@ recorded trees: both are read out of Spotify's own binary and belong to whoever## Layers-The mod has two looks, picked by Redesigned UI in Appearance: Spotify's own screens with the mod's+The mod has two looks, picked by Redesigned UI at the top of Mod Settings: Spotify's own screens with the mod'stweaks on them, or the redesign, which starts from a clean sheet. What does not draw on Spotify'sscreens works under both. So the sources are four layers, each a directory of features:@@ -380,7 +380,7 @@ Redesigned:App:ModSettings.x the root page and the rows that open it from Spotify's settings and the side drawer- Pages.m the Appearance page with Redesigned UI, the Player and Lyrics pages, which Navbar page opens+ Pages.m Redesigned UI's switch, the Appearance, Vibrations, Player and Lyrics pages, which Tab bar page opensAbout/ the update check against the repo's GitHub Releases, the Updates page it fills (the state, andthe changelog of every release newer than the build, a line per commit) and the sheet a newerrelease brings up on its own a few seconds after Spotify opens, once per release; backup, the@@ -424,18 +424,22 @@ Spotify behind a symbol on a tile of its own colour, grey chevrons and footnotepage. It sorts everysetting by the part of Spotify it changes, so a part's glass, its hide switches and its flags sit onone page, the mod's own rows first and Spotify's flags below them or on a sub page named after what-they change. It opens on the Appearance row, on a card of its own under the signing warning, which opens the Appearance-page: Redesigned UI, then in the native look AMOLED (the redesign is always black), then the stored look's Accent colour+they change. Its main page groups the rows by what they are, in cards with no headings as Settings has its own,+under the signing and environment warnings: Redesigned UI, Appearance and Tab bar; Player, Lyrics and Albums &+artists (Home & Library in the native look); Sing, Spatial voice (where the iPhone reads headphone motion), Audio+effects, Vibrations, Live Activity, AirPods gestures and Listening stats; Lock screen and Premium, ads & privacy; Labs and All flags; Mod. It is checked in the simulator+against harness/mod-settings/. The Appearance page has, in the native look, AMOLED (the redesign is always black), then the stored look's Accent colourpreset, a pull-down of Spotify, Apple Music and Custom read off the colour stored (a colour set before the presetsexisted reads as Custom, Apple Music's red as Apple Music), and Accent colour, the hex and a swatch of the colour ineffect, which opens the system picker in a sheet that stores only from its checkmark, as Custom. The custom colour iskept aside while a preset is in place, so Custom brings it back. Last come the Font, under either look and on anyiOS, below 26 too, with Custom font among its choices (a .ttf or .otf imported from Files by the row under it,copied to Application Support/Vitrine/Font and registered again at each launch, Spotify's font coming back when the-file is gone), and the App icon. Everything on the page applies after a restart. Redesigned UI is the one switch between the two looks (see Layers): it glows-(Settings/SGGlowSwitch), its ⓘ says what it changes, and flipping it offers to restart Spotify.-The pages show only what the stored look has: a page opened after flipping the switch already shows-what the restart will bring. Then a card of parts. Navbar: the tab editor of the stored look, each with+file is gone), and the App icon. Everything on the page applies after a restart. Redesigned UI, the main page's+first row, is the one switch between the two looks (see Layers): it glows (Settings/SGGlowSwitch), its ⓘ says what+it changes, and flipping it offers to restart Spotify. The pages show only what the stored look has: a page opened+after flipping the switch already shows what the restart will bring, and the main page swaps Home & Library and+Albums & artists as it is flipped. Tab bar: the tab editor of the stored look, each withits own list of tabs. Lyrics, on the main page of its own: in the redesign a live preview of the lyrics first, with the presets of their lookunder it and their sliders in a sheet (Text size, Line spacing, Blur, Glow, Wave), applying at once; then Sing, then the ordered list of lyrics sources,lyrics for every track, naming the source in the redesign, the lock screen, and glass lyrics in the native look; in@@ -445,11 +449,11 @@ Off or how far the voice model's download has come, kept up to date while the pathe mic on and off at once, its Status (a tap says more), the Vocals slider (gone, as sung, the vocals alone), Spatial voice(where the iPhone reads headphone motion; a page of its own, reading out On or Off, with a live preview at its top thatfollows the head through AirPods, or sways gently without them and holds still under Reduce Motion, a line under it-saying which, then the switch), the voice model's download, Runs on (GPU, GPU-and Neural Engine, Neural Engine) and Ignore heat warnings, all applying straight away. Player: Gestures, AirPods gestures, Vibrations (which-of the two are on read out on the row), Blocked artists (with the count on the row) and Lock screen widget (Moving artwork, Lyrics or Every song, and the-lyrics' style, Still or Animated, and Spotify's like and dislike buttons' flag; its podcast, audiobook and artwork-flags stay in All flags), which work with either look;+saying which, then the switch; its row is on the main page too, under Sing's), the voice model's download, Runs on (GPU, GPU+and Neural Engine, Neural Engine) and Ignore heat warnings, all applying straight away. Lock screen, on the main+page under either look, opens the lock screen widget's page, titled Lock screen (Moving artwork, Lyrics or Every song, and the lyrics' style,+Still or Animated, and Spotify's like and dislike buttons' flag; its podcast, audiobook and artwork flags stay in+All flags). Player: Gestures and Blocked artists (with the count on the row), which work with either look;in the native look also Now playing bar (its device button and its flags), Queue & devices, andSpotify's own player screen (artwork background, glass header buttons, Disable Canvas and the sheet,header, slider and sticky header flags, the cards under the player and the lyrics preview and player@@ -460,7 +464,7 @@ with a note on what the one picked does, Artwork sources and Download in Low Datand Mini player: Apple Music style (the tab bar's minimize on scroll), Device button (the now playing bar keepsSpotify's device button in that minimized row, off by default) and the device button hidden on the full bar,checked in the simulator against harness/player/ (`settings`). Vibrations, a page of its own under either-look, leads with a preview (Shared/Haptics/SGVibrationsPreview.m): rings of dots that a tap sends a crest across, out+look opened from the main page (the row reads out which of the two are on), leads with a preview (Shared/Haptics/SGVibrationsPreview.m): rings of dots that a tap sends a crest across, outfrom the middle in the accent colour, higher and further the stronger the Strength, while the first of Controls andGenerated that is on plays its own tap through its own path (Controls' add tap, or one kick of Generated's with itsrumble unless it follows Beat), the line under it naming which, or saying why there is none. While the page shows,diff --git a/harness/haptics-page/README.md b/harness/haptics-page/README.mdindex 8814b6b1..6b066add 100644--- a/harness/haptics-page/README.md+++ b/harness/haptics-page/README.md@@ -1,6 +1,6 @@# Vibrations settings harness-Mod Settings > Player > Vibrations (`tweak/Sources/Shared/Haptics/HapticsSettings.m`), its preview+Mod Settings > Vibrations (`tweak/Sources/Shared/Haptics/HapticsSettings.m`), its preview(`SGVibrationsPreview.m`) and its cards: the real Settings/ framework (its slider row and its rows shown while aswitch is on), the real control taps (`SGFeedback.m`, which the simulator plays silently), and `stubs.m` for MusicHaptics' engine, which logs each call with the strength and the Follows choice the hook would read, and keepsdiff --git a/harness/haptics-page/main.m b/harness/haptics-page/main.mindex 7fc81e1d..b0ba5845 100644--- a/harness/haptics-page/main.m+++ b/harness/haptics-page/main.m@@ -1,4 +1,4 @@-// Mod Settings > Player > Vibrations (Shared/Haptics/HapticsSettings.m), its preview (SGVibrationsPreview.m) and+// Mod Settings > Vibrations (Shared/Haptics/HapticsSettings.m), its preview (SGVibrationsPreview.m) and// its cards, with the real Settings/ framework and SGFeedback.m behind them and stubs.m for Music Haptics' engine. The launch line sets the switches up and then plays actions, one every 0.7 s from 1 s// in; screenshot after.//diff --git a/harness/mod-settings/README.md b/harness/mod-settings/README.mdnew file mode 100644index 00000000..3fd8c3fe--- /dev/null+++ b/harness/mod-settings/README.md@@ -0,0 +1,25 @@+# Mod Settings harness++Mod Settings' main page as `App/ModSettings.x` builds it, opened through `SGOpenModSettings` and pushed onto a+navigation stack as on the phone, with the real `App/Pages.m` behind the Redesigned UI switch and the real+`Settings/` framework. `build.sh` runs `ModSettings.x` through `logos.pl -c generator=internal`; its hooks on+Spotify's settings list and side drawer find no class here and do nothing. `stubs.m` stands in for every page a+row opens (an empty page of that name), the values beside the chevrons (Off) and the update and signing checks.++ THEOS=$HOME/theos ./build.sh+ xcrun simctl install <udid> build/ModSettingsHarness.app+ xcrun simctl launch --console-pty <udid> com.vitrine.modsettingsharness redesign warning dump+ xcrun simctl io <udid> screenshot shot.png++Make a simulator of your own (`xcrun simctl create`) and address it by UDID. `main.m` lists the setup words+(`redesign`, `warning`, `keep`) and the actions: `toggle=<section>.<row>` flips a switch the way a tap does,+`cancel` closes the alert it brings up, `bottom` scrolls to the end, and `dump` logs the rows of every section.++2026-10-06, iPhone 17 Pro on iOS 27.0: the warning row leads; then Redesigned UI (glowing, with its ⓘ), Appearance+and Tab bar; Player, Lyrics and Albums & artists (Home & Library in the native look); Sing, Spatial voice, Audio+effects, Vibrations, Live Activity, AirPods gestures and Listening stats; Lock screen and Premium, ads & privacy; Labs and+All flags; Mod with the version. Flipping Redesigned UI on in the native look offers the restart and swaps Home &+Library for Albums & artists in place.++What it does not cover: the pages the rows open, the row the mod adds to Spotify's settings list and side drawer,+and iOS below 26, where the switch warns first.diff --git a/harness/mod-settings/build.sh b/harness/mod-settings/build.shnew file mode 100755index 00000000..4526be50--- /dev/null+++ b/harness/mod-settings/build.sh@@ -0,0 +1,42 @@+#!/bin/sh+# Builds the Mod Settings harness for the simulator: App/ModSettings.x run through Logos, App/Pages.m and the+# Settings/ framework as they are in the tweak, stubs.m for every page a row opens.+set -e+SRC=$(cd "$(dirname "$0")/../../tweak/Sources" && pwd)+OUT=$(dirname "$0")/build+rm -rf "$OUT"; mkdir -p "$OUT/gen" "$OUT/ModSettingsHarness.app"+"$THEOS/bin/logos.pl" -c generator=internal "$SRC/App/ModSettings.x" > "$OUT/gen/ModSettings.m"++SDK=$(xcrun --sdk iphonesimulator --show-sdk-path)+xcrun -sdk iphonesimulator clang -target arm64-apple-ios17.0-simulator -fobjc-arc -g -O0 \+ -I"$SRC" -I"$SRC/App" -isysroot "$SDK" -Wall -Werror -Wno-deprecated-declarations -DSG_VERSION=\"1.0.0-harness\" \+ "$(dirname "$0")/main.m" "$(dirname "$0")/../scene.m" "$(dirname "$0")/stubs.m" \+ "$OUT"/gen/ModSettings.m "$SRC"/App/Pages.m \+ "$SRC"/Settings/SGPage.m "$SRC"/Settings/SGPageStyle.m "$SRC"/Settings/SGModPage.m "$SRC"/Settings/SGGlowSwitch.m \+ "$SRC"/Core/SGLog.m "$SRC"/Core/SGPrefs.m "$SRC"/Core/SGViewTree.m "$SRC"/Core/SGFlagForce.m "$SRC"/Core/SGUIMode.m \+ -framework UIKit -framework QuartzCore -framework CoreGraphics -framework Foundation \+ -o "$OUT/ModSettingsHarness.app/ModSettingsHarness"++cat > "$OUT/ModSettingsHarness.app/Info.plist" <<'PLIST'+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0"><dict>+<key>CFBundleExecutable</key><string>ModSettingsHarness</string>+<key>CFBundleIdentifier</key><string>com.vitrine.modsettingsharness</string>+<key>CFBundleName</key><string>ModSettingsHarness</string>+<key>CFBundleVersion</key><string>1</string>+<key>CFBundleShortVersionString</key><string>1.0</string>+<key>UIUserInterfaceStyle</key><string>Dark</string>+<key>UILaunchScreen</key><dict/>+<key>UIApplicationSceneManifest</key><dict>+ <key>UIApplicationSupportsMultipleScenes</key><false/>+ <key>UISceneConfigurations</key><dict>+ <key>UIWindowSceneSessionRoleApplication</key><array><dict>+ <key>UISceneConfigurationName</key><string>Default</string>+ <key>UISceneDelegateClassName</key><string>SGRHarnessScene</string>+ </dict></array>+ </dict>+</dict>+</dict></plist>+PLIST+echo "built $OUT/ModSettingsHarness.app"diff --git a/harness/mod-settings/main.m b/harness/mod-settings/main.mnew file mode 100644index 00000000..dd15e38b--- /dev/null+++ b/harness/mod-settings/main.m@@ -0,0 +1,120 @@+// Mod Settings' main page as App/ModSettings.x builds it, opened the way holding Home opens it+// (SGOpenModSettings), with the real App/Pages.m behind its Redesigned UI switch and the real Settings/+// framework; stubs.m stands in for every page a row opens. The launch line sets the look up and then plays+// actions, one every 0.9 s from 1 s in; screenshot after.+//+// THEOS=$HOME/theos ./build.sh && xcrun simctl install <udid> build/ModSettingsHarness.app+// xcrun simctl launch <udid> com.vitrine.modsettingsharness [setup...] [action...]+//+// Setup: redesign (Redesigned UI stored on), warning (a red environment row at the top), keep (the stored+// look stays; otherwise it is cleared first).+// Actions: toggle=<section>.<row> (that row's switch flipped the way a tap does), cancel (the alert that+// switch brings up closed with Later), bottom (scrolled to the end), dump (the rows of each section and+// what each reads beside its chevron, to the log).+#import <UIKit/UIKit.h>+#import "Core/SGCore.h"+#import "Settings/SGPage.h"+#import "Settings/SGModPage.h"++// Spotify's page protocol, so SGRegisterPages finds one and the page is pushed as on the phone.+@protocol SPTPageController <NSObject>+@end++BOOL SGHarnessWarning;++static void findViews(UIView *root, Class kind, NSMutableArray *found) {+ if ([root isKindOfClass:kind]) [found addObject:root];+ for (UIView *sub in root.subviews) findViews(sub, kind, found);+}++@interface AppDelegate : UIResponder <UIApplicationDelegate>+@property (nonatomic, strong) UIWindow *window;+@property (nonatomic, strong) UINavigationController *nav;+@end++@implementation AppDelegate++- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)options {+ NSLog(@"[harness] page protocol %@", NSStringFromProtocol(@protocol(SPTPageController)));+ NSArray<NSString *> *args = NSProcessInfo.processInfo.arguments;+ if (![args containsObject:@"keep"]) {+ SGSetEnabled(SGKeyRedesign, NO);+ SGSetEnabled(SGKeyRedesignUntested, NO);+ }+ NSMutableArray<NSString *> *actions = [NSMutableArray array];+ for (NSString *arg in [args subarrayWithRange:NSMakeRange(1, args.count - 1)]) {+ if ([arg isEqualToString:@"redesign"]) SGSetEnabled(SGKeyRedesign, YES);+ else if ([arg isEqualToString:@"warning"]) SGHarnessWarning = YES;+ else if (![arg isEqualToString:@"keep"]) [actions addObject:arg];+ }++ self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];+ self.window.overrideUserInterfaceStyle = UIUserInterfaceStyleDark;+ UIViewController *home = [UIViewController new];+ home.view.backgroundColor = UIColor.blackColor;+ self.nav = [[UINavigationController alloc] initWithRootViewController:home];+ self.window.rootViewController = self.nav;+ [self.window makeKeyAndVisible];+ dispatch_async(dispatch_get_main_queue(), ^{ SGOpenModSettings(home.view); });++ [actions enumerateObjectsUsingBlock:^(NSString *action, NSUInteger i, BOOL *stop) {+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)((1 + 0.9 * i) * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{+ NSLog(@"[harness] %@", action);+ [self run:action];+ });+ }];+ return YES;+}++- (UITableView *)table {+ return ((UITableViewController *)self.nav.topViewController).tableView;+}++- (NSIndexPath *)pathFrom:(NSString *)text {+ NSArray<NSString *> *at = [text componentsSeparatedByString:@"."];+ return [NSIndexPath indexPathForRow:at[1].integerValue inSection:at[0].integerValue];+}++- (void)run:(NSString *)action {+ NSArray<NSString *> *parts = [action componentsSeparatedByString:@"="];+ NSString *verb = parts.firstObject, *value = parts.count > 1 ? parts[1] : @"";+ UITableView *table = self.table;+ if ([verb isEqualToString:@"toggle"]) {+ NSMutableArray<UIControl *> *controls = [NSMutableArray array];+ findViews([table cellForRowAtIndexPath:[self pathFrom:value]].accessoryView, UIControl.class, controls);+ UIControl *toggle = nil;+ for (UIControl *control in controls) if ([control respondsToSelector:@selector(setOn:animated:)]) toggle = control;+ if (!toggle) { NSLog(@"[harness] no switch at %@", value); return; }+ [(id)toggle setOn:![(id)toggle isOn] animated:YES];+ [toggle sendActionsForControlEvents:UIControlEventValueChanged];+ } else if ([verb isEqualToString:@"cancel"]) {+ UIAlertController *alert = (UIAlertController *)self.nav.presentedViewController;+ if (![alert isKindOfClass:UIAlertController.class]) return;+ NSLog(@"[harness] alert \"%@\": %@", alert.title, alert.message);+ [alert dismissViewControllerAnimated:YES completion:nil];+ } else if ([verb isEqualToString:@"bottom"]) {+ [table setContentOffset:CGPointMake(0, MAX(-table.adjustedContentInset.top, table.contentSize.height - table.bounds.size.height + table.adjustedContentInset.bottom)) animated:NO];+ } else if ([verb isEqualToString:@"dump"]) {+ NSLog(@"[harness] Redesigned UI stored %d", SGRedesignedUIStored());+ for (NSInteger section = 0; section < table.numberOfSections; section++) {+ NSMutableArray<NSString *> *rows = [NSMutableArray array];+ for (NSInteger row = 0; row < [table numberOfRowsInSection:section]; row++) {+ NSIndexPath *path = [NSIndexPath indexPathForRow:row inSection:section];+ UITableViewCell *cell = [table.dataSource tableView:table cellForRowAtIndexPath:path];+ NSMutableArray<UILabel *> *labels = [NSMutableArray array];+ findViews(cell.accessoryView, UILabel.class, labels);+ NSString *text = [(UIListContentConfiguration *)cell.contentConfiguration text];+ [rows addObject:labels.count ? [NSString stringWithFormat:@"%@ [%@]", text, labels.firstObject.text] : text];+ }+ NSLog(@"[harness] section %ld: %@", (long)section, [rows componentsJoinedByString:@", "]);+ }+ }+}++@end++int main(int argc, char *argv[]) {+ @autoreleasepool {+ return UIApplicationMain(argc, argv, nil, NSStringFromClass(AppDelegate.class));+ }+}diff --git a/harness/mod-settings/stubs.m b/harness/mod-settings/stubs.mnew file mode 100644index 00000000..51c86831--- /dev/null+++ b/harness/mod-settings/stubs.m@@ -0,0 +1,49 @@+// What Mod Settings' main page links to and reads, stood in for: every page is an empty page of its own+// name, the values beside the chevrons are what a fresh install reads, and the update and signing checks do+// nothing.+#import <UIKit/UIKit.h>+#import "Core/SGCore.h"+#import "Settings/SGModPage.h"++extern BOOL SGHarnessWarning;++static UIViewController *blank(NSString *title) {+ return [[SGModPage alloc] initWithTitle:title intro:nil sections:@[] footer:nil];+}++#define PAGE(name) UIViewController *name(void) { return blank(@#name); }+PAGE(SGAboutPage) PAGE(SGAdsSettingsPage) PAGE(SGAllFlagsPage) PAGE(SGArtistBlockSettingsPage) PAGE(SGDSPSettingsPage)+PAGE(SGGesturesSettingsPage) PAGE(SGHeadGesturesSettingsPage) PAGE(SGHomeSettingsPage) PAGE(SGLabsPage)+PAGE(SGListeningStatsPage) PAGE(SGLiveActivitySettingsPage) PAGE(SGLockScreenWidgetPage) PAGE(SGNavbarSettingsPage)+PAGE(SGNowPlayingBarSettingsPage) PAGE(SGQueueSettingsPage) PAGE(SGRAlbumSettingsPage) PAGE(SGRNavbarSettingsPage)+PAGE(SGSingSettingsPage) PAGE(SGSpatialVoiceSettingsPage) PAGE(SGVibrationsSettingsPage)+UIViewController *SGRPlayerSettingsPage(NSArray *more) { return blank(@"SGRPlayerSettingsPage"); }+UIViewController *SGRLyricsSettingsPage(NSString *title, NSString *intro, NSArray<SGModSection *> *sections) { return blank(title); }++#define ROW(name) SGModRow *name(void) { return SGPageRow(@#name, ^UIViewController *{ return nil; }); }+ROW(SGAppIconRow) ROW(SGGeminiKeyRow) ROW(SGGlassLyricsRow) ROW(SGLockScreenLyricsRow) ROW(SGLyricsMeaningsRow)+ROW(SGLyricsTranslationLanguageRow) ROW(SGLyricsWordTimingRow) ROW(SGRLyricsTextSizesRow)+NSArray<SGModRow *> *SGAppFontRows(void) { return @[]; }+NSArray<SGModRow *> *SGNativeAppearanceRows(void) { return @[]; }+NSArray<SGModRow *> *SGRAppearanceRows(void) { return @[]; }+SGModSection *SGLyricsSourcesSection(BOOL namingSource) { return SGSection(nil, @[]); }+NSArray<SGModSection *> *SGNativePlayerScreenSections(void) { return @[]; }+NSArray<NSDictionary *> *SGBlockedArtists(void) { return @[]; }++NSString *SGDSPSummary(void) { return @"Off"; }+NSString *SGSingSummary(void) { return @"Off"; }+NSString *SGLiveActivitySummary(void) { return @"Off"; }+NSString *SGVibrationsSummary(void) { return @"Controls"; }+// An iPhone that reads headphone motion, with Spatial voice off.+BOOL SGSingSpatialAvailable(void) { return YES; }+BOOL SGSingSpatial(void) { return NO; }++void SGCheckForUpdate(BOOL force) {}+void SGWatchForUpdates(void) {}+void SGCheckSigningOnce(void) {}+SGModRow *SGSigningWarningRow(void) { return nil; }+// Environment.m's red row, as a phone with EeveeSpotify injected too shows it.+NSArray<SGModRow *> *SGEnvironmentWarningRows(void) {+ if (!SGHarnessWarning) return @[];+ return @[SGWarningRow(@"EeveeSpotify is injected too", @"Tap to see what that changes", ^{})];+}diff --git a/harness/tabbar/build.sh b/harness/tabbar/build.shindex 7f70a610..a39d05a1 100755--- a/harness/tabbar/build.sh+++ b/harness/tabbar/build.sh@@ -5,20 +5,21 @@ SRC=${SRC:-$(cd "$(dirname "$0")/../../tweak/Sources" && pwd)}OUT=$(dirname "$0")/buildrm -rf "$OUT"; mkdir -p "$OUT/gen" "$OUT/TabBarHarness.app"-for f in Redesigned/Navbar/TabBar.x Redesigned/Navbar/TabBarMinimize.x Redesigned/NowPlayingBar/NowPlayingBar.x; do+for f in Shared/Navigation/Links.x Redesigned/Navbar/TabBar.x Redesigned/Navbar/TabBarMinimize.x Redesigned/NowPlayingBar/NowPlayingBar.x; doname=$(basename "$f" .x)"$THEOS/bin/logos.pl" -c generator=internal "$SRC/$f" > "$OUT/gen/$name.m"doneSDK=$(xcrun --sdk iphonesimulator --show-sdk-path)xcrun -sdk iphonesimulator clang -target arm64-apple-ios17.0-simulator -fobjc-arc -g -O0 \- -I"$SRC" -I"$SRC/Redesigned/Navbar" -I"$SRC/Redesigned/NowPlayingBar" -I"$OUT/gen" -isysroot "$SDK" \+ -I"$SRC" -I"$SRC/Redesigned/Navbar" -I"$SRC/Redesigned/NowPlayingBar" -I"$SRC/Shared/Navigation" -I"$OUT/gen" -isysroot "$SDK" \-Wno-deprecated-declarations \"$(dirname "$0")/main.m" "$(dirname "$0")/stubs.m" \"$OUT"/gen/*.m \"$SRC"/Core/SGLog.m "$SRC"/Core/SGPrefs.m "$SRC"/Core/SGViewTree.m "$SRC"/Core/SGGlass.m \"$SRC"/Core/SGBackdrop.m "$SRC"/Core/SGFlagForce.m "$SRC"/Core/SGUIMode.m \"$SRC"/Redesigned/Kit/SGRTokens.m "$SRC"/Redesigned/Kit/SGRGlass.m \+ "$SRC"/Redesigned/Navbar/NavbarLayout.m "$SRC"/Shared/Navigation/TabIcons.m \-framework UIKit -framework QuartzCore -framework CoreGraphics -framework Foundation \-o "$OUT/TabBarHarness.app/TabBarHarness"diff --git a/tweak/Sources/App/ModSettings.x b/tweak/Sources/App/ModSettings.xindex b7250471..180307ad 100644--- a/tweak/Sources/App/ModSettings.x+++ b/tweak/Sources/App/ModSettings.x@@ -1,11 +1,13 @@-// Settings: a Mod Settings row at the end of Spotify's settings list opens the mod's own page: the-// Appearance page with Redesigned UI, then a page per part of Spotify, each holding what that part-// offers in the stored look (App/Pages.m: Navbar, Player, and Home & Library for the native look), Audio-// effects (Shared/AudioEffects, in either look and applying straight away), Premium, ads & privacy-// and Labs, All flags, a searchable list of every flag with an override per flag, and Mod, the-// build, its updates and links. The same row leads the side drawer's list (trees/test6.txt), above-// Your plan, so the page is a tap from Home, and holding Home on the tab bar opens it too. The tweaks read the switches when they run, so a change-// shows after Spotify restarts; the tab editor on the Navbar page applies as soon as the bar lays+// Settings: a Mod Settings row at the end of Spotify's settings list opens the mod's own page, its rows+// grouped by what they are as the system Settings app groups its own, in cards with no headings: what the+// app looks like (Redesigned UI's switch, Appearance, Tab bar), the screens a page of its own changes+// (Player, Lyrics, and Albums & artists or, in the native look, Home & Library), the features that work+// under either look (Sing, Spatial voice, Audio effects, Vibrations, Live Activity, AirPods gestures, Listening stats),+// the system's side (Lock screen; Premium, ads & privacy), the advanced pages (Labs, All flags, a+// searchable list of every flag with an override per flag) and Mod, the build, its updates and links. The+// same row leads the side drawer's list (trees/test6.txt), above Your plan, so the page is a tap from+// Home, and holding Home on the tab bar opens it too. The tweaks read the switches when they run, so a+// change shows after Spotify restarts; the tab editor on the Tab bar page applies as soon as the bar lays// out again.//// Tree (trees/settings.txt): SettingsListViewController.view > SettingsListCollectionView of@@ -22,7 +24,10 @@#import "Shared/AudioEffects/AudioEffectsPage.h"#import "Shared/LiveActivity/LiveActivity.h"#import "Shared/ListeningStats/ListeningStats.h"+#import "Shared/HeadGestures/HeadGestures.h"+#import "Shared/Player/PlayerSettings.h"#import "Shared/Sing/Sing.h"+#import "Shared/Haptics/Haptics.h"#import "App/About/About.h"#import "App/Onboarding/Onboarding.h"#import "Redesigned/Album/Album.h"@@ -46,44 +51,67 @@ static UIViewController *modSettingsPage(void) {NSMutableArray<SGModRow *> *warnings = [NSMutableArray arrayWithArray:SGEnvironmentWarningRows()];if (signing) [warnings insertObject:signing atIndex:0];if (warnings.count) [sections addObject:SGSection(nil, warnings)];- // Appearance opens a page of its own, on a card of its own, so the parts below stay one tap from the top.- [sections addObject:SGSection(nil, @[pageRow(@"Appearance", @"paintpalette", UIColor.systemBlueColor, ^UIViewController *{ return SGAppearancePage(); })])];- SGModRow *mod = pageRow(@"Mod", @"info.circle", UIColor.systemGrayColor, ^UIViewController *{ return SGAboutPage(); });- mod.value = ^NSString *{ return @(SG_VERSION); };- // The audio effects work on the sound, so both looks have them, with what they are doing beside the chevron.- SGModRow *audioEffects = pageRow(@"Audio effects", @"slider.vertical.3", UIColor.systemOrangeColor, ^UIViewController *{ return SGDSPSettingsPage(); });- audioEffects.value = ^NSString *{ return SGDSPSummary(); };- // Sing works on the sound, so both looks have it, saying beside the chevron whether it is on or how far its- // voice model has come.- SGModRow *sing = pageRow(@"Sing", @"music.mic", UIColor.systemRedColor, ^UIViewController *{ return SGSingSettingsPage(); });- sing.value = ^NSString *{ return SGSingSummary(); };- // Home & Library holds only the native look's switches, so the redesign has no such page; the- // Live Activity works under both, and only where ActivityKit's card does.- NSMutableArray<SGModRow *> *parts = [NSMutableArray arrayWithArray:@[- pageRow(@"Navbar", @"dock.rectangle", UIColor.systemIndigoColor, ^UIViewController *{ return SGNavbarPage(); }),++ // The rows of one look are asked again as Redesigned UI is flipped, so the page shows what the restart brings.+ BOOL (^redesigned)(void) = ^BOOL { return SGRedesignedUIStored(); };+ BOOL (^native)(void) = ^BOOL { return !SGRedesignedUIStored(); };++ [sections addObject:SGSection(nil, @[+ SGRedesignedUIRow(),+ pageRow(@"Appearance", @"paintpalette", UIColor.systemBlueColor, ^UIViewController *{ return SGAppearancePage(); }),+ pageRow(@"Tab bar", @"dock.rectangle", UIColor.systemIndigoColor, ^UIViewController *{ return SGNavbarPage(); }),+ ])];++ // Home & Library holds only the native look's switches; the redesign has its album and artist pages instead.+ SGModRow *albums = pageRow(@"Albums & artists", @"square.stack", UIColor.systemCyanColor, ^UIViewController *{ return SGRAlbumSettingsPage(); });+ albums.visible = redesigned;+ SGModRow *home = pageRow(@"Home & Library", @"house", UIColor.systemCyanColor, ^UIViewController *{ return SGHomeSettingsPage(); });+ home.visible = native;+ [sections addObject:SGSection(nil, @[pageRow(@"Player", @"play.circle", UIColor.systemPinkColor, ^UIViewController *{ return SGPlayerSettingsPage(); }),pageRow(@"Lyrics", @"quote.bubble", UIColor.systemPurpleColor, ^UIViewController *{ return SGLyricsSettingsPage(); }),- sing,- audioEffects,- ]];+ albums,+ home,+ ])];++ // Sing and the audio effects work on the sound, so both looks have them, each saying beside the chevron+ // whether it is on, how far Sing's voice model has come or how many effects are on.+ SGModRow *sing = pageRow(@"Sing", @"music.mic", UIColor.systemRedColor, ^UIViewController *{ return SGSingSettingsPage(); });+ sing.value = ^NSString *{ return SGSingSummary(); };+ SGModRow *audioEffects = pageRow(@"Audio effects", @"slider.vertical.3", UIColor.systemOrangeColor, ^UIViewController *{ return SGDSPSettingsPage(); });+ audioEffects.value = ^NSString *{ return SGDSPSummary(); };+ // Spatial voice is Sing's too, and shows where the iPhone reads headphone motion, as on Sing's page.+ SGModRow *spatial = pageRow(@"Spatial voice", @"person.wave.2", UIColor.systemIndigoColor, ^UIViewController *{ return SGSpatialVoiceSettingsPage(); });+ spatial.value = ^NSString *{ return SGSingSpatial() ? @"On" : @"Off"; };+ spatial.visible = ^BOOL { return SGSingSpatialAvailable(); };+ // Vibrations hook Spotify's own controls and its audio, so they answer under either look; the row says which are on.+ SGModRow *vibrations = pageRow(@"Vibrations", @"iphone.radiowaves.left.and.right", UIColor.systemPinkColor, ^UIViewController *{ return SGVibrationsSettingsPage(); });+ vibrations.value = ^NSString *{ return SGVibrationsSummary(); };+ NSMutableArray<SGModRow *> *features = [NSMutableArray arrayWithObjects:sing, spatial, audioEffects, vibrations, nil];+ // The Live Activity works under both looks, where ActivityKit's card does.if (@available(iOS 17.0, *)) {SGModRow *liveActivity = pageRow(@"Live Activity", @"platter.filled.top.iphone", UIColor.systemTealColor, ^UIViewController *{ return SGLiveActivitySettingsPage(); });liveActivity.value = ^NSString *{ return SGLiveActivitySummary(); };- [parts addObject:liveActivity];+ [features addObject:liveActivity];}- [parts addObject:pageRow(@"Listening stats", @"chart.bar", UIColor.systemGreenColor, ^UIViewController *{ return SGListeningStatsPage(); })];- if (!SGRedesignedUIStored()) [parts addObject:pageRow(@"Home & Library", @"house", UIColor.systemCyanColor, ^UIViewController *{ return SGHomeSettingsPage(); })];- else [parts addObject:pageRow(@"Albums & artists", @"square.stack", UIColor.systemCyanColor, ^UIViewController *{ return SGRAlbumSettingsPage(); })];+ [features addObjectsFromArray:@[+ pageRow(@"AirPods gestures", @"airpods.pro", UIColor.systemGrayColor, ^UIViewController *{ return SGHeadGesturesSettingsPage(); }),+ pageRow(@"Listening stats", @"chart.bar", UIColor.systemGreenColor, ^UIViewController *{ return SGListeningStatsPage(); }),+ ]];+ [sections addObject:SGSection(nil, features)];++ SGModRow *mod = pageRow(@"Mod", @"info.circle", UIColor.systemGrayColor, ^UIViewController *{ return SGAboutPage(); });+ mod.value = ^NSString *{ return @(SG_VERSION); };[sections addObjectsFromArray:@[- SGSection(nil, parts),SGSection(nil, @[+ pageRow(@"Lock screen", @"lock", UIColor.systemGrayColor, ^UIViewController *{ return SGLockScreenWidgetPage(); }),pageRow(@"Premium, ads & privacy", @"crown", UIColor.systemBlueColor, ^UIViewController *{ return SGAdsSettingsPage(); }),- pageRow(@"Labs", @"testtube.2", UIColor.systemMintColor, ^UIViewController *{ return SGLabsPage(); }),]),SGSection(nil, @[+ pageRow(@"Labs", @"testtube.2", UIColor.systemMintColor, ^UIViewController *{ return SGLabsPage(); }),pageRow(@"All flags", @"flag", UIColor.systemGrayColor, ^UIViewController *{ return SGAllFlagsPage(); }),- mod,]),+ SGSection(nil, @[mod]),]];return [[SGModPage alloc] initWithTitle:@"Vitrine" intro:nil sections:sections footer:nil];}diff --git a/tweak/Sources/App/Onboarding/Environment.m b/tweak/Sources/App/Onboarding/Environment.mindex 3cde83dc..615a65cc 100644--- a/tweak/Sources/App/Onboarding/Environment.m+++ b/tweak/Sources/App/Onboarding/Environment.m@@ -39,7 +39,7 @@ static SGProblem version(void) {static SGProblem fellBack(void) {return @[@"The redesign did not start",- [NSString stringWithFormat:@"Spotify did not get going with the redesign on iOS %@, so it is back in Legacy and Redesigned UI is off. Appearance can turn it on again.",+ [NSString stringWithFormat:@"Spotify did not get going with the redesign on iOS %@, so it is back in Legacy and Redesigned UI is off. Mod Settings can turn it on again.",UIDevice.currentDevice.systemVersion]];}diff --git a/tweak/Sources/App/Pages.h b/tweak/Sources/App/Pages.hindex 4624c8c4..a45d33f6 100644--- a/tweak/Sources/App/Pages.h+++ b/tweak/Sources/App/Pages.h@@ -3,13 +3,18 @@// Redesigned UI switch, so a page opened after flipping it shows what the restart will bring.#import <UIKit/UIKit.h>+@class SGModRow;+// Redesigned UI, the one switch between the two looks, and what its ⓘ reads out.void SGSetRedesignedUI(BOOL on);extern NSString *const SGRedesignedUIInfo;// Below iOS 26: what turning the redesign on risks there, for the switch's alert and the tour.NSString *SGRedesignUntestedWarning(void);-UIViewController *SGAppearancePage(void); // Redesigned UI, the accent, the font and the app icon+// Redesigned UI as a glowing switch with its ⓘ, offering to restart Spotify when flipped; below iOS 26 it+// warns first. It leads Mod Settings' main page.+SGModRow *SGRedesignedUIRow(void);+UIViewController *SGAppearancePage(void); // the stored look's accent and AMOLED, the font and the app iconUIViewController *SGPlayerSettingsPage(void);UIViewController *SGLyricsSettingsPage(void); // with Sing (Shared/Sing) on itUIViewController *SGNavbarPage(void); // the tab editor of whichever look is storeddiff --git a/tweak/Sources/App/Pages.m b/tweak/Sources/App/Pages.mindex 6eddcb0e..d019f746 100644--- a/tweak/Sources/App/Pages.m+++ b/tweak/Sources/App/Pages.m@@ -8,7 +8,6 @@#import "Pages.h"#import "Shared/ArtistBlock/ArtistBlock.h"#import "Shared/Gestures/Gestures.h"-#import "Shared/HeadGestures/HeadGestures.h"#import "Shared/Lyrics/Lyrics.h"#import "Shared/LyricsMeanings/Meanings.h"#import "Shared/Player/PlayerSettings.h"@@ -17,7 +16,6 @@#import "Native/Navbar/Navbar.h"#import "Native/NowPlayingBar/NowPlayingBar.h"#import "Native/Player/NowPlaying.h"-#import "Shared/Haptics/Haptics.h"#import "Shared/LiveActivity/LiveActivity.h"#import "Redesigned/Lyrics/LyricsText.h"#import "Redesigned/Lyrics/LyricsLook.h"@@ -76,25 +74,25 @@ static SGModRow *untestedRow(void) {return SGWithTile(row, @"sparkles", UIColor.systemPurpleColor);}-// Redesigned UI, then the stored look's own rows, then the-// font and the app icon, which work under either look on any iOS.+SGModRow *SGRedesignedUIRow(void) {+ if (!SGRedesignAvailable()) return untestedRow();+ SGModRow *redesign = SGOptionRow(@"Redesigned UI", nil, SGKeyRedesign);+ redesign.glows = YES;+ redesign.info = SGRedesignedUIInfo;+ redesign.changed = ^(BOOL on) {+ SGSetRedesignedUI(on);+ offerRestart(on);+ };+ return SGWithTile(redesign, @"sparkles", UIColor.systemPurpleColor);+}++// The stored look's own rows, then the font and the app icon, which work under either look on any iOS.+// Redesigned UI itself leads Mod Settings' main page.UIViewController *SGAppearancePage(void) {- SGModRow *look = untestedRow();- if (SGRedesignAvailable()) {- SGModRow *redesign = SGOptionRow(@"Redesigned UI", nil, SGKeyRedesign);- redesign.glows = YES;- redesign.info = SGRedesignedUIInfo;- redesign.changed = ^(BOOL on) {- SGSetRedesignedUI(on);- offerRestart(on);- };- look = SGWithTile(redesign, @"sparkles", UIColor.systemPurpleColor);- }NSMutableArray<SGModRow *> *everywhere = [NSMutableArray arrayWithArray:SGAppFontRows()];SGModRow *icon = SGAppIconRow();if (icon) [everywhere addObject:icon];return [[SGModPage alloc] initWithTitle:@"Appearance" intro:SGRestartNote sections:@[- SGSection(nil, @[look]),SGSection(nil, SGRedesignedUIStored() ? SGRAppearanceRows() : SGNativeAppearanceRows()),SGSection(nil, everywhere),] footer:nil];@@ -135,31 +133,27 @@ UIViewController *SGPlayerSettingsPage(void) {blocked.value = ^NSString *{return SGFlag(SGKeyArtistBlock, NO) ? @(SGBlockedArtists().count).stringValue : @"Off";};- // Vibrations hook Spotify's own controls and its audio, so they answer under either look.- SGModRow *vibrations = SGPageRow(@"Vibrations", ^UIViewController *{ return SGVibrationsSettingsPage(); });- vibrations.value = ^NSString *{ return SGVibrationsSummary(); };BOOL native = !SGRedesignedUIStored();+ // AirPods gestures, the lock screen widget and Vibrations have rows of their own on Mod Settings' main page.NSMutableArray<SGModSection *> *sections = [NSMutableArray arrayWithObject:SGSection(nil, @[SGWithTile(SGPageRow(@"Gestures", ^UIViewController *{ return SGGesturesSettingsPage(); }), @"hand.tap", UIColor.systemBlueColor),- SGWithTile(SGPageRow(@"AirPods gestures", ^UIViewController *{ return SGHeadGesturesSettingsPage(); }), @"airpods.pro", UIColor.systemGrayColor),- SGWithTile(vibrations, @"iphone.radiowaves.left.and.right", UIColor.systemOrangeColor),SGWithTile(blocked, @"person.crop.circle.badge.xmark", UIColor.systemRedColor),])];- NSMutableArray<SGModRow *> *pages = [NSMutableArray array];if (native) {- [pages addObject:SGWithTile(SGPageRow(@"Now playing bar", ^UIViewController *{ return SGNowPlayingBarSettingsPage(); }), @"rectangle.bottomthird.inset.filled", UIColor.systemPinkColor)];- [pages addObject:SGWithTile(SGPageRow(@"Queue & devices", ^UIViewController *{ return SGQueueSettingsPage(); }), @"text.line.first.and.arrowtriangle.forward", UIColor.systemIndigoColor)];+ [sections addObject:SGSection(nil, @[+ SGWithTile(SGPageRow(@"Now playing bar", ^UIViewController *{ return SGNowPlayingBarSettingsPage(); }), @"rectangle.bottomthird.inset.filled", UIColor.systemPinkColor),+ SGWithTile(SGPageRow(@"Queue & devices", ^UIViewController *{ return SGQueueSettingsPage(); }), @"text.line.first.and.arrowtriangle.forward", UIColor.systemIndigoColor),+ ])];+ [sections addObjectsFromArray:SGNativePlayerScreenSections()];}- [pages addObject:SGWithTile(SGPageRow(@"Lock screen widget", ^UIViewController *{ return SGLockScreenWidgetPage(); }), @"lock", UIColor.systemGrayColor)];- [sections addObject:SGSection(nil, pages)];- if (native) [sections addObjectsFromArray:SGNativePlayerScreenSections()];// Switch to video is the same chip of Spotify's player under either look.[sections addObject:SGSection(native ? nil : @"Hide on the player", @[SGHideRow(@"Switch to video", @"The chip over the title of a song with a music video", SGKeyHideVideoSwitch),])];- // The redesign's page leads with a showcase of its player, the background and device button rows under it.+ // The redesign's page leads with a card of its player and the background's control, the background's+ // rows and the Mini player section under it.if (!native) return SGRPlayerSettingsPage(sections);return [[SGModPage alloc] initWithTitle:@"Player" intro:SGRestartNote sections:sections footer:nil];}diff --git a/tweak/Sources/Core/SGUIMode.h b/tweak/Sources/Core/SGUIMode.hindex 7c40baaa..f8935584 100644--- a/tweak/Sources/Core/SGUIMode.h+++ b/tweak/Sources/Core/SGUIMode.h@@ -1,5 +1,5 @@// Which of the two looks runs: Spotify's own screens with the mod's tweaks on them (Native/), or the-// redesign (Redesigned/), picked by Redesigned UI in Appearance. What does not draw on Spotify's+// redesign (Redesigned/), picked by Redesigned UI at the top of Mod Settings. What does not draw on Spotify's// screens (Shared/) runs under both. The switch is read once, the first time anything asks, so the// hooks, the flags and the pages see one answer for the whole launch and a change waits for the restart.//diff --git a/tweak/Sources/Settings/SGGlowSwitch.h b/tweak/Sources/Settings/SGGlowSwitch.hindex 6c3754a5..a5404190 100644--- a/tweak/Sources/Settings/SGGlowSwitch.h+++ b/tweak/Sources/Settings/SGGlowSwitch.h@@ -1,6 +1,6 @@// A switch that glows: a capsule whose rim is a slowly circling rainbow with a soft glow of the same// colours, full when on and softer when off, to invite the tap. A white knob slides on a spring.-// For the one switch of a page that changes the whole app (Redesigned UI in Appearance); every other+// For the one switch of a page that changes the whole app (Redesigned UI, the first row of Mod Settings); every other// switch stays a UISwitch.//// It answers isOn and sends UIControlEventValueChanged the way a UISwitch does, so a page treats bothdiff --git a/tweak/Sources/Shared/Haptics/Haptics.h b/tweak/Sources/Shared/Haptics/Haptics.hindex 62b0cf38..565bb22b 100644--- a/tweak/Sources/Shared/Haptics/Haptics.h+++ b/tweak/Sources/Shared/Haptics/Haptics.h@@ -93,8 +93,8 @@ void SGSetMusicHapticsStatus(NSString *status);double SGHapticsStrength(NSString *key);SGMusicFollows SGMusicHapticsFollows(void);-// The Vibrations page, linked from the Player page: the preview, then a card for Controls and one for Music+// The Vibrations page, linked from Mod Settings' main page: the preview, then a card for Controls and one for Music// Haptics, each opening out into its settings while it is on.UIViewController *SGVibrationsSettingsPage(void);-// What the Player page's Vibrations row reads out: which of the two are on.+// What the main page's Vibrations row reads out: which of the two are on.NSString *SGVibrationsSummary(void);diff --git a/tweak/Sources/Shared/Player/PlayerSettings.m b/tweak/Sources/Shared/Player/PlayerSettings.mindex 0adf4ea3..0a5faccb 100644--- a/tweak/Sources/Shared/Player/PlayerSettings.m+++ b/tweak/Sources/Shared/Player/PlayerSettings.m@@ -9,7 +9,7 @@UIViewController *SGLockScreenWidgetPage(void) {NSArray *motion = SGLockScreenMotionRows();NSArray<SGModSection *> *mod = motion.count ? @[SGSection(@"Lock screen artwork", motion)] : @[];- return [[SGModPage alloc] initWithTitle:@"Lock screen widget" intro:SGRestartNote sections:[mod arrayByAddingObjectsFromArray:@[+ return [[SGModPage alloc] initWithTitle:@"Lock screen" intro:SGRestartNote sections:[mod arrayByAddingObjectsFromArray:@[SGSection(@"Controls", @[SGFlagRow(@"Like and dislike buttons", @"ios-feature-lockscreen.like_dislike_enabled"),]),diff --git a/tweak/Sources/Shared/Sing/Sing.h b/tweak/Sources/Shared/Sing/Sing.hindex fefabc56..c26d147e 100644--- a/tweak/Sources/Shared/Sing/Sing.h+++ b/tweak/Sources/Shared/Sing/Sing.h@@ -77,6 +77,8 @@ void SGSetSingSpatial(BOOL on);// Reads the switch and the motion's permission again.- (void)refresh;@end+// Spatial voice's page, its preview and its switch: under Sing's page, and on Mod Settings' main page under Sing.+UIViewController *SGSpatialVoiceSettingsPage(void);// Loads the model again on the compute units now stored, if it is loaded.void SGSingComputeUnitsChanged(void);// What the main page's Sing row reads out: On, Off, or how far the model has come.diff --git a/tweak/Sources/Shared/Sing/SingSettings.m b/tweak/Sources/Shared/Sing/SingSettings.mindex cee68ba1..6208a0d6 100644--- a/tweak/Sources/Shared/Sing/SingSettings.m+++ b/tweak/Sources/Shared/Sing/SingSettings.m@@ -92,7 +92,7 @@ static void modelTapped(UITableViewController *page) {@end-static UIViewController *spatialPage(void) {+UIViewController *SGSpatialVoiceSettingsPage(void) {SGModRow *spatial = SGOptionRow(@"Spatial voice", nil, SGKeySingSpatial);__block __weak SGSpatialVoicePage *page;spatial.changed = ^(BOOL on) {@@ -119,7 +119,7 @@ UIViewController *SGSingSettingsPage(void) {});SGModRow *level = SGSliderRow(@"Vocals", @"From gone, through the song as sung, to the vocals alone", 0, 2, 0.05,^double { return SGSingLevel(); }, ^(double value) { SGSetSingLevel((float)value); }, ^NSString *(double value) { return SGSingLevelText(value); });- SGModRow *spatial = SGPageRow(@"Spatial voice", ^UIViewController *{ return spatialPage(); });+ SGModRow *spatial = SGPageRow(@"Spatial voice", ^UIViewController *{ return SGSpatialVoiceSettingsPage(); });spatial.subtitle = @"With AirPods, the voice stays in front of you as you turn your head";spatial.value = ^NSString *{ return SGSingSpatial() ? @"On" : @"Off"; };// Facts about the iPhone, which do not change while the page shows.