mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-20 08:02:16 +00:00
test x555555
This commit is contained in:
parent
861cac921f
commit
54203e3440
2 changed files with 2 additions and 4 deletions
|
|
@ -55,15 +55,14 @@ struct SettingsViewAlternateAppIconPicker: View {
|
|||
}
|
||||
Spacer()
|
||||
}
|
||||
.modifier(HideToolbarModifier())
|
||||
}
|
||||
|
||||
private func setAppIcon(named iconName: String) {
|
||||
if UIApplication.shared.supportsAlternateIcons {
|
||||
UIApplication.shared.setAlternateIconName(iconName == "Default" ? nil : "AppIcon_\(iconName)", completionHandler: { error in
|
||||
isPresented = false
|
||||
if let error {
|
||||
Logger.shared.log("Failed to set alternate icon: \(error.localizedDescription)", type: .error)
|
||||
if let error = error {
|
||||
Logger.shared.log("Failed to set alternate icon: \(error.localizedDescription)", type: "Error")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,6 +130,5 @@ struct SettingsViewGeneral: View {
|
|||
SettingsViewAlternateAppIconPicker(isPresented: $showAppIconPicker)
|
||||
}
|
||||
}
|
||||
.modifier(HideToolbarModifier())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue