From 8da3e55eefcd3854d34b7c94ed1e4e0bd7b6316a Mon Sep 17 00:00:00 2001 From: blackxfiied <41133734+blackxfiied@users.noreply.github.com> Date: Tue, 21 Nov 2023 16:27:45 +0800 Subject: [PATCH] Fixed a bug where scrolling too fast in LibraryView would crash Mythic --- Mythic.xcodeproj/project.pbxproj | 4 ++-- Mythic/Views/Base/GameList/GameList.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mythic.xcodeproj/project.pbxproj b/Mythic.xcodeproj/project.pbxproj index 3d65534f..3d28664a 100644 --- a/Mythic.xcodeproj/project.pbxproj +++ b/Mythic.xcodeproj/project.pbxproj @@ -695,7 +695,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 2007; + CURRENT_PROJECT_VERSION = 2008; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"Mythic/Preview Content\""; DEVELOPMENT_TEAM = 67ZBY275P8; @@ -734,7 +734,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 2007; + CURRENT_PROJECT_VERSION = 2008; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"Mythic/Preview Content\""; DEVELOPMENT_TEAM = 67ZBY275P8; diff --git a/Mythic/Views/Base/GameList/GameList.swift b/Mythic/Views/Base/GameList/GameList.swift index 6db6cd5e..2efb38c3 100644 --- a/Mythic/Views/Base/GameList/GameList.swift +++ b/Mythic/Views/Base/GameList/GameList.swift @@ -112,7 +112,7 @@ struct GameListView: View { .offset(y: -5) VStack { - CachedAsyncImage(url: URL(string: gameThumbnails[game.appName]!), urlCache: imageCache) { phase in + CachedAsyncImage(url: URL(string: gameThumbnails[game.appName] ?? String()), urlCache: imageCache) { phase in switch phase { case .empty: ProgressView()