mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
SpotifyHidePremium
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import Orion
|
||||
import UIKit
|
||||
|
||||
class UITabBarHook: ClassHook<UITabBar> {
|
||||
|
||||
// there is only one UITabBar, so no problem
|
||||
func items() -> [UITabBarItem] {
|
||||
return Array(orig.items().prefix(3))
|
||||
}
|
||||
}
|
||||
|
||||
class UITabBarButtonLabelHook: ClassHook<UIView> {
|
||||
|
||||
static let targetName = "UITabBarButtonLabel"
|
||||
|
||||
func text() -> String {
|
||||
|
||||
let text = orig.text()
|
||||
|
||||
if text == "Premium" {
|
||||
target.superview?.removeFromSuperview()
|
||||
}
|
||||
|
||||
return text
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user