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
748 B
Raw Blame
// A switch that glows: a capsule whose rim is a slowly circling rainbow with a soft glow of the same
// colors, 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, 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 both
// alike. The rim stops circling under Reduce Motion, and the glow is left out under Reduce Transparency.
// Threading: main thread only.
#import <UIKit/UIKit.h>

@interface SGGlowSwitch : UIControl
@property (nonatomic, getter=isOn) BOOL on;
- (void)setOn:(BOOL)on animated:(BOOL)animated;
@end