From e9d49cc137fad9332c60a42af973470682d85a3f Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Thu, 15 May 2025 18:00:22 +0100 Subject: [PATCH] pls pls pls b fixed --- Config.xcconfig | 2 +- NearFuture.xcodeproj/project.pbxproj | 2 ++ NearFuture/Views/Settings/SettingsView.swift | 28 +++++++++----------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Config.xcconfig b/Config.xcconfig index b1dac91..1287a0a 100644 --- a/Config.xcconfig +++ b/Config.xcconfig @@ -12,6 +12,6 @@ TEAM_ID = 8JGND254B7 BUNDLE_ID = com.neon443.NearFuture BUNDLE_ID_WIDGETS = com.neon443.NearFuture.widgets GROUP_ID = group.NearFuture -VERSION = 4.3.6 +VERSION = 4.3.7 NAME = Near Future BUILD_NUMBER = 1 diff --git a/NearFuture.xcodeproj/project.pbxproj b/NearFuture.xcodeproj/project.pbxproj index 9fedb30..c3df75a 100644 --- a/NearFuture.xcodeproj/project.pbxproj +++ b/NearFuture.xcodeproj/project.pbxproj @@ -711,6 +711,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */; buildSettings = { + ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "bloo blue green pink purple red yellow"; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CLANG_USE_OPTIMIZATION_PROFILE = YES; @@ -763,6 +764,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = A90FDE222DC0D4310012790C /* Config.xcconfig */; buildSettings = { + ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "bloo blue green pink purple red yellow"; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CLANG_USE_OPTIMIZATION_PROFILE = YES; diff --git a/NearFuture/Views/Settings/SettingsView.swift b/NearFuture/Views/Settings/SettingsView.swift index 14aef6a..9c3fcd7 100644 --- a/NearFuture/Views/Settings/SettingsView.swift +++ b/NearFuture/Views/Settings/SettingsView.swift @@ -41,21 +41,19 @@ struct SettingsView: View { } func changeIcon(to: String) { - UIApplication.shared.setAlternateIconName(to) -// guard UIApplication.shared.supportsAlternateIcons else { -// print("doesnt tsupport alternate icons") -// return -// } -// print(UIApplication.shared.supportsAlternateIcons) -// guard !(to == "orange") else { -// UIApplication.shared.setAlternateIconName(nil) { error in -// print(error as Any) -// } -// return -// } -// UIApplication.shared.setAlternateIconName(to) { error in -// print(error as Any) -// } + guard UIApplication.shared.supportsAlternateIcons else { + print("doesnt tsupport alternate icons") + return + } + guard to != "orange" else { + UIApplication.shared.setAlternateIconName(nil) { error in + print(error as Any) + } + return + } + UIApplication.shared.setAlternateIconName(to) { error in + print(error as Any) + } } var body: some View {