mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Remove unnecessary code
This commit is contained in:
parent
d2a71a1db6
commit
cf895424d4
1 changed files with 0 additions and 22 deletions
22
Tweak.xm
22
Tweak.xm
|
|
@ -252,25 +252,3 @@ static BOOL shouldResizeIcon = NO;
|
|||
%orig(alignment);
|
||||
}
|
||||
%end
|
||||
|
||||
// Center speed controls indicator/reset button
|
||||
@interface YTTransportControlsButtonView : UIView
|
||||
@end
|
||||
|
||||
@interface YTPlaybackButton : UIControl
|
||||
@end
|
||||
|
||||
@interface YTMainAppControlsOverlayView : UIView
|
||||
@property (nonatomic, strong, readwrite) YTTransportControlsButtonView *resetPlaybackRateButtonView;
|
||||
@property (nonatomic, assign, readonly) YTPlaybackButton *playPauseButton;
|
||||
@end
|
||||
|
||||
%hook YTMainAppControlsOverlayView
|
||||
- (void)setUYouContainer:(UIStackView *)uYouContainer {
|
||||
%orig;
|
||||
|
||||
if (self.playPauseButton && self.resetPlaybackRateButtonView && [[NSUserDefaults standardUserDefaults] boolForKey:@"showPlaybackRate"]) {
|
||||
[self.resetPlaybackRateButtonView.centerXAnchor constraintEqualToAnchor:self.playPauseButton.centerXAnchor].active = YES;
|
||||
}
|
||||
}
|
||||
%end
|
||||
Loading…
Reference in a new issue