Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
fix: settings use compact Spotify text with tiles and values only where needed
My-Name-Is-Jeff76164b570d4d
diff --git a/harness/haptics-page/main.m b/harness/haptics-page/main.mindex ec564291..f3354244 100644--- a/harness/haptics-page/main.m+++ b/harness/haptics-page/main.m@@ -148,10 +148,10 @@ static void findViews(UIView *root, Class kind, NSMutableArray *found) {if ([key hasPrefix:@"spotifyglass."] && [key containsString:@"haptics"]) NSLog(@"[harness] stored %@ = %@", key, all[key]);}NSLog(@"[harness] the hooks read: Controls %@ at %.0f%%, Music Haptics %@ at %.0f%% following %ld, In the Background %@, iOS's Music Haptics %@; "- @"the main page's row reads %@, the preview says \"%@\"", SGEnabled(SGKeyControlHaptics) ? @"on" : @"off",+ @"the preview says \"%@\"", SGEnabled(SGKeyControlHaptics) ? @"on" : @"off",SGHapticsStrength(SGKeyControlStrength) * 100, SGMusicHapticsOn() ? @"on" : @"off", SGHapticsStrength(SGKeyMusicStrength) * 100,(long)SGMusicHapticsFollows(), SGMusicHapticsInBackground() ? @"on" : @"off", SGSystemMusicHapticsOn() ? @"on" : @"off",- SGVibrationsSummary(), table.tableHeaderView.accessibilityHint);+ table.tableHeaderView.accessibilityHint);for (NSInteger section = 0; section < table.numberOfSections; section++) {NSMutableArray<NSString *> *rows = [NSMutableArray array];for (NSInteger row = 0; row < [table numberOfRowsInSection:section]; row++) {diff --git a/harness/mod-settings/stubs.m b/harness/mod-settings/stubs.mindex 06763fef..7a370ef0 100644--- a/harness/mod-settings/stubs.m+++ b/harness/mod-settings/stubs.m@@ -31,8 +31,6 @@ 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; }diff --git a/tweak/Sources/App/ModSettings.x b/tweak/Sources/App/ModSettings.xindex cc507966..accdafd2 100644--- a/tweak/Sources/App/ModSettings.x+++ b/tweak/Sources/App/ModSettings.x@@ -76,24 +76,19 @@ static UIViewController *modSettingsPage(void) {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.+ // Sing and the audio effects work on the sound, so both looks have them; Audio effects says how many are on.SGModRow *sing = pageRow(@"Karaoke", @"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.+ // Vibrations hook Spotify's own controls and its audio, so they answer under either look.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(); };[features addObject:liveActivity];}[features addObjectsFromArray:@[@@ -115,7 +110,9 @@ static UIViewController *modSettingsPage(void) {]),SGSection(nil, @[mod]),]];- return [[SGModPage alloc] initWithTitle:@"Vitrine" intro:nil sections:sections footer:nil];+ SGModPage *page = [[SGModPage alloc] initWithTitle:@"Vitrine" intro:nil sections:sections footer:nil];+ page.tiles = YES;+ return page;}#pragma mark - row in the settings list and the side drawerdiff --git a/tweak/Sources/Settings/SGModPage.h b/tweak/Sources/Settings/SGModPage.hindex 948f47a0..e38f1b5e 100644--- a/tweak/Sources/Settings/SGModPage.h+++ b/tweak/Sources/Settings/SGModPage.h@@ -60,6 +60,8 @@- (instancetype)initWithTitle:(NSString *)title intro:(NSString *)intro sections:(NSArray<SGModSection *> *)sections footer:(NSString *)footer;// Asks every row's `visible` again, after something other than a switch on the page changed what it reads.- (void)refreshVisibility;+// Rows draw their symbol on a coloured tile; off, the default, they show none. Mod Settings' main page has them.+@property (nonatomic) BOOL tiles;@end// The intro of every page whose switches the hooks read at launch.diff --git a/tweak/Sources/Settings/SGModPage.m b/tweak/Sources/Settings/SGModPage.mindex 5197cb93..5dccfd30 100644--- a/tweak/Sources/Settings/SGModPage.m+++ b/tweak/Sources/Settings/SGModPage.m@@ -806,10 +806,11 @@ static void showWaiting(UITableViewCell *cell, BOOL waiting, NSString *switchTitSGFillCell(cell, row.title, row.subtitle, row.color, row.symbol);UIListContentConfiguration *content = (UIListContentConfiguration *)cell.contentConfiguration;if (row.color) content.secondaryTextProperties.color = row.color;- BOOL tile = row.symbol && !row.color;+ BOOL tile = row.symbol && !row.color && self.tiles;if (tile) content.image = row.tint ? SGTileImageTinted(row.symbol, row.tint) : SGTileImage(row.symbol);+ else if (!row.color) content.image = nil;cell.contentConfiguration = content;- cell.separatorInset = UIEdgeInsetsMake(0, row.symbol ? (tile ? SGTileRowInset : 48) : 16, 0, 0);+ cell.separatorInset = UIEdgeInsetsMake(0, tile ? SGTileRowInset : row.symbol && row.color ? 48 : 16, 0, 0);if (row.key) {BOOL locked = flagRowLocked(row);diff --git a/tweak/Sources/Settings/SGPageStyle.h b/tweak/Sources/Settings/SGPageStyle.hindex 56f27560..fbc47239 100644--- a/tweak/Sources/Settings/SGPageStyle.h+++ b/tweak/Sources/Settings/SGPageStyle.h@@ -1,7 +1,7 @@-// The system Settings app's look, for every page of the mod's, in its dark appearance: cards of #1C1C1E on-// black, 17pt titles over 15pt grey subtitles, 13pt uppercase section headers and notes, a white symbol on a-// coloured rounded square leading a row, switches in the look's accent colour. The text follows Dynamic Type-// up to the largest size before the accessibility ones, and the app font of Shared/Fonts.+// The look of every page of the mod's, in the dark appearance: cards of #1C1C1E on black, 13pt titles over 11pt+// grey subtitles in Spotify's typeface, 11pt uppercase section headers and notes, a white symbol on a coloured+// rounded square leading a row, white chevrons, switches in the look's accent colour. The text follows Dynamic+// Type up to the largest size before the accessibility ones, and the app font of Shared/Fonts.#import <UIKit/UIKit.h>UIColor *SGGrey(void); // the secondary label's grey@@ -9,8 +9,8 @@ UIColor *SGGreen(void);UIColor *SGRed(void);UIColor *SGPageBackground(void);UIColor *SGCardBackground(void);-UIFont *SGTitleFont(void); // a row's title and value, Settings' body-UIFont *SGSubtitleFont(void); // section headers, footers and notes, Settings' footnote+UIFont *SGTitleFont(void); // a row's title and value, 13pt+UIFont *SGSubtitleFont(void); // subtitles, section headers, footers and notes, 11pt// Takes the 13pt title font off Spotify's own settings list, once, for the Mod Settings row the mod adds to it// (App/ModSettings.x), which reads as one of Spotify's rows; SGSpotifyListFont hands it out.void SGAdoptFonts(UIView *list, UIView *exclude);diff --git a/tweak/Sources/Settings/SGPageStyle.m b/tweak/Sources/Settings/SGPageStyle.mindex 8e7bf49f..762db5bf 100644--- a/tweak/Sources/Settings/SGPageStyle.m+++ b/tweak/Sources/Settings/SGPageStyle.m@@ -5,17 +5,17 @@ static UIFont *sg_spotifyFont;// The dark appearance's secondary label, fixed rather than dynamic so a view that is not set dark reads it too.UIColor *SGGrey(void) { return [UIColor colorWithRed:0xEB / 255.0 green:0xEB / 255.0 blue:0xF5 / 255.0 alpha:0.6]; }-static UIColor *tertiaryGrey(void) { return [UIColor colorWithRed:0xEB / 255.0 green:0xEB / 255.0 blue:0xF5 / 255.0 alpha:0.3]; }-// Settings' text styles at their Large size, made through +systemFontOfSize: so the app font of Shared/Fonts-// follows, and grown with Dynamic Type no further than xxxLarge: some rows are laid out by hand from these-// fonts, and the accessibility sizes would outgrow them.+// Spotify's typeface at the sizes of its own lists, asked for by name so the app font of Shared/Fonts follows,+// and the system font before Spotify has registered it. Grown with Dynamic Type no further than xxxLarge:+// some rows are laid out by hand from these fonts, and the accessibility sizes would outgrow them.static UIFont *scaled(UIFontTextStyle style, CGFloat size, CGFloat largest) {- return [[UIFontMetrics metricsForTextStyle:style] scaledFontForFont:[UIFont systemFontOfSize:size] maximumPointSize:largest];+ UIFont *font = [UIFont fontWithName:@"SpotifyMixUI-Regular" size:size] ?: [UIFont systemFontOfSize:size];+ return [[UIFontMetrics metricsForTextStyle:style] scaledFontForFont:font maximumPointSize:largest];}-UIFont *SGTitleFont(void) { return scaled(UIFontTextStyleBody, 17, 23); }-UIFont *SGSubtitleFont(void) { return scaled(UIFontTextStyleFootnote, 13, 17); }+UIFont *SGTitleFont(void) { return scaled(UIFontTextStyleBody, 13, 18); }+UIFont *SGSubtitleFont(void) { return scaled(UIFontTextStyleFootnote, 11, 15); }UIFont *SGSpotifyListFont(void) { return sg_spotifyFont ?: [UIFont systemFontOfSize:13 weight:UIFontWeightBold]; }UIImageView *SGSymbolView(NSString *name, CGFloat size, UIImageSymbolWeight weight, CGFloat box) {@@ -122,23 +122,21 @@ UIImage *SGTileImage(NSString *symbol) {}UIImageView *SGChevronView(void) {- UIImageView *chevron = SGSymbolView(@"chevron.right", 13, UIImageSymbolWeightSemibold, 16);- chevron.tintColor = tertiaryGrey();- return chevron;+ return SGSymbolView(@"chevron.right", 13, UIImageSymbolWeightBold, 16);}const CGFloat SGSectionHeaderHeight = 38;const CGFloat SGSectionGap = 20;-// Every page below draws Settings' own row: a 17pt white title over a 15pt grey subtitle, with an optional-// symbol in the leading slot, 44pt high with no subtitle.+// Every page below draws the same row: a 13pt white title over an 11pt grey subtitle in Spotify's typeface,+// with an optional symbol in the leading slot.void SGFillCell(UITableViewCell *cell, NSString *title, NSString *subtitle, UIColor *color, NSString *symbolName) {UIListContentConfiguration *content = [UIListContentConfiguration subtitleCellConfiguration];content.text = title;content.secondaryText = subtitle;content.textProperties.font = SGTitleFont();content.textProperties.color = color ?: UIColor.whiteColor;- content.secondaryTextProperties.font = scaled(UIFontTextStyleSubheadline, 15, 21);+ content.secondaryTextProperties.font = SGSubtitleFont();content.secondaryTextProperties.color = SGGrey();content.textToSecondaryTextVerticalPadding = 2;content.directionalLayoutMargins = NSDirectionalEdgeInsetsMake(11, 16, 11, 16);diff --git a/tweak/Sources/Shared/AudioEffects/AudioEffectsPage.m b/tweak/Sources/Shared/AudioEffects/AudioEffectsPage.mindex 226e8497..5a0e2573 100644--- a/tweak/Sources/Shared/AudioEffects/AudioEffectsPage.m+++ b/tweak/Sources/Shared/AudioEffects/AudioEffectsPage.m@@ -35,7 +35,6 @@ typedef NS_ENUM(NSInteger, SGDSPRowKind) {@property (nonatomic, copy) NSString *key; // the switch; nil for output control, which is always on@property (nonatomic, copy) NSString *title;@property (nonatomic, copy) NSString *subtitle;-@property (nonatomic, copy) NSString *symbol;@property (nonatomic, copy) NSArray<SGDSPRow *> *rows;@end@@ -76,12 +75,11 @@ static SGDSPRow *fileRow(NSString *title, SGDSPFileKind kind) {return pageRow(title, ^NSString *{ return SGDSPChosenFile(kind); }, ^UIViewController *{ return SGDSPLibraryPage(kind); });}-static SGDSPEffect *effect(NSString *key, NSString *title, NSString *subtitle, NSString *symbol, NSArray<SGDSPRow *> *rows) {+static SGDSPEffect *effect(NSString *key, NSString *title, NSString *subtitle, NSArray<SGDSPRow *> *rows) {SGDSPEffect *e = [SGDSPEffect new];e.key = key;e.title = title;e.subtitle = subtitle;- e.symbol = symbol;e.rows = rows;return e;}@@ -110,45 +108,45 @@ static NSArray<SGDSPEffect *> *effects(void) {SGDSPRow *width = slider(@"Width", SGKeyDSPStereoWideLevel, @"%");width.scale = 2;return @[- effect(nil, @"Output control", @"Gain and limiter, always on", @"speaker.wave.2", @[+ effect(nil, @"Output control", @"Gain and limiter, always on", @[slider(@"Post gain", SGKeyDSPPostGain, @" dB"),slider(@"Limiter threshold", SGKeyDSPLimiterThreshold, @" dB"),slider(@"Limiter release", SGKeyDSPLimiterRelease, @" ms"),]),- effect(SGKeyDSPCompander, @"Multiband compander", @"Evens out or livens up the dynamics", @"rectangle.compress.vertical", @[+ effect(SGKeyDSPCompander, @"Multiband compander", @"Evens out or livens up the dynamics", @[row(SGDSPRowCurve, nil, SGKeyDSPCompanderGains),slider(@"Release", SGKeyDSPCompanderTime, @" s"),]),- effect(SGKeyDSPBass, @"Bass boost", @"Lifts the low end", @"hifispeaker", @[+ effect(SGKeyDSPBass, @"Bass boost", @"Lifts the low end", @[slider(@"Maximum gain", SGKeyDSPBassGain, @" dB"),]),- effect(SGKeyDSPEqualizer, @"Equalizer", @"15 bands, with presets", @"slider.vertical.3", @[+ effect(SGKeyDSPEqualizer, @"Equalizer", @"15 bands, with presets", @[row(SGDSPRowCurve, nil, SGKeyDSPEqualizerGains),]),- effect(SGKeyDSPGraphicEq, @"Graphic EQ", @"Any curve, like AutoEq's corrections", @"chart.xyaxis.line", @[+ effect(SGKeyDSPGraphicEq, @"Graphic EQ", @"Any curve, like AutoEq's corrections", @[pageRow(@"Response", ^NSString *{ return graphicEqSummary(); }, ^UIViewController *{ return SGDSPGraphicEqPage(); }),]),- effect(SGKeyDSPConvolver, @"Convolver", @"Recorded rooms and speakers", @"waveform.path", @[+ effect(SGKeyDSPConvolver, @"Convolver", @"Recorded rooms and speakers", @[fileRow(@"Impulse response", SGDSPFileImpulseResponse),choice(@"Optimization", SGKeyDSPConvolverMode, SGDSPConvolverModeNames()),]),- effect(SGKeyDSPDDC, @"ViPER DDC", @"Headphone correction files", @"headphones", @[+ effect(SGKeyDSPDDC, @"ViPER DDC", @"Headphone correction files", @[fileRow(@"DDC file", SGDSPFileDDC),]),- effect(SGKeyDSPLiveprog, @"Liveprog", @"Effects written as EEL scripts", @"chevron.left.forwardslash.chevron.right", @[+ effect(SGKeyDSPLiveprog, @"Liveprog", @"Effects written as EEL scripts", @[fileRow(@"Script", SGDSPFileLiveprog),]),- effect(SGKeyDSPReverb, @"Reverb", @"A room around the music", @"building.columns", @[+ effect(SGKeyDSPReverb, @"Reverb", @"A room around the music", @[choice(@"Room", SGKeyDSPReverbPreset, SGDSPReverbPresetNames()),slider(@"Amount", SGKeyDSPReverbAmount, @"%"),]),- effect(SGKeyDSPStereoWide, @"Stereo widening", @"A wider or narrower stereo image", @"arrow.left.and.right", @[+ effect(SGKeyDSPStereoWide, @"Stereo widening", @"A wider or narrower stereo image", @[width,]),- effect(SGKeyDSPCrossfeed, @"Crossfeed", @"Softer stereo on headphones", @"ear", @[+ effect(SGKeyDSPCrossfeed, @"Crossfeed", @"Softer stereo on headphones", @[choice(@"Preset", SGKeyDSPCrossfeedMode, SGDSPCrossfeedModeNames()),]),- effect(SGKeyDSPTube, @"Analog modelling", @"Tube amplifier warmth", @"flame", @[+ effect(SGKeyDSPTube, @"Analog modelling", @"Tube amplifier warmth", @[slider(@"Drive", SGKeyDSPTubeDrive, @" dB"),]),];@@ -385,23 +383,6 @@ static UIFont *tabular(UIFont *font) {#pragma mark - the page-// The value and the chevron of a row opening a page, as Settings' own rows draw them.-static UIView *valueAndChevron(NSString *text) {- UILabel *label = [UILabel new];- label.font = SGTitleFont();- label.textColor = SGGrey();- label.text = text;- [label sizeToFit];- UIImageView *chevron = SGChevronView();- CGFloat height = MAX(label.bounds.size.height, chevron.bounds.size.height);- UIView *box = [[UIView alloc] initWithFrame:CGRectMake(0, 0, label.bounds.size.width + 6 + chevron.bounds.size.width, height)];- label.center = CGPointMake(label.bounds.size.width / 2, height / 2);- chevron.center = CGPointMake(box.bounds.size.width - chevron.bounds.size.width / 2, height / 2);- [box addSubview:label];- [box addSubview:chevron];- return box;-}-@interface SGDSPPage : SGPage@end@@ -567,14 +548,10 @@ static UIView *valueAndChevron(NSString *text) {return toggle;}-- (void)fillHead:(UITableViewCell *)cell title:(NSString *)title subtitle:(NSString *)subtitle symbol:(NSString *)symbol {- SGFillCell(cell, title, subtitle, nil, nil);- UIListContentConfiguration *content = (UIListContentConfiguration *)cell.contentConfiguration;- content.image = SGTileImage(symbol);- content.imageToTextPadding = 14;- content.secondaryTextProperties.numberOfLines = 1;- cell.contentConfiguration = content;- cell.separatorInset = UIEdgeInsetsMake(0, 58, 0, 0);+// A row with no symbol, so its line fits beside the switch or chevron.+- (void)fillHead:(UITableViewCell *)cell title:(NSString *)title subtitle:(NSString *)subtitle {+ SGFillCell(cell, title, subtitle.length ? subtitle : nil, nil, nil);+ cell.separatorInset = UIEdgeInsetsMake(0, 16, 0, 0);}- (UITableViewCell *)tableView:(UITableView *)table cellForRowAtIndexPath:(NSIndexPath *)path {@@ -582,24 +559,23 @@ static UIView *valueAndChevron(NSString *text) {if (path.section == 0 && path.row == 2) return [self valueCell:table title:@"Headphones" value:SGDSPHeadphoneSummary()];if (path.section == 0) {UITableViewCell *cell = SGDequeueCell(table, @"master");- [self fillHead:cell title:@"Effects" subtitle:SGDSPStatus() symbol:@"waveform"];+ [self fillHead:cell title:@"Effects" subtitle:SGDSPStatus()];cell.accessoryView = [self switchOn:SGDSPSwitch(SGKeyDSP) action:@selector(masterToggled:) tag:0];return cell;}SGDSPEffect *e = [self effectIn:path.section];if (!e) {UITableViewCell *cell = SGDequeueCell(table, @"reset");- SGFillCell(cell, @"Reset all effects", nil, SGRed(), @"arrow.counterclockwise");+ [self fillHead:cell title:@"Reset all effects" subtitle:nil];UIListContentConfiguration *content = (UIListContentConfiguration *)cell.contentConfiguration;- content.secondaryTextProperties.color = SGRed();+ content.textProperties.color = SGRed();cell.contentConfiguration = content;cell.selectionStyle = UITableViewCellSelectionStyleDefault;- cell.separatorInset = UIEdgeInsetsMake(0, 48, 0, 0);return cell;}if (path.row == 0) {UITableViewCell *cell = SGDequeueCell(table, @"effect");- [self fillHead:cell title:e.title subtitle:e.subtitle symbol:e.symbol];+ [self fillHead:cell title:e.title subtitle:e.subtitle];if (e.key) cell.accessoryView = [self switchOn:SGDSPSwitch(e.key) action:@selector(effectToggled:) tag:path.section];return cell;}@@ -635,19 +611,13 @@ static UIView *valueAndChevron(NSString *text) {return SGDequeueCell(table, @"row");}-// The value on the right beside the chevron where it fits next to the title, and under the title-// where it does not: the compressor's transforms are longer than a narrow phone has room for.+// The value under the title, and a chevron.- (UITableViewCell *)valueCell:(UITableView *)table title:(NSString *)title value:(NSString *)value {UITableViewCell *cell = SGDequeueCell(table, @"value");- CGFloat card = table.bounds.size.width - table.layoutMargins.left - table.layoutMargins.right;- UIView *accessory = valueAndChevron(value);- CGFloat titleWidth = ceil([title sizeWithAttributes:@{NSFontAttributeName: SGTitleFont()}].width);- BOOL fits = 16 + titleWidth + 16 + accessory.bounds.size.width + 16 <= card;- SGFillCell(cell, title, fits ? nil : value, nil, nil);- cell.accessoryView = fits ? accessory : SGChevronView();+ [self fillHead:cell title:title subtitle:value];+ cell.accessoryView = SGChevronView();cell.accessibilityValue = value;cell.selectionStyle = UITableViewCellSelectionStyleDefault;- cell.separatorInset = UIEdgeInsetsMake(0, 16, 0, 0);return cell;}@@ -737,6 +707,7 @@ static UIView *valueAndChevron(NSString *text) {}// Written into the cell rather than reloaded, so the switch beside it is never swapped under a finger.+// The status wraps, so the row's height is measured again without reloading it.- (void)showStatus {UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];UIListContentConfiguration *content = (UIListContentConfiguration *)cell.contentConfiguration;@@ -744,6 +715,7 @@ static UIView *valueAndChevron(NSString *text) {if (!content || [content.secondaryText isEqualToString:status]) return;content.secondaryText = status;cell.contentConfiguration = content;+ [UIView performWithoutAnimation:^{ [self.tableView performBatchUpdates:nil completion:nil]; }];}- (void)confirmReset {diff --git a/tweak/Sources/Shared/Haptics/Haptics.h b/tweak/Sources/Shared/Haptics/Haptics.hindex e43c3c5f..83cb01e8 100644--- a/tweak/Sources/Shared/Haptics/Haptics.h+++ b/tweak/Sources/Shared/Haptics/Haptics.h@@ -106,5 +106,3 @@ SGMusicFollows SGMusicHapticsFollows(void);// 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 main page's Vibrations row reads out: which of the two are on.-NSString *SGVibrationsSummary(void);diff --git a/tweak/Sources/Shared/Haptics/HapticsSettings.m b/tweak/Sources/Shared/Haptics/HapticsSettings.mindex 7995987e..24153f1b 100644--- a/tweak/Sources/Shared/Haptics/HapticsSettings.m+++ b/tweak/Sources/Shared/Haptics/HapticsSettings.m@@ -228,8 +228,3 @@ UIViewController *SGVibrationsSettingsPage(void) {return page;}-NSString *SGVibrationsSummary(void) {- BOOL controls = SGEnabled(SGKeyControlHaptics), music = SGMusicHapticsOn() || SGMusicHapticsInBackground();- if (controls && music) return @"On";- return controls ? @"Controls" : music ? @"Music Haptics" : @"Off";-}diff --git a/tweak/Sources/Shared/LiveActivity/LiveActivity.h b/tweak/Sources/Shared/LiveActivity/LiveActivity.hindex 3928840e..621ffd77 100644--- a/tweak/Sources/Shared/LiveActivity/LiveActivity.h+++ b/tweak/Sources/Shared/LiveActivity/LiveActivity.h@@ -58,5 +58,3 @@ void SGSetLiveActivityEnabled(BOOL on);@class UIViewController;// The Live Activity page: its switch, which view it shows, and the lyrics' translation and size.UIViewController *SGLiveActivitySettingsPage(void);-// What the root's row reads out beside its chevron: the view shown, or Off.-NSString *SGLiveActivitySummary(void);diff --git a/tweak/Sources/Shared/LiveActivity/LiveActivitySettings.m b/tweak/Sources/Shared/LiveActivity/LiveActivitySettings.mindex a4407c02..77a335d2 100644--- a/tweak/Sources/Shared/LiveActivity/LiveActivitySettings.m+++ b/tweak/Sources/Shared/LiveActivity/LiveActivitySettings.m@@ -27,10 +27,3 @@ UIViewController *SGLiveActivitySettingsPage(void) {@"How long the sound fades before a sleep timer pauses Spotify: the one set from the Timer tab, the Sleep Timer shortcut or Control Center, and Spotify's own from the player's ⋯ menu."),] footer:nil];}--NSString *SGLiveActivitySummary(void) {- if (!SGFlag(SGKeyLiveActivity, NO)) return @"Off";- NSInteger index = SGInt(SGKeyLiveActivityView, SGLiveActivityLyrics);- NSArray<NSString *> *names = viewNames();- return index >= 0 && index < (NSInteger)names.count ? names[index] : names.firstObject;-}