Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
feat: below iOS 26 the Lock screen page says that Full-screen artwork needs iOS 26
My-Name-Is-Jeff7984aef472b3
diff --git a/harness/mod-settings/README.md b/harness/mod-settings/README.mdindex 75583559..16a2dce8 100644--- a/harness/mod-settings/README.md+++ b/harness/mod-settings/README.md@@ -26,6 +26,10 @@ switch brings it in with its 38 pt heading and 28 pt note and scrolls 362 pt, haticker brings the later row within a second without moving the page; the switch off takes the heading and noteaway again.+`needs` pushes the Lock screen page's artwork section as iOS 18 to 25 get it (the real+`AnimatedArtworkSettings.m`'s `SGLockScreenArtworkNeedsRow`), and `tap=<section>.<row>` selects a row and logs the+alert it brings up: "Full-screen artwork", "Needs iOS 26", and an alert naming the iOS version.+2026-10-06, iPhone 17 Pro on iOS 27.0: the warning row leads; then Redesigned UI (glowing, with its ⓘ), Appearanceand Tab bar; Player, Lyrics and Albums & artists (Home & Library in the native look); Sing, Spatial voice, Audioeffects, Vibrations, Live Activity, AirPods gestures and Listening stats; Lock screen and Premium, ads & privacy; Labs anddiff --git a/harness/mod-settings/build.sh b/harness/mod-settings/build.shindex 5c66440a..7da28c50 100755--- a/harness/mod-settings/build.sh+++ b/harness/mod-settings/build.sh@@ -11,7 +11,7 @@ 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"/App/About/Signing.m \+ "$OUT"/gen/ModSettings.m "$SRC"/App/Pages.m "$SRC"/App/About/Signing.m "$SRC"/Shared/AnimatedArtwork/AnimatedArtworkSettings.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 \diff --git a/harness/mod-settings/main.m b/harness/mod-settings/main.mindex e4df30db..e4f9964d 100644--- a/harness/mod-settings/main.m+++ b/harness/mod-settings/main.m@@ -13,11 +13,13 @@// what each reads beside its chevron, to the log), gated (a page of a switch, ten rows, a headed and noted// section of twelve rows shown only while the switch is on, and a row that comes by itself), later (that row// let come; the page's ticker brings it), top (scrolled to the start), layout (the scroll offset, and each-// section's rows and heading and note heights, to the log).+// section's rows and heading and note heights, to the log), needs (the Lock screen artwork section below iOS+// 26), tap=<section>.<row> (that row selected, and the alert it brings up logged).#import <UIKit/UIKit.h>#import "Core/SGCore.h"#import "Settings/SGPage.h"#import "Settings/SGModPage.h"+#import "Shared/AnimatedArtwork/AnimatedArtwork.h"// Spotify's page protocol, so SGRegisterPages finds one and the page is pushed as on the phone.@protocol SPTPageController <NSObject>@@ -122,6 +124,15 @@ static UIViewController *gatedPage(void) {[table setContentOffset:CGPointMake(0, MAX(-table.adjustedContentInset.top, table.contentSize.height - table.bounds.size.height + table.adjustedContentInset.bottom)) animated:NO];} else if ([verb isEqualToString:@"gated"]) {[self.nav pushViewController:gatedPage() animated:NO];+ } else if ([verb isEqualToString:@"needs"]) {+ [self.nav pushViewController:[[SGModPage alloc] initWithTitle:@"Lock screen" intro:nil sections:@[+ SGSection(@"Lock screen artwork", @[SGLockScreenArtworkNeedsRow()]),+ ] footer:nil] animated:NO];+ } else if ([verb isEqualToString:@"tap"]) {+ NSIndexPath *path = [self pathFrom:value];+ [table.delegate tableView:table didSelectRowAtIndexPath:path];+ UIAlertController *alert = (UIAlertController *)self.nav.presentedViewController;+ if ([alert isKindOfClass:UIAlertController.class]) NSLog(@"[harness] alert \"%@\": %@", alert.title, alert.message);} else if ([verb isEqualToString:@"top"]) {[table setContentOffset:CGPointMake(0, -table.adjustedContentInset.top) animated:NO];} else if ([verb isEqualToString:@"later"]) {diff --git a/harness/mod-settings/stubs.m b/harness/mod-settings/stubs.mindex ce61c4cc..691e8675 100644--- a/harness/mod-settings/stubs.m+++ b/harness/mod-settings/stubs.m@@ -47,3 +47,5 @@ NSArray<SGModRow *> *SGEnvironmentWarningRows(void) {}// The Lyrics page's Romanised lyrics row (Shared/Lyrics/Romanise.m).SGModRow *SGLyricsRomanisedRow(void) { return SGOptionRow(@"Romanised lyrics", nil, @"spotifyglass.harness.romanised"); }+// The lock screen's source order row (MotionSources.m), for AnimatedArtworkSettings.m.+SGModRow *SGMotionSourcesRow(void) { return SGStatRow(@"Sources", ^NSString *{ return @"Canvas, Apple Music"; }); }diff --git a/tweak/Sources/Shared/AnimatedArtwork/AnimatedArtwork.h b/tweak/Sources/Shared/AnimatedArtwork/AnimatedArtwork.hindex bb3657d7..947f4bd2 100644--- a/tweak/Sources/Shared/AnimatedArtwork/AnimatedArtwork.h+++ b/tweak/Sources/Shared/AnimatedArtwork/AnimatedArtwork.h@@ -81,8 +81,10 @@ NSURL *SGMotionMadeFile(NSString *key);// The first frame of a local video. Main queue.void SGMotionPoster(NSURL *file, void (^done)(UIImage *poster));-// Settings: what the lock screen shows, the lyrics' style and Low Data Mode.+// Settings: what the lock screen shows, the lyrics' style and Low Data Mode; below iOS 26 the one row+// SGLockScreenArtworkNeedsRow, which says the setting needs iOS 26 and, tapped, why.NSArray *SGLockScreenMotionRows(void);+SGModRow *SGLockScreenArtworkNeedsRow(void);// Pure steps, for the harness.NSString *SGMotionNameKey(NSString *name);diff --git a/tweak/Sources/Shared/AnimatedArtwork/AnimatedArtworkSettings.m b/tweak/Sources/Shared/AnimatedArtwork/AnimatedArtworkSettings.mindex bfe3dd13..5d995273 100644--- a/tweak/Sources/Shared/AnimatedArtwork/AnimatedArtworkSettings.m+++ b/tweak/Sources/Shared/AnimatedArtwork/AnimatedArtworkSettings.m@@ -2,6 +2,7 @@// Mode. iOS 26 and up only.#import "Core/SGCore.h"#import "Settings/SGModPage.h"+#import "Settings/SGPageStyle.h"#import "AnimatedArtwork.h"SGLockArtwork SGLockScreenArtwork(void) {@@ -37,5 +38,18 @@ NSArray *SGLockScreenMotionRows(void) {lowData,];}- return @[];+ return @[SGLockScreenArtworkNeedsRow()];+}++// Below iOS 26 the section stays, with one row that says why there is nothing to pick.+SGModRow *SGLockScreenArtworkNeedsRow(void) {+ return SGStatActionRow(@"Full-screen artwork", nil, ^NSString *{ return @"Needs iOS 26"; }, ^{+ NSString *message = [NSString stringWithFormat:@"This iPhone has iOS %@. The lock screen takes moving artwork "+ @"from apps from iOS 26 on, so the Canvas and Apple Music's animated "+ @"covers can show there once the iPhone is updated.", UIDevice.currentDevice.systemVersion];+ UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Needs iOS 26" message:message+ preferredStyle:UIAlertControllerStyleAlert];+ [alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler:nil]];+ [SGTopController() presentViewController:alert animated:YES completion:nil];+ });}