Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
// The native look's navbar: Spotify's own tab bar composed (Navbar.x, hooked from TabBarHooks.x): an
// ordered list of entries, each a dictionary. An entry with a URI is a tab of the mod's own; one without names
// one of Spotify's, by the label under its icon. No list at all is Spotify's order, all shown.
#import <UIKit/UIKit.h>
#define SGKeyNavbar @"spotifyglass.navbar"
extern NSString *const SGNavbarID; // NSString, the entry's identity
extern NSString *const SGNavbarTitle; // NSString, the name in the settings list and under the icon
extern NSString *const SGNavbarURI; // NSString, the mod's own tabs only: what a tap opens
extern NSString *const SGNavbarIcon; // NSString, an SPTEncoreIcon class method such as "podcasts", or an SF Symbol
extern NSString *const SGNavbarIconSet; // NSString, SGTabIconSetSymbols when the icon is an SF Symbol; none is Encore
extern NSString *const SGNavbarHidden; // NSNumber
NSArray<NSDictionary *> *SGNavbarLayout(void);
void SGSetNavbarLayout(NSArray<NSDictionary *> *layout);
// The tabs set apart at the trailing end of the bar (Split tabs), by their entries' identities.
NSArray<NSString *> *SGNavbarSplit(void);
void SGSetNavbarSplit(NSArray<NSString *> *split);
// Spotify's own tabs in Spotify's order, as Navbar.x last saw them on the bar.
NSArray<NSString *> *SGNavbarStock(void);
void SGSetNavbarStock(NSArray<NSString *> *stock);
// Navbar.x, called from the tab bar's layout passes in TabBarHooks.x.
void SGComposeTabBar(UIView *tabBar);
void SGLogTabBarRow(UIView *tabBar);
// Lays the bar out again after the Navbar page changes something, so it does not wait for a touch.
void SGRefreshTabBar(void);
UIViewController *SGNavbarSettingsPage(void); // the tab editor, in Mod Settings
UIViewController *SGNavbarEditorPage(void); // the tab editor alone, for the welcome tour