Compile on iOS 18

This commit is contained in:
Thomas Ricouard 2024-06-11 08:08:25 +02:00
parent a88b9a7fd9
commit 7321b26f00
3 changed files with 10 additions and 8 deletions

View file

@ -3,10 +3,10 @@
{
"identity" : "bodega",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mergesort/Bodega",
"location" : "https://github.com/Dimillian/Bodega",
"state" : {
"revision" : "f0554077c178088ba11557bbdbb71775cc6a1b84",
"version" : "2.1.0"
"branch" : "main",
"revision" : "a144ed8afdd760b65b6b9a136ba8bb75cd19387e"
}
},
{

View file

@ -264,10 +264,12 @@ struct SettingsTabs: View {
Text("settings.app.icon")
} icon: {
let icon = IconSelectorView.Icon(string: UIApplication.shared.alternateIconName ?? "AppIcon")
Image(uiImage: .init(named: icon.appIconName)!)
.resizable()
.frame(width: 25, height: 25)
.cornerRadius(4)
if let image = UIImage(named: icon.appIconName) {
Image(uiImage: image)
.resizable()
.frame(width: 25, height: 25)
.cornerRadius(4)
}
}
}
#endif

View file

@ -23,7 +23,7 @@ let package = Package(
.package(name: "StatusKit", path: "../StatusKit"),
.package(name: "DesignSystem", path: "../DesignSystem"),
.package(url: "https://github.com/siteline/SwiftUI-Introspect.git", from: "1.0.0"),
.package(url: "https://github.com/mergesort/Bodega", exact: "2.1.0"),
.package(url: "https://github.com/Dimillian/Bodega", branch: "main"),
],
targets: [
.target(