From b7ce9648d5d3ee7296fc4cdc01e5c5982b9811eb Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Tue, 6 Dec 2022 09:10:34 +0100 Subject: [PATCH] Fix icon in readme --- IceCubesApp/App/Tabs/Settings/IconSelectorView.swift | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IceCubesApp/App/Tabs/Settings/IconSelectorView.swift b/IceCubesApp/App/Tabs/Settings/IconSelectorView.swift index e8267594..03d9e8ee 100644 --- a/IceCubesApp/App/Tabs/Settings/IconSelectorView.swift +++ b/IceCubesApp/App/Tabs/Settings/IconSelectorView.swift @@ -31,7 +31,7 @@ struct IconSelectorView: View { } } label: { ZStack(alignment: .bottomTrailing) { - Image(uiImage: .init(named: icon.rawValue)!) + Image(uiImage: .init(named: icon.rawValue) ?? .init()) .resizable() .aspectRatio(contentMode: .fit) .frame(minHeight: 125, maxHeight: 1024) diff --git a/README.md b/README.md index 8997371c..a7d786c4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # IceCubesApp A SwiftUI Mastodon client -![Icon](IceCubesApp/Resources/Assets.xcassets/AppIcon.appiconset/icon.png?) +![Icon](IceCubesApp/Assets.xcassets/AppIcon.appiconset/icon.png?)