mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
pls pls pls b fixed
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user