SpotifyHidePremium

This commit is contained in:
eevee
2024-04-22 17:30:51 +03:00
parent 763ac1c978
commit de46da7055
2 changed files with 26 additions and 2 deletions
@@ -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
}
}