From ab99ef9a0a8a392cde124993a71f7c1140d503be Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 12 Jun 2024 20:41:19 +0200 Subject: [PATCH 1/2] Fix --- IceCubesApp/App/Tabs/Settings/SettingsTab.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IceCubesApp/App/Tabs/Settings/SettingsTab.swift b/IceCubesApp/App/Tabs/Settings/SettingsTab.swift index b8849139..7f9a822a 100644 --- a/IceCubesApp/App/Tabs/Settings/SettingsTab.swift +++ b/IceCubesApp/App/Tabs/Settings/SettingsTab.swift @@ -265,7 +265,7 @@ struct SettingsTabs: View { } icon: { let icon = IconSelectorView.Icon(string: UIApplication.shared.alternateIconName ?? "AppIcon") if let image: UIImage = .init(named: icon.appIconName) { - Image(uiImage: .init(named: icon.appIconName)!) + Image(uiImage: image) .resizable() .frame(width: 25, height: 25) .cornerRadius(4) From 551697eb2c0c6f4d04bcf004a70af2bc5286a0ca Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 12 Jun 2024 20:51:08 +0200 Subject: [PATCH 2/2] Refix Introspect --- IceCubesApp/App/Main/AppView.swift | 2 +- Packages/Timeline/Sources/Timeline/View/TimelineView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IceCubesApp/App/Main/AppView.swift b/IceCubesApp/App/Main/AppView.swift index 95b14d1b..ff72955c 100644 --- a/IceCubesApp/App/Main/AppView.swift +++ b/IceCubesApp/App/Main/AppView.swift @@ -122,7 +122,7 @@ struct AppView: View { .tag(tab) } } - .introspect(.tabView, on: .iOS(.v18)) { (tabview: UITabBarController) in + .introspect(.tabView, on: .iOS(.v17, .v18)) { (tabview: UITabBarController) in tabview.tabBar.isHidden = horizontalSizeClass == .regular tabview.customizableViewControllers = [] tabview.moreNavigationController.isNavigationBarHidden = true diff --git a/Packages/Timeline/Sources/Timeline/View/TimelineView.swift b/Packages/Timeline/Sources/Timeline/View/TimelineView.swift index 8d86ebf8..ab92f166 100644 --- a/Packages/Timeline/Sources/Timeline/View/TimelineView.swift +++ b/Packages/Timeline/Sources/Timeline/View/TimelineView.swift @@ -68,7 +68,7 @@ public struct TimelineView: View { .scrollContentBackground(.hidden) .background(theme.primaryBackgroundColor) #endif - .introspect(.list, on: .iOS(.v18)) { (collectionView: UICollectionView) in + .introspect(.list, on: .iOS(.v17, .v18)) { (collectionView: UICollectionView) in DispatchQueue.main.async { self.collectionView = collectionView }