Skip to content

Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.

C

feat: the line being sung as a Live Activity in the redesign, on the lock screen and in the Dynamic Island

Vojtěch Škopek900a64ae5265
diff --git a/docs/tweaks.md b/docs/tweaks.md
index d0c16591..ecd99bca 100644
--- a/docs/tweaks.md
+++ b/docs/tweaks.md
@@ -15,9 +15,10 @@
tweak/Sources/App/ what brings the layers together: Mod Settings' root and composed pages, the Mod page,
backup and signing, the welcome tour
tweak/Sources/Diagnostics/ screen dumps, the tree server and the main thread hang sampler of FLEX builds
- scripts/ pipeline.sh (build + inject), install.sh (sign + install), record-trees.py,
- record-session.py, dump-log.sh, extract-flags.py, publish.sh (release: version bump,
- site release.json)
+ extension/LiveActivity/ the redesign's Live Activity widget, a WidgetKit extension of its own
+ scripts/ pipeline.sh (build + inject), build-extension.sh (the widget extension, without an
+ Xcode project), install.sh (sign + install), record-trees.py, record-session.py,
+ dump-log.sh, extract-flags.py, publish.sh (release: version bump, site release.json)
trees/ recorded view trees, one per screen; the input for every new hook. trees/clean/ holds
the numbered snapshots per screen of record-session.py, taken of Spotify as it came
plist/ Info.plist overrides merged into the app (turns UIDesignRequiresCompatibility off)
@@ -145,6 +146,11 @@ Redesigned:
samples go through a drum and bass analyzer on the render thread (SGRMusicAnalyzer.m, plain C), and a
thread of its own schedules the taps and the rumble for when the sound is heard (MusicHaptics.x). Both
switches apply at once; nothing plays while Spotify is not the active app
+ LiveActivity/ the line being sung, with the next one under it, as a Live Activity on the lock screen and in the
+ Dynamic Island, lyrics only (LiveActivity.h lists its files): a timer polls the player and sends a
+ new state only when the line or the pause changes, local updates only, no push. The widget is extension/LiveActivity; ActivityKit pairs the two
+ by the attributes' type in LiveActivityShared.swift, compiled into both. It starts only with Spotify
+ in front, and its switch applies at once
App:
@@ -160,7 +166,7 @@ which makes every unset switch read off, so a reset is stock Spotify whatever sw
A hook reads its switch when it runs (`SGEnabled`, `SGHidden`, `SGFlag` from Core/SGPrefs.h), so a
change shows after Spotify restarts; the tab editor on the Navbar page is the exception and applies as soon as the bar lays
out again, as are the Home gradient's colour, strength and height, but not the switch that turns it on, and the redesign's
-Vibrations. The root page in `App/ModSettings.x` holds the Appearance card and links the page of each part of Spotify, and only the stored look's.
+Vibrations and Live Activity. The root page in `App/ModSettings.x` holds the Appearance card and links the page of each part of Spotify, and only the stored look's.
## Make targets
@@ -187,7 +193,7 @@ is set. Redesigned UI is the one switch between the two looks (see Layers): it g
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
its own list of tabs. Player: Gestures, Lyrics (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), Blocked artists (with the count on the row) and Lock screen widget, which work with either look;
+naming the source in the redesign, the lock screen, the Live Activity in the redesign, and glass lyrics in the native look), Blocked artists (with the count on the row) and Lock screen widget, which work with either look;
in the native look also Now playing bar (its device button and its flags), Queue & devices, and
Spotify'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
diff --git a/extension/LiveActivity/Info.plist b/extension/LiveActivity/Info.plist
new file mode 100644
index 00000000..2294917f
--- /dev/null
+++ b/extension/LiveActivity/Info.plist
@@ -0,0 +1,46 @@
+<?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>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>Spotify</string>
+ <key>CFBundleExecutable</key>
+ <string>SpotifyGlassLiveActivity</string>
+ <key>CFBundleIdentifier</key>
+ <string>HOST_BUNDLE_ID.liveactivity</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>SpotifyGlassLiveActivity</string>
+ <key>CFBundlePackageType</key>
+ <string>XPC!</string>
+ <key>CFBundleShortVersionString</key>
+ <string>HOST_SHORT_VERSION</string>
+ <key>CFBundleSupportedPlatforms</key>
+ <array>
+ <string>iPhoneOS</string>
+ </array>
+ <key>CFBundleVersion</key>
+ <string>HOST_VERSION</string>
+ <key>DTPlatformName</key>
+ <string>iphoneos</string>
+ <key>MinimumOSVersion</key>
+ <string>17.0</string>
+ <key>NSExtension</key>
+ <dict>
+ <key>NSExtensionPointIdentifier</key>
+ <string>com.apple.widgetkit-extension</string>
+ </dict>
+ <key>UIDeviceFamily</key>
+ <array>
+ <integer>1</integer>
+ <integer>2</integer>
+ </array>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>arm64</string>
+ </array>
+</dict>
+</plist>
diff --git a/extension/LiveActivity/LiveActivityWidget.swift b/extension/LiveActivity/LiveActivityWidget.swift
new file mode 100644
index 00000000..19c62ede
--- /dev/null
+++ b/extension/LiveActivity/LiveActivityWidget.swift
@@ -0,0 +1,65 @@
+// The Live Activity's face: the line being sung with the next one under it, and nothing else. Built
+// with the tweak's LiveActivityShared.swift by scripts/build-extension.sh.
+import ActivityKit
+import SwiftUI
+import WidgetKit
+
+private let spotifyGreen = Color(red: 0.12, green: 0.84, blue: 0.38)
+
+@main
+struct SGLiveActivityBundle: WidgetBundle {
+ var body: some Widget {
+ SGLyricsLiveActivity()
+ }
+}
+
+struct SGLyricsLiveActivity: Widget {
+ var body: some WidgetConfiguration {
+ ActivityConfiguration(for: SGLyricsAttributes.self) { context in
+ LyricsView(state: context.state)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .padding(16)
+ .foregroundStyle(.white)
+ .activityBackgroundTint(Color.black.opacity(0.75))
+ .activitySystemActionForegroundColor(.white)
+ .widgetURL(URL(string: "spotify:"))
+ } dynamicIsland: { context in
+ DynamicIsland {
+ DynamicIslandExpandedRegion(.bottom) {
+ LyricsView(state: context.state)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .padding(.horizontal, 4)
+ }
+ } compactLeading: {
+ Image(systemName: "music.note")
+ .foregroundStyle(spotifyGreen)
+ } compactTrailing: {
+ Image(systemName: context.state.paused ? "pause.fill" : "waveform")
+ .foregroundStyle(spotifyGreen)
+ } minimal: {
+ Image(systemName: "music.note")
+ .foregroundStyle(spotifyGreen)
+ }
+ .widgetURL(URL(string: "spotify:"))
+ }
+ }
+}
+
+private struct LyricsView: View {
+ let state: SGLyricsAttributes.ContentState
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 4) {
+ Text(state.line)
+ .font(.title3.weight(.bold))
+ .lineLimit(2)
+ .minimumScaleFactor(0.8)
+ if !state.nextLine.isEmpty {
+ Text(state.nextLine)
+ .font(.subheadline.weight(.semibold))
+ .foregroundStyle(.white.opacity(0.45))
+ .lineLimit(1)
+ }
+ }
+ }
+}
diff --git a/plist/liquid-glass.plist b/plist/liquid-glass.plist
index 243a2f46..58f1c582 100644
--- a/plist/liquid-glass.plist
+++ b/plist/liquid-glass.plist
@@ -4,5 +4,9 @@
<dict>
<key>UIDesignRequiresCompatibility</key>
<false/>
+ <key>NSSupportsLiveActivities</key>
+ <true/>
+ <key>NSSupportsLiveActivitiesFrequentUpdates</key>
+ <true/>
</dict>
</plist>
diff --git a/scripts/build-extension.sh b/scripts/build-extension.sh
new file mode 100755
index 00000000..8e8fdb2d
--- /dev/null
+++ b/scripts/build-extension.sh
@@ -0,0 +1,32 @@
+#!/usr/bin/env bash
+# Builds the Live Activity widget extension without an Xcode project.
+#
+# scripts/build-extension.sh <host Info.plist> <out dir>
+#
+# Writes <out dir>/SpotifyGlassLiveActivity.appex. Needs Xcode (xcode-select or DEVELOPER_DIR) for the
+# iPhoneOS Swift toolchain.
+set -euo pipefail
+
+ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+HOST_PLIST="${1:?usage: $0 <host Info.plist> <out dir>}"
+OUT="${2:?usage: $0 <host Info.plist> <out dir>}"
+NAME=SpotifyGlassLiveActivity
+APPEX="$OUT/$NAME.appex"
+SHARED="$ROOT/tweak/Sources/Redesigned/LiveActivity/LiveActivityShared.swift"
+WIDGET="$ROOT/extension/LiveActivity/LiveActivityWidget.swift"
+
+rm -rf "$APPEX"
+mkdir -p "$APPEX"
+
+echo "==> building $NAME.appex"
+xcrun --sdk iphoneos swiftc -O -wmo -parse-as-library -target arm64-apple-ios17.0 -module-name "$NAME" \
+ -Xlinker -e -Xlinker _NSExtensionMain -o "$APPEX/$NAME" "$SHARED" "$WIDGET"
+
+sed -e "s/HOST_BUNDLE_ID/$(plutil -extract CFBundleIdentifier raw -o - "$HOST_PLIST")/" \
+ -e "s/HOST_SHORT_VERSION/$(plutil -extract CFBundleShortVersionString raw -o - "$HOST_PLIST")/" \
+ -e "s/HOST_VERSION/$(plutil -extract CFBundleVersion raw -o - "$HOST_PLIST")/" \
+ "$ROOT/extension/LiveActivity/Info.plist" > "$APPEX/Info.plist"
+plutil -convert binary1 "$APPEX/Info.plist"
+
+codesign -f -s - "$APPEX" >/dev/null 2>&1
+echo " $APPEX"
diff --git a/scripts/pipeline.sh b/scripts/pipeline.sh
index 419ed920..7ef22fec 100755
--- a/scripts/pipeline.sh
+++ b/scripts/pipeline.sh
@@ -83,6 +83,17 @@ echo " $TWEAK_DEB"
FILES=("$TWEAK_DEB")
[ "$WITH_FLEX" = 1 ] && FILES+=("$FLEX_DEB")
+# The redesign's Live Activity (Redesigned/LiveActivity) draws in a widget extension of its own.
+if xcrun --sdk iphoneos --find swiftc >/dev/null 2>&1; then
+ EXT_DIR="$ROOT/out/extension"
+ unzip -p "$IN" "${APP_DIR}Info.plist" > "$ROOT/out/.info.plist"
+ "$ROOT/scripts/build-extension.sh" "$ROOT/out/.info.plist" "$EXT_DIR"
+ rm -f "$ROOT/out/.info.plist"
+ FILES+=("$EXT_DIR/SpotifyGlassLiveActivity.appex")
+else
+ echo "==> no Xcode selected: building without the Live Activity extension"
+fi
+
echo "==> injecting"
# -w drops the Watch app: its companion-app key would still name com.spotify.client and block the install.
cyan -i "$IN" -o "$OUT" -f "${FILES[@]}" -l "$ROOT/plist/liquid-glass.plist" ${BUNDLE_ID:+-b "$BUNDLE_ID"} ${NAME:+-n "$NAME"} ${ICON:+-k "$ICON"} -w -s --overwrite
diff --git a/tweak/Sources/App/Pages.m b/tweak/Sources/App/Pages.m
index 95b312b2..933d2af3 100644
--- a/tweak/Sources/App/Pages.m
+++ b/tweak/Sources/App/Pages.m
@@ -11,6 +11,7 @@
#import "Native/NowPlayingBar/NowPlayingBar.h"
#import "Native/Player/NowPlaying.h"
#import "Redesigned/Haptics/Haptics.h"
+#import "Redesigned/LiveActivity/LiveActivity.h"
#import "Redesigned/Navbar/Navbar.h"
#import "Redesigned/NowPlayingBar/NowPlayingBar.h"
#import "Redesigned/Kit/SGRAccent.h"
@@ -19,6 +20,8 @@ NSString *const SGRedesignedUIInfo = @"Replaces Spotify's own look with the mod'
void SGSetRedesignedUI(BOOL on) {
SGSetEnabled(SGKeyRedesign, on);
+ // The native look has no Live Activity to end one the redesign left on the lock screen.
+ if (!on) SGRSetLiveActivityEnabled(NO);
}
// The whole look changes hands at launch, so the switch asks for the restart straight away rather than
@@ -49,12 +52,13 @@ UIViewController *SGNavbarPage(void) {
return SGRedesignedUIStored() ? SGRNavbarSettingsPage() : SGNavbarSettingsPage();
}
-// The redesign always draws Apple Music style lyrics, and only it names their source; the native look
-// has its glass card and page instead.
+// The redesign always draws Apple Music style lyrics, and only it names their source and has the Live
+// Activity; the native look has its glass card and page instead.
static UIViewController *lyricsPage(void) {
BOOL redesigned = SGRedesignedUIStored();
NSMutableArray<SGModRow *> *more = [NSMutableArray arrayWithObject:SGLockScreenLyricsRow()];
- if (!redesigned) [more insertObject:SGGlassLyricsRow() atIndex:0];
+ if (redesigned) [more addObject:SGRLiveActivityRow()];
+ else [more insertObject:SGGlassLyricsRow() atIndex:0];
NSArray<SGModSection *> *sections = @[SGLyricsSourcesSection(redesigned), SGSection(nil, more)];
return [[SGModPage alloc] initWithTitle:@"Lyrics" intro:SGRestartNote sections:sections footer:nil];
}
diff --git a/tweak/Sources/Redesigned/LiveActivity/LiveActivity.h b/tweak/Sources/Redesigned/LiveActivity/LiveActivity.h
new file mode 100644
index 00000000..4969a019
--- /dev/null
+++ b/tweak/Sources/Redesigned/LiveActivity/LiveActivity.h
@@ -0,0 +1,22 @@
+// The redesign's Live Activity (Mod Settings > Player > Lyrics): the line being sung, with the next one
+// under it, on the lock screen and in the Dynamic Island (iOS 17+).
+//
+// LiveActivity.x polls the player, sends the activity a new state when what it shows changes
+// LiveActivityBridge.swift ActivityKit, which is Swift only
+// LiveActivityShared.swift the attributes, compiled into the extension too
+// LiveActivitySettings.m the Lyrics page's row
+//
+// The widget is extension/LiveActivity, built into the IPA by scripts/build-extension.sh. The lines and
+// the clock come from Shared/Lyrics. The switch applies at once: iOS lets an activity start only while
+// the app is in front, which it is when the switch is flipped.
+// Threading: main thread only.
+#import <Foundation/Foundation.h>
+
+#define SGRKeyLiveActivity @"spotifyglass.redesign.liveActivity"
+
+// From the switch: starts following the player (and the activity, the app being in front) or ends both.
+void SGRSetLiveActivityEnabled(BOOL on);
+
+@class SGModRow;
+// The Live Activity row of the Lyrics page.
+SGModRow *SGRLiveActivityRow(void);
diff --git a/tweak/Sources/Redesigned/LiveActivity/LiveActivity.x b/tweak/Sources/Redesigned/LiveActivity/LiveActivity.x
new file mode 100644
index 00000000..ed54fcf9
--- /dev/null
+++ b/tweak/Sources/Redesigned/LiveActivity/LiveActivity.x
@@ -0,0 +1,95 @@
+// Polls the player and sends the activity a new state only when what it shows changes: a new line or
+// a pause. Spotify keeps playing in the background, so the timer keeps running there too.
+// The activity is started only while the app is in front, the one place ActivityKit allows it.
+#import <UIKit/UIKit.h>
+#import "Core/SGCore.h"
+#import "Headers/SPTPlayer.h"
+#import "Shared/Lyrics/Lyrics.h"
+#import "LiveActivity.h"
+
+API_AVAILABLE(ios(17.0))
+@interface SGRLiveActivityBridge : NSObject
+@property (class, nonatomic, readonly) BOOL isShowing;
++ (void)showWithLine:(NSString *)line nextLine:(NSString *)nextLine paused:(BOOL)paused;
++ (void)end;
+@end
+
+static const NSTimeInterval kTick = 0.25;
+// Past a line's sung end by this much, with the next line at least this far off, the line gives way to a note.
+static const NSInteger kBreakMs = 4000;
+// Seconds between attempts to start one, so a refused request (activities turned off) is not retried every tick.
+static const NSTimeInterval kStartRetry = 10;
+
+static NSTimer *sg_timer;
+static NSString *sg_shown;
+static NSString *sg_missingLyrics;
+static NSDate *sg_lastStart;
+
+static void tick(void) API_AVAILABLE(ios(17.0)) {
+ id<SPTPlayer> player = SGKaraokePlayer();
+ SPTPlayerState *state = player.state;
+ SPTPlayerTrack *track = state.track;
+ if (!track.trackTitle.length) return;
+
+ NSString *trackID = SGKaraokePlayingTrack();
+ NSArray<SGKaraokeLine *> *lines = SGKaraokeLinesForTrack(trackID);
+ if (!lines) {
+ SGKaraokeRequestLyrics(trackID);
+ if (trackID && ![trackID isEqualToString:sg_missingLyrics]) {
+ sg_missingLyrics = trackID;
+ SGLog(@"live activity: no lyrics yet for %@", trackID);
+ }
+ }
+
+ NSInteger position = SGKaraokePositionMs();
+ NSInteger index = -1;
+ while (index + 1 < (NSInteger)lines.count && lines[index + 1].start <= position) index++;
+ // Before the first line, between lines and without lyrics at all, a note holds the place.
+ NSString *line = @"♪", *next = index + 1 < (NSInteger)lines.count ? SGKaraokeLineText(lines[index + 1]) : @"";
+ if (index >= 0) {
+ SGKaraokeLine *current = lines[index];
+ BOOL nextFarOff = index + 1 == (NSInteger)lines.count || lines[index + 1].start - position > kBreakMs;
+ line = position > current.end + kBreakMs && nextFarOff ? @"♪" : SGKaraokeLineText(current);
+ }
+
+ NSString *shown = [@[line, next, state.isPaused ? @"1" : @"0"] componentsJoinedByString:@"\n"];
+ if (SGRLiveActivityBridge.isShowing) {
+ if ([shown isEqualToString:sg_shown]) return;
+ } else {
+ if (UIApplication.sharedApplication.applicationState != UIApplicationStateActive) return;
+ if (sg_lastStart && -sg_lastStart.timeIntervalSinceNow < kStartRetry) return;
+ sg_lastStart = [NSDate date];
+ }
+ sg_shown = shown;
+ [SGRLiveActivityBridge showWithLine:line nextLine:next paused:state.isPaused];
+}
+
+void SGRSetLiveActivityEnabled(BOOL on) {
+ if (!SGRedesignedUI()) return;
+ if (@available(iOS 17.0, *)) {
+ [sg_timer invalidate];
+ sg_timer = nil;
+ sg_shown = nil;
+ sg_lastStart = nil;
+ if (!on) {
+ [SGRLiveActivityBridge end];
+ SGLog(@"live activity: off");
+ return;
+ }
+ sg_timer = [NSTimer timerWithTimeInterval:kTick repeats:YES block:^(NSTimer *t) { tick(); }];
+ [NSRunLoop.mainRunLoop addTimer:sg_timer forMode:NSRunLoopCommonModes];
+ SGLog(@"live activity: on");
+ }
+}
+
+%ctor {
+ if (!SGRedesignedUI()) return;
+ if (@available(iOS 17.0, *)) {
+ BOOL on = SGFlag(SGRKeyLiveActivity, NO);
+ // Off, one left from a launch before the switch went off is ended.
+ dispatch_async(dispatch_get_main_queue(), ^{
+ if (on) SGRSetLiveActivityEnabled(YES);
+ else [SGRLiveActivityBridge end];
+ });
+ }
+}
diff --git a/tweak/Sources/Redesigned/LiveActivity/LiveActivityBridge.swift b/tweak/Sources/Redesigned/LiveActivity/LiveActivityBridge.swift
new file mode 100644
index 00000000..244ca60b
--- /dev/null
+++ b/tweak/Sources/Redesigned/LiveActivity/LiveActivityBridge.swift
@@ -0,0 +1,42 @@
+// ActivityKit is Swift only, so LiveActivity.x reaches it through this class.
+import ActivityKit
+import Foundation
+import os
+
+@available(iOS 17.0, *)
+@objc(SGRLiveActivityBridge)
+public final class SGRLiveActivityBridge: NSObject {
+ private static let log = Logger(subsystem: "spotifyglass", category: "live activity")
+
+ private static var current: Activity<SGLyricsAttributes>? {
+ Activity<SGLyricsAttributes>.activities.first { $0.activityState == .active || $0.activityState == .stale }
+ }
+
+ @objc public static var isShowing: Bool { current != nil }
+
+ // A new activity can only be requested while the app is in the foreground; an update works from the background.
+ @objc public static func show(line: String, nextLine: String, paused: Bool) {
+ let state = SGLyricsAttributes.ContentState(line: line, nextLine: nextLine, paused: paused)
+ let content = ActivityContent(state: state, staleDate: nil)
+ if let activity = current {
+ Task { await activity.update(content) }
+ return
+ }
+ guard ActivityAuthorizationInfo().areActivitiesEnabled else {
+ log.notice("[spotifyglass] live activity: activities are off for this app")
+ return
+ }
+ do {
+ let activity = try Activity.request(attributes: SGLyricsAttributes(), content: content, pushType: nil)
+ log.notice("[spotifyglass] live activity: started \(activity.id, privacy: .public)")
+ } catch {
+ log.error("[spotifyglass] live activity: request failed: \(String(describing: error), privacy: .public)")
+ }
+ }
+
+ @objc public static func end() {
+ for activity in Activity<SGLyricsAttributes>.activities {
+ Task { await activity.end(nil, dismissalPolicy: .immediate) }
+ }
+ }
+}
diff --git a/tweak/Sources/Redesigned/LiveActivity/LiveActivitySettings.m b/tweak/Sources/Redesigned/LiveActivity/LiveActivitySettings.m
new file mode 100644
index 00000000..0299d56d
--- /dev/null
+++ b/tweak/Sources/Redesigned/LiveActivity/LiveActivitySettings.m
@@ -0,0 +1,10 @@
+// The Live Activity row of the Lyrics page, in the redesign only (App/Pages.m puts it there).
+#import "Core/SGCore.h"
+#import "Settings/SGModPage.h"
+#import "LiveActivity.h"
+
+SGModRow *SGRLiveActivityRow(void) {
+ SGModRow *row = SGOptionRow(@"Live Activity", @"The line being sung on the lock screen and in the Dynamic Island", SGRKeyLiveActivity);
+ row.changed = ^(BOOL on) { SGRSetLiveActivityEnabled(on); };
+ return row;
+}
diff --git a/tweak/Sources/Redesigned/LiveActivity/LiveActivityShared.swift b/tweak/Sources/Redesigned/LiveActivity/LiveActivityShared.swift
new file mode 100644
index 00000000..ea443363
--- /dev/null
+++ b/tweak/Sources/Redesigned/LiveActivity/LiveActivityShared.swift
@@ -0,0 +1,13 @@
+// Compiled into both the tweak and extension/LiveActivity: ActivityKit pairs the two sides by the
+// attributes' type name, so this must stay identical in both.
+import ActivityKit
+import Foundation
+
+@available(iOS 16.1, *)
+struct SGLyricsAttributes: ActivityAttributes {
+ struct ContentState: Codable, Hashable {
+ var line: String
+ var nextLine: String
+ var paused: Bool
+ }
+}
diff --git a/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.h b/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.h
index afee277e..5730b4ca 100644
--- a/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.h
+++ b/tweak/Sources/Shared/LockScreenLyrics/LockScreenLyrics.h
@@ -1,6 +1,6 @@
// The line being sung in place of the artist in the system's now playing: lock screen, Dynamic Island,
-// Control Center, CarPlay. A Live Activity cannot do it: iOS stops taking its updates from an app that
-// plays audio in the background within half a minute. The lines and the clock come from Karaoke.
+// Control Center, CarPlay. The redesign also has a Live Activity for it (Redesigned/LiveActivity). The
+// lines and the clock come from Karaoke.
#import <Foundation/Foundation.h>
#define SGKeyLockScreenLyrics @"spotifyglass.lockScreenLyrics"