diff --git a/Zockerhoehle/Views/ConsoleLibraryView.swift b/Zockerhoehle/Views/ConsoleLibraryView.swift index 893cf85..8411cdc 100644 --- a/Zockerhoehle/Views/ConsoleLibraryView.swift +++ b/Zockerhoehle/Views/ConsoleLibraryView.swift @@ -99,7 +99,6 @@ struct ConsoleLibraryView : View { GridItem(.adaptive(minimum: 100)) ] - let defaultImage = UIImage() var body: some View { VStack { @@ -117,31 +116,7 @@ struct ConsoleLibraryView : View { LazyVGrid(columns: columns, spacing: 20) { ForEach(games.filter({$0.inWishlist == self.showWishlist})) { game in NavigationLink(destination: GameDetailView(game: game)) { - if ICloudManager.fileExists(at: game.cover_icloud_path) { - Image(uiImage: ICloudManager.imageFrom(path: game.cover_icloud_path) ?? defaultImage) - .resizable() - .scaledToFit() - .cornerRadius(5) - }else{ - Group { - Text(game.name) - .font(.caption) - .foregroundColor(Color.black) - .padding() - .multilineTextAlignment(.center) - } - .frame(maxWidth: .infinity, maxHeight: .infinity) - .background(Color.gray) - .cornerRadius(5) - } - - -// if game.isDigital { -// Image("digitalGame") -// .resizable() -// .aspectRatio(contentMode: .fit) -// .frame(height: 15) -// } + GameView(game: game) } } }.padding()