From 7070ef51e7dbc8e5ec61876ed1bbd3f93cb03107 Mon Sep 17 00:00:00 2001 From: eevee Date: Thu, 25 Jul 2024 19:39:57 +0300 Subject: [PATCH] likely fix for white popups on ipad (#265) --- Sources/EeveeSpotify/DarkPopUps.x.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/EeveeSpotify/DarkPopUps.x.swift b/Sources/EeveeSpotify/DarkPopUps.x.swift index 3866f6f..d356645 100644 --- a/Sources/EeveeSpotify/DarkPopUps.x.swift +++ b/Sources/EeveeSpotify/DarkPopUps.x.swift @@ -36,8 +36,8 @@ class SPTEncorePopUpContainerHook: ClassHook { return orig.containedView() } - func supportedInterfaceOrientations() -> UIInterfaceOrientationMask { + func viewDidAppear(_ animated: Bool) { + orig.viewDidAppear(animated) containedView().uiView().backgroundColor = UIColor(Color(hex: "#242424")) - return orig.supportedInterfaceOrientations() } }