pls pls pls b fixed

This commit is contained in:
neon443
2025-05-15 18:00:22 +01:00
parent 565341c3d0
commit e9d49cc137
3 changed files with 16 additions and 16 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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 {