Uses alternate app icon for AltStore in My Apps, if one is chosen

This commit is contained in:
Riley Testut
2024-02-15 14:19:34 -06:00
committed by Magesh K
parent b8b32d501c
commit ac62612a18
3 changed files with 58 additions and 0 deletions

View File

@@ -13,6 +13,11 @@ import AltSign
import AltStoreCore
import Roxas
extension UIApplication
{
static let didChangeAppIconNotification = Notification.Name("io.altstore.AppManager.didChangeAppIcon")
}
private final class AltIcon: Decodable
{
var name: String
@@ -190,6 +195,10 @@ extension AltAppIconsViewController
alertController.addAction(.ok)
self.present(alertController, animated: true)
}
else
{
NotificationCenter.default.post(name: UIApplication.didChangeAppIconNotification, object: icon)
}
if let selectedIndexPath = self.collectionView.indexPathsForSelectedItems?.first
{