From 2b5615f3fadfc8a81f70681d9cb04f8e3fa12b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dr=2E=20Julian-Steffen=20M=C3=BCller?= Date: Thu, 24 Jun 2021 16:23:09 +0200 Subject: [PATCH] Added realse and pickup dates. Games no Always go to DetailView and not editmode --- .../CoreDataSample.dataset/Contents.json | 2 +- .../libExp_2021-05-20T16:53:25+0200.json | 1 - .../libExp_2021-05-27T20:52:02+0200.json | 1373 +++++++++++++++++ Zockerhoehle/CDModel/Game+CoreDataClass.swift | 3 + .../CDModel/Game+CoreDataProperties.swift | 1 - Zockerhoehle/Utils/LibraryImport.swift | 8 +- Zockerhoehle/Views/GameDetailView.swift | 14 +- Zockerhoehle/Views/Overview.swift | 4 +- 8 files changed, 1396 insertions(+), 10 deletions(-) delete mode 100644 Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/libExp_2021-05-20T16:53:25+0200.json create mode 100644 Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/libExp_2021-05-27T20:52:02+0200.json diff --git a/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/Contents.json b/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/Contents.json index 1d97559..612ccf4 100644 --- a/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/Contents.json +++ b/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/Contents.json @@ -1,7 +1,7 @@ { "data" : [ { - "filename" : "libExp_2021-05-20T16:53:25+0200.json", + "filename" : "libExp_2021-05-27T20:52:02+0200.json", "idiom" : "universal", "universal-type-identifier" : "public.json" } diff --git a/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/libExp_2021-05-20T16:53:25+0200.json b/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/libExp_2021-05-20T16:53:25+0200.json deleted file mode 100644 index a5368aa..0000000 --- a/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/libExp_2021-05-20T16:53:25+0200.json +++ /dev/null @@ -1 +0,0 @@ -{"games":[{"uuid":"5090F647-B96C-4431-960F-FEA03B6583C5","finishedDate":null,"name":"Cyberpunk","lentTo":"","isFinished":false,"console":"420CAC69-1856-4128-9E5A-63D258F4D0B2","notes":"","publisher":"","isDigital":true,"cover_icloud_path":"games\/xbox_one\/cyberpunk.jpg","inWishlist":false,"createdAt":"2021-05-20T15:42:51+0200","pickupDescription":""},{"uuid":"7FB711B7-8A85-409B-A11F-BA4F572F8D24","finishedDate":null,"name":"1080","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/1080.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"4370F2B3-61D7-44F1-A6F1-BD235A54F6A5","finishedDate":null,"name":"Wayne Gretzky‘s 3D Hockey 98","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/wayne_gretzkys_3dhockey_98.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"CB041D88-EC2F-469E-A9FA-727036176EED","finishedDate":null,"name":"Star Wars: Roque Squadron","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/starwars_rogue_squadron.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"68076ECF-22E6-4F71-B160-103EFEA88234","finishedDate":null,"name":"Resident Evil Outbreak","lentTo":"","isFinished":false,"console":"4C29F7C2-2F42-4479-8D81-D981B87E029B","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps2\/resident_evil_outbreak.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"4E05130C-DFB3-461D-9DDC-ED85AEEA531F","finishedDate":null,"name":"God of War 2","lentTo":"","isFinished":false,"console":"4C29F7C2-2F42-4479-8D81-D981B87E029B","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps2\/god_of_war_2.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"37633F64-1A84-446A-9209-AE02A506CAA3","finishedDate":null,"name":"Gears of War 4","lentTo":"","isFinished":false,"console":"420CAC69-1856-4128-9E5A-63D258F4D0B2","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/xbox_one\/gears_of_war_4.jpg","inWishlist":false,"createdAt":"2021-05-20T15:53:57+0200","pickupDescription":""},{"uuid":"20D48A1A-F190-4D5B-B0BF-F4F34C4F527C","finishedDate":null,"name":"Monkey Island 4 - Escape from Monkey Island","lentTo":"","isFinished":false,"console":"4C29F7C2-2F42-4479-8D81-D981B87E029B","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps2\/monkey_island_4.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"C15A44F6-0B91-47BB-8EC7-46397CF7D9C0","finishedDate":null,"name":"Okami","lentTo":"","isFinished":false,"console":"4C29F7C2-2F42-4479-8D81-D981B87E029B","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps2\/okami.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"DA9C81DF-AE72-4ADD-9AD8-B412E4C54DB6","finishedDate":null,"name":"Resident Evil 2","lentTo":"","isFinished":false,"console":"E56B6CC8-D449-4C79-984C-FE6D9D826A3E","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps1\/resident_evil_2.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"6B089B8E-1F34-4137-98CE-662BEB1636A2","finishedDate":null,"name":"Mario Kart 64","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/mario_kart_64.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"71CEAC01-F873-45FC-8300-C5C0C342470A","finishedDate":null,"name":"Wonder Boy - The Dragon‘s Trap","lentTo":"","isFinished":false,"console":"9FA6F10A-F5CF-4105-83E8-DE666C91D6D6","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/switch\/wonderboy_dragons_trap.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"5C5DF550-ED25-4047-8FDD-7B14DD1CE495","finishedDate":null,"name":"GTA - Vice City Stories","lentTo":"","isFinished":false,"console":"4C29F7C2-2F42-4479-8D81-D981B87E029B","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps2\/gta_vice_city_stories.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"5B67C345-2664-43B7-AF09-B8387C061457","finishedDate":null,"name":"Super Bomberman R","lentTo":"","isFinished":false,"console":"9FA6F10A-F5CF-4105-83E8-DE666C91D6D6","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/switch\/super_bomberman_r.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"619435F9-2F4C-4E75-B1B5-8EFB60A6B7C5","finishedDate":null,"name":"Gears of War 5","lentTo":"","isFinished":false,"console":"420CAC69-1856-4128-9E5A-63D258F4D0B2","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/xbox_one\/gears5.jpg","inWishlist":false,"createdAt":"2021-05-20T15:54:02+0200","pickupDescription":""},{"uuid":"FDD71E4C-5194-4934-B1D5-C8503DEC75F7","finishedDate":null,"name":"Monster Boy and the Cursed Kingdom","lentTo":"","isFinished":false,"console":"9FA6F10A-F5CF-4105-83E8-DE666C91D6D6","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/switch\/monsterboy_and_the_cursed_kingdom.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"7F1DD3EA-73D8-41CC-AF4C-9AE35048F000","finishedDate":null,"name":"God of War","lentTo":"","isFinished":false,"console":"4C29F7C2-2F42-4479-8D81-D981B87E029B","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps2\/god_of_war.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"46197A88-6719-4D11-9828-F063BEB4854C","finishedDate":null,"name":"Thimbleweed Park","lentTo":"","isFinished":false,"console":"9FA6F10A-F5CF-4105-83E8-DE666C91D6D6","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/switch\/thimbleweed_park.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"C6FB9066-685B-4720-8798-BFA7B364E350","finishedDate":null,"name":"Donkey Kong 64","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/donkeykong64.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"5F89FC5A-128C-45A5-8B93-8A90738C649D","finishedDate":null,"name":"Turok","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/turok.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"43D2F3D9-3FD9-4888-AC4E-F9194EDC6516","finishedDate":621178140,"name":"Final Fantasy 7","lentTo":"","isFinished":true,"console":"E56B6CC8-D449-4C79-984C-FE6D9D826A3E","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps1\/finalfantasy7.jpg","inWishlist":false,"createdAt":"2020-06-02T13:42:00+0200","pickupDescription":"Köln Urlaub"},{"uuid":"A9408A2F-B83F-4204-8503-2BBA8140BFA6","finishedDate":null,"name":"Stars Wars - Shadows of the Empire","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/starwars_shadow_of_the_empire.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"D8852091-D8E2-4788-BD98-E2212A0DC570","finishedDate":null,"name":"Wave Race 64","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/waverace64.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"CA5C5C71-5475-46AF-AF38-4D4AE1FF091C","finishedDate":null,"name":"Collection of Mana","lentTo":"","isFinished":false,"console":"9FA6F10A-F5CF-4105-83E8-DE666C91D6D6","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/switch\/collection_of_mana.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"20C300B7-576E-4A81-B10D-8F2639EE6250","finishedDate":null,"name":"Mario Kart 8 Deluxe","lentTo":"","isFinished":false,"console":"9FA6F10A-F5CF-4105-83E8-DE666C91D6D6","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/switch\/mario_kart_8_deluxe.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"42C954F2-8E52-4F7A-B539-9EBE2487E990","finishedDate":null,"name":"Banjo-Kazooie","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/banjo_kazooie.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"10711B93-DB75-47AC-A4E4-5A93F7ACFFCE","finishedDate":null,"name":"International Superstar Soccer 64","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/international_superstar_soccer_64.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"4601A22E-3022-4F2C-964F-B1B727B862F2","finishedDate":null,"name":"ICO","lentTo":"","isFinished":false,"console":"4C29F7C2-2F42-4479-8D81-D981B87E029B","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps2\/ico.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"EF86ECAA-38F1-40B6-9CB5-06B6D93351B0","finishedDate":null,"name":"Mario 64 JPN","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"","inWishlist":false,"createdAt":"2020-06-02T14:21:00+0200","pickupDescription":"Köln Urlaub"},{"uuid":"EC2DA0AE-EDA9-499F-B379-813B56163252","finishedDate":null,"name":"South Park","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/south_park.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"55FB0658-3176-4510-9FEC-AB89A62D3D91","finishedDate":null,"name":"Zelda: Breath of the Wild","lentTo":"","isFinished":false,"console":"9FA6F10A-F5CF-4105-83E8-DE666C91D6D6","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/switch\/zelda_breath_of_the_wild.jpg","inWishlist":false,"createdAt":"2021-05-12T13:42:00+0200","pickupDescription":""},{"uuid":"A6ABC431-36F6-4FB9-AC85-700E71C02D5F","finishedDate":null,"name":"Shadow of the Collossus","lentTo":"","isFinished":false,"console":"4C29F7C2-2F42-4479-8D81-D981B87E029B","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps2\/shadow_of_the_collossus.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"923B8C65-4DF8-49B4-9672-F20982749CCB","finishedDate":null,"name":"Mario 64","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/supermario64.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"37F3C5A6-9FEA-4ADE-AC81-812BC775B58E","finishedDate":null,"name":"Zelda - Ocarina of Time","lentTo":"","isFinished":false,"console":"46547BAC-1980-4022-93D8-F0F241EE4174","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/n64\/ocarina_of_time.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"6FC6C0EA-C6D2-40EA-A7EA-D11F4E403F31","finishedDate":null,"name":"Resident Evil 3","lentTo":"","isFinished":false,"console":"E56B6CC8-D449-4C79-984C-FE6D9D826A3E","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps1\/resident_evil_3.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"39E8AAB8-06D0-4180-AA25-9D8D34C8F5B6","finishedDate":null,"name":"Zelda: Links Awakening","lentTo":"","isFinished":false,"console":"9FA6F10A-F5CF-4105-83E8-DE666C91D6D6","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/switch\/links_awakening.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""},{"uuid":"8C6E46A1-3060-4946-8FB5-F88831F663A7","finishedDate":null,"name":"Black","lentTo":"","isFinished":false,"console":"4C29F7C2-2F42-4479-8D81-D981B87E029B","notes":"","publisher":"","isDigital":false,"cover_icloud_path":"games\/ps2\/black.jpg","inWishlist":false,"createdAt":"2021-05-19T13:42:05+0200","pickupDescription":""}],"consoles":[{"manufacturer":"Sony","shortName":"PS5","uuid":"1725A045-82D2-44E5-8A8B-E647073B858D","releaseDate":626884620,"accessories":[],"games":[],"logo_icloud_path":"consoles\/ps5.png","name":"Playstation 5"},{"manufacturer":"Nintendo","shortName":"Switch","uuid":"9FA6F10A-F5CF-4105-83E8-DE666C91D6D6","releaseDate":510224820,"accessories":[],"games":["55FB0658-3176-4510-9FEC-AB89A62D3D91","20C300B7-576E-4A81-B10D-8F2639EE6250","71CEAC01-F873-45FC-8300-C5C0C342470A","5B67C345-2664-43B7-AF09-B8387C061457","CA5C5C71-5475-46AF-AF38-4D4AE1FF091C","39E8AAB8-06D0-4180-AA25-9D8D34C8F5B6","46197A88-6719-4D11-9828-F063BEB4854C","FDD71E4C-5194-4934-B1D5-C8503DEC75F7"],"logo_icloud_path":"consoles\/nintendo_switch.png","name":"Nintendo Switch"},{"manufacturer":"Microsoft","shortName":"Xbox One","uuid":"420CAC69-1856-4128-9E5A-63D258F4D0B2","releaseDate":406824060,"accessories":[],"games":["5090F647-B96C-4431-960F-FEA03B6583C5","619435F9-2F4C-4E75-B1B5-8EFB60A6B7C5","37633F64-1A84-446A-9209-AE02A506CAA3"],"logo_icloud_path":"consoles\/xbox_one.jpg","name":"Xbox One"},{"manufacturer":"Sony","shortName":"PS 2","uuid":"4C29F7C2-2F42-4479-8D81-D981B87E029B","releaseDate":-26126580,"accessories":[],"games":["4601A22E-3022-4F2C-964F-B1B727B862F2","20D48A1A-F190-4D5B-B0BF-F4F34C4F527C","A6ABC431-36F6-4FB9-AC85-700E71C02D5F","68076ECF-22E6-4F71-B160-103EFEA88234","4E05130C-DFB3-461D-9DDC-ED85AEEA531F","8C6E46A1-3060-4946-8FB5-F88831F663A7","C15A44F6-0B91-47BB-8EC7-46397CF7D9C0","7F1DD3EA-73D8-41CC-AF4C-9AE35048F000","5C5DF550-ED25-4047-8FDD-7B14DD1CE495"],"logo_icloud_path":"consoles\/ps2.png","name":"Playstation 2"},{"manufacturer":"Nintendo","shortName":"N64","uuid":"46547BAC-1980-4022-93D8-F0F241EE4174","releaseDate":-142770240,"accessories":[],"games":["37F3C5A6-9FEA-4ADE-AC81-812BC775B58E","6B089B8E-1F34-4137-98CE-662BEB1636A2","D8852091-D8E2-4788-BD98-E2212A0DC570","923B8C65-4DF8-49B4-9672-F20982749CCB","EC2DA0AE-EDA9-499F-B379-813B56163252","4370F2B3-61D7-44F1-A6F1-BD235A54F6A5","5F89FC5A-128C-45A5-8B93-8A90738C649D","EF86ECAA-38F1-40B6-9CB5-06B6D93351B0","CB041D88-EC2F-469E-A9FA-727036176EED","42C954F2-8E52-4F7A-B539-9EBE2487E990","C6FB9066-685B-4720-8798-BFA7B364E350","A9408A2F-B83F-4204-8503-2BBA8140BFA6","7FB711B7-8A85-409B-A11F-BA4F572F8D24","10711B93-DB75-47AC-A4E4-5A93F7ACFFCE"],"logo_icloud_path":"consoles\/n64.png","name":"Nintendo 64"},{"manufacturer":"Sony","shortName":"PS1","uuid":"E56B6CC8-D449-4C79-984C-FE6D9D826A3E","releaseDate":-165912060,"accessories":[],"games":["6FC6C0EA-C6D2-40EA-A7EA-D11F4E403F31","DA9C81DF-AE72-4ADD-9AD8-B412E4C54DB6","43D2F3D9-3FD9-4888-AC4E-F9194EDC6516"],"logo_icloud_path":"","name":"Playstation 1"}],"accessories":[],"gameSeries":[{"games":[],"name":"Star Wars","cover_icloud_path":"game_series\/star_wars.jpg","uuid":"88BF78C1-724C-4DCD-9B66-12ACBF5E5198"},{"games":[],"name":"God of War","cover_icloud_path":"game_series\/god_of_war.jpg","uuid":"C6D2371C-F503-4D1A-90F6-39B216A68A35"},{"games":[],"name":"Legend of Zelda","cover_icloud_path":"game_series\/zelda.png","uuid":"B780AED9-B79D-4C6D-A9E9-DEFC916B6ECE"},{"games":["43D2F3D9-3FD9-4888-AC4E-F9194EDC6516"],"name":"Final Fantasy","cover_icloud_path":"game_series\/final_fantasy.png","uuid":"BEDE406D-E098-4C0E-9031-3D99B3C23432"},{"games":[],"name":"Super Mario","cover_icloud_path":"game_series\/super_mario.png","uuid":"A1D483CF-1DB7-41BF-BAA2-6783BFEA3C2E"},{"games":[],"name":"Resident Evil","cover_icloud_path":"game_series\/resident_evil.png","uuid":"177E067C-FBFA-419D-9E35-11EDE91D520D"}]} \ No newline at end of file diff --git a/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/libExp_2021-05-27T20:52:02+0200.json b/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/libExp_2021-05-27T20:52:02+0200.json new file mode 100644 index 0000000..ce292c3 --- /dev/null +++ b/Zockerhoehle/Assets.xcassets/CoreDataSample.dataset/libExp_2021-05-27T20:52:02+0200.json @@ -0,0 +1,1373 @@ +{ + "games": [ + { + "uuid": "5090F647-B96C-4431-960F-FEA03B6583C5", + "finishedDate": null, + "name": "Cyberpunk", + "lentTo": "", + "isFinished": false, + "console": "420CAC69-1856-4128-9E5A-63D258F4D0B2", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": true, + "cover_icloud_path": "games/xbox_one/cyberpunk.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-20T15:42:51+0200", + "pickupDescription": "" + }, + { + "uuid": "8C6E46A1-3060-4946-8FB5-F88831F663A7", + "finishedDate": null, + "name": "Black", + "lentTo": "", + "isFinished": false, + "console": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps2/black.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "DD125D07-1B6D-4EE9-AE84-B4D6E0214957", + "finishedDate": null, + "name": "Kirbys Adventure", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:06:04+0200", + "pickupDescription": "" + }, + { + "uuid": "5C5DF550-ED25-4047-8FDD-7B14DD1CE495", + "finishedDate": null, + "name": "GTA - Vice City Stories", + "lentTo": "", + "isFinished": false, + "console": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps2/gta_vice_city_stories.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "A9408A2F-B83F-4204-8503-2BBA8140BFA6", + "finishedDate": null, + "name": "Stars Wars - Shadows of the Empire", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/starwars_shadow_of_the_empire.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "68076ECF-22E6-4F71-B160-103EFEA88234", + "finishedDate": null, + "name": "Resident Evil Outbreak", + "lentTo": "", + "isFinished": false, + "console": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps2/resident_evil_outbreak.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "3CD063FB-F3DA-4BD1-BB23-9F7DC6576B20", + "finishedDate": null, + "name": "Chip n Chap Rescue Rangers", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:07:10+0200", + "pickupDescription": "" + }, + { + "uuid": "F1C7382D-3B3E-4F28-BE59-8E8D82E18AB2", + "finishedDate": null, + "name": "Tony Toon Adventures", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:07:21+0200", + "pickupDescription": "" + }, + { + "uuid": "4E05130C-DFB3-461D-9DDC-ED85AEEA531F", + "finishedDate": null, + "name": "God of War 2", + "lentTo": "", + "isFinished": false, + "console": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps2/god_of_war_2.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "A6ABC431-36F6-4FB9-AC85-700E71C02D5F", + "finishedDate": null, + "name": "Shadow of the Collossus", + "lentTo": "", + "isFinished": false, + "console": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps2/shadow_of_the_collossus.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "B92AB87C-C577-4937-A682-C84E4B4D3C61", + "finishedDate": null, + "name": "Tetris", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:06:16+0200", + "pickupDescription": "" + }, + { + "uuid": "42C954F2-8E52-4F7A-B539-9EBE2487E990", + "finishedDate": null, + "name": "Banjo-Kazooie", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/banjo_kazooie.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "20D48A1A-F190-4D5B-B0BF-F4F34C4F527C", + "finishedDate": null, + "name": "Monkey Island 4 - Escape from Monkey Island", + "lentTo": "", + "isFinished": false, + "console": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps2/monkey_island_4.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "DA9C81DF-AE72-4ADD-9AD8-B412E4C54DB6", + "finishedDate": null, + "name": "Resident Evil 2", + "lentTo": "", + "isFinished": false, + "console": "E56B6CC8-D449-4C79-984C-FE6D9D826A3E", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps1/resident_evil_2.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "43D2F3D9-3FD9-4888-AC4E-F9194EDC6516", + "finishedDate": 621178140, + "name": "Final Fantasy 7", + "lentTo": "", + "isFinished": true, + "console": "E56B6CC8-D449-4C79-984C-FE6D9D826A3E", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps1/finalfantasy7.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2020-06-02T13:42:00+0200", + "pickupDescription": "Köln Urlaub" + }, + { + "uuid": "37633F64-1A84-446A-9209-AE02A506CAA3", + "finishedDate": null, + "name": "Gears of War 4", + "lentTo": "", + "isFinished": false, + "console": "420CAC69-1856-4128-9E5A-63D258F4D0B2", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/xbox_one/gears_of_war_4.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-20T15:53:57+0200", + "pickupDescription": "" + }, + { + "uuid": "C820BE49-BFF3-49FB-B4B1-81DA8AEA48D1", + "finishedDate": null, + "name": "Sonic Adventure", + "lentTo": "", + "isFinished": false, + "console": "AE336925-70F7-4655-92C8-2B07E25CBF33", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/dreamcast/sonic_adventure.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:15:15+0200", + "pickupDescription": "" + }, + { + "uuid": "37F3C5A6-9FEA-4ADE-AC81-812BC775B58E", + "finishedDate": null, + "name": "Zelda - Ocarina of Time", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/ocarina_of_time.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "39E8AAB8-06D0-4180-AA25-9D8D34C8F5B6", + "finishedDate": null, + "name": "Zelda: Links Awakening", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/links_awakening.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "619435F9-2F4C-4E75-B1B5-8EFB60A6B7C5", + "finishedDate": null, + "name": "Gears of War 5", + "lentTo": "", + "isFinished": false, + "console": "420CAC69-1856-4128-9E5A-63D258F4D0B2", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/xbox_one/gears5.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-20T15:54:02+0200", + "pickupDescription": "" + }, + { + "uuid": "4370F2B3-61D7-44F1-A6F1-BD235A54F6A5", + "finishedDate": null, + "name": "Wayne Gretzky‘s 3D Hockey 98", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/wayne_gretzkys_3dhockey_98.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "D8852091-D8E2-4788-BD98-E2212A0DC570", + "finishedDate": null, + "name": "Wave Race 64", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/waverace64.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "7FB711B7-8A85-409B-A11F-BA4F572F8D24", + "finishedDate": null, + "name": "1080", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/1080.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "4F1AE5AD-F747-405A-9B93-484A5CAFFCB5", + "finishedDate": null, + "name": "Ton Hawk‘s Pro Skater 2", + "lentTo": "", + "isFinished": false, + "console": "AE336925-70F7-4655-92C8-2B07E25CBF33", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/dreamcast/tony_hawk_pro_sakter_2.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:15:42+0200", + "pickupDescription": "" + }, + { + "uuid": "2CCB095D-FA1F-4000-A3EA-1F7AB4691526", + "finishedDate": null, + "name": "JetSet Radio", + "lentTo": "", + "isFinished": false, + "console": "AE336925-70F7-4655-92C8-2B07E25CBF33", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/dreamcast/jetset_radio.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:14:52+0200", + "pickupDescription": "" + }, + { + "uuid": "EC2DA0AE-EDA9-499F-B379-813B56163252", + "finishedDate": null, + "name": "South Park", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/south_park.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "FE5D5FE8-BACF-4B95-A620-EA1BCF200378", + "finishedDate": null, + "name": "Wrestle Mania Steel Cage", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:06:53+0200", + "pickupDescription": "" + }, + { + "uuid": "923B8C65-4DF8-49B4-9672-F20982749CCB", + "finishedDate": null, + "name": "Mario 64", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/supermario64.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "88D588C7-6631-4BD2-B03B-92A852337427", + "finishedDate": null, + "name": "Super Mario Party", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/super_mario_party.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T15:19:55+0200", + "pickupDescription": "" + }, + { + "uuid": "C6FB9066-685B-4720-8798-BFA7B364E350", + "finishedDate": null, + "name": "Donkey Kong 64", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/donkeykong64.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "1982EAEA-F217-4779-BB0B-0CD6295D493A", + "finishedDate": null, + "name": "Star Wars - Episode 1 Racer", + "lentTo": "", + "isFinished": false, + "console": "AE336925-70F7-4655-92C8-2B07E25CBF33", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/dreamcast/star_wars_episode_1_racer.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:15:30+0200", + "pickupDescription": "" + }, + { + "uuid": "0F081784-0840-4E7E-AE2B-539147FF8340", + "finishedDate": null, + "name": "Animal Crossing - New Horizons", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/animal_crossing_new_horizon.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T15:19:07+0200", + "pickupDescription": "" + }, + { + "uuid": "10711B93-DB75-47AC-A4E4-5A93F7ACFFCE", + "finishedDate": null, + "name": "International Superstar Soccer 64", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/international_superstar_soccer_64.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "CA5C5C71-5475-46AF-AF38-4D4AE1FF091C", + "finishedDate": null, + "name": "Collection of Mana", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/collection_of_mana.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "BA889429-454D-4DE4-A763-51E7722DD846", + "finishedDate": null, + "name": "Super Mario Maker 2", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/super_mario_maker_2.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T15:19:43+0200", + "pickupDescription": "" + }, + { + "uuid": "568FD99B-AA7F-4D32-9FBD-FBF162F797F9", + "finishedDate": null, + "name": "DuckTales", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:07:44+0200", + "pickupDescription": "" + }, + { + "uuid": "71CEAC01-F873-45FC-8300-C5C0C342470A", + "finishedDate": null, + "name": "Wonder Boy - The Dragon‘s Trap", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/wonderboy_dragons_trap.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "4A66354E-99E1-4624-A6C7-41FD127CDAE0", + "finishedDate": null, + "name": "The Adventure of Link", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:05:52+0200", + "pickupDescription": "" + }, + { + "uuid": "89467D46-5E33-4832-8B4E-7D9294D6B456", + "finishedDate": null, + "name": "Soul Calibur", + "lentTo": "", + "isFinished": false, + "console": "AE336925-70F7-4655-92C8-2B07E25CBF33", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/dreamcast/soul_calibur.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:15:22+0200", + "pickupDescription": "" + }, + { + "uuid": "5CC51188-0472-4042-BF0B-83FE9C2AA29F", + "finishedDate": null, + "name": "Yoshi‘s Cookie", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:07:33+0200", + "pickupDescription": "" + }, + { + "uuid": "5B67C345-2664-43B7-AF09-B8387C061457", + "finishedDate": null, + "name": "Super Bomberman R", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/super_bomberman_r.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "B13B6D14-08D3-4725-9C18-E2904054082B", + "finishedDate": null, + "name": "Turtles - Arcade Game", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/nes/turtles_2.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:06:38+0200", + "pickupDescription": "" + }, + { + "uuid": "20C300B7-576E-4A81-B10D-8F2639EE6250", + "finishedDate": null, + "name": "Mario Kart 8 Deluxe", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/mario_kart_8_deluxe.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "CB041D88-EC2F-469E-A9FA-727036176EED", + "finishedDate": null, + "name": "Star Wars: Roque Squadron", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/starwars_rogue_squadron.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "74FC1DDA-EF56-42BB-990B-A182D05B6A68", + "finishedDate": null, + "name": "Dr. Mario", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:06:11+0200", + "pickupDescription": "" + }, + { + "uuid": "55FB0658-3176-4510-9FEC-AB89A62D3D91", + "finishedDate": null, + "name": "Zelda: Breath of the Wild", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/zelda_breath_of_the_wild.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-12T13:42:00+0200", + "pickupDescription": "" + }, + { + "uuid": "BC7CACDC-A185-4723-AB80-5CF87D29A31F", + "finishedDate": null, + "name": "Pokemon Schwert", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/pokemon_sword.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T15:19:32+0200", + "pickupDescription": "" + }, + { + "uuid": "AAACAD7B-42B8-4C4D-AD0D-3390B07B2132", + "finishedDate": null, + "name": "Super Smash Bros. Ultimate", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/super_smash_bros_ultimate.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T15:18:53+0200", + "pickupDescription": "" + }, + { + "uuid": "E114B1FC-FFDB-4D09-A96A-6063EA330B0A", + "finishedDate": null, + "name": "Trüberbrook", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/trueberbrook.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T15:20:07+0200", + "pickupDescription": "" + }, + { + "uuid": "46197A88-6719-4D11-9828-F063BEB4854C", + "finishedDate": null, + "name": "Thimbleweed Park", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/thimbleweed_park.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "FDD71E4C-5194-4934-B1D5-C8503DEC75F7", + "finishedDate": null, + "name": "Monster Boy and the Cursed Kingdom", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/monsterboy_and_the_cursed_kingdom.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "124960CC-F8A0-4437-BDDD-D96FBDB8C77C", + "finishedDate": null, + "name": "Resident Evil 5", + "lentTo": "", + "isFinished": false, + "console": "A82BCEAF-00D4-45E2-B106-128B06CB5898", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps3/resident_evil_5.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:17:49+0200", + "pickupDescription": "" + }, + { + "uuid": "6FC6C0EA-C6D2-40EA-A7EA-D11F4E403F31", + "finishedDate": 643563600, + "name": "Resident Evil 3", + "lentTo": "", + "isFinished": true, + "console": "E56B6CC8-D449-4C79-984C-FE6D9D826A3E", + "playtime_min": 27, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps1/resident_evil_3.jpg", + "playtime_h": 6, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "3D9544EB-D022-4AB4-9C03-8CE0E94BD109", + "finishedDate": null, + "name": "Shenmue", + "lentTo": "", + "isFinished": false, + "console": "AE336925-70F7-4655-92C8-2B07E25CBF33", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/dreamcast/shenmue.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:15:05+0200", + "pickupDescription": "" + }, + { + "uuid": "6E49623F-8DEC-4123-B68E-5E2589E07684", + "finishedDate": null, + "name": "Luigis Mansion 3", + "lentTo": "", + "isFinished": false, + "console": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/switch/luigis_mansion_3.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T15:19:20+0200", + "pickupDescription": "" + }, + { + "uuid": "6B089B8E-1F34-4137-98CE-662BEB1636A2", + "finishedDate": null, + "name": "Mario Kart 64", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/mario_kart_64.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "FABC41B5-4B94-4036-874E-0D2130F82F47", + "finishedDate": null, + "name": "Micro Mages", + "lentTo": "", + "isFinished": true, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/nes/micro_mages.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:07:50+0200", + "pickupDescription": "" + }, + { + "uuid": "848A9B75-7C97-489C-857A-61AFDAEEC931", + "finishedDate": null, + "name": "Resident Evil 4", + "lentTo": "", + "isFinished": false, + "console": "12AC4B5E-C816-4642-A04F-9095B929C930", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/gamecube/105298-resident-evil-4-gamecube-front-cover.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:19:36+0200", + "pickupDescription": "" + }, + { + "uuid": "EF86ECAA-38F1-40B6-9CB5-06B6D93351B0", + "finishedDate": null, + "name": "Mario 64 JPN", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2020-06-02T14:21:00+0200", + "pickupDescription": "Köln Urlaub" + }, + { + "uuid": "F091D6D3-6088-4275-8408-98A2F2CC8866", + "finishedDate": null, + "name": "Resident Evil 6", + "lentTo": "", + "isFinished": false, + "console": "A82BCEAF-00D4-45E2-B106-128B06CB5898", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps3/resident_evil_6.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:17:55+0200", + "pickupDescription": "" + }, + { + "uuid": "882EA587-40AD-42E4-A76D-701DF6256B52", + "finishedDate": null, + "name": "Turtles", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/nes/turtles.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:06:26+0200", + "pickupDescription": "" + }, + { + "uuid": "7F1DD3EA-73D8-41CC-AF4C-9AE35048F000", + "finishedDate": null, + "name": "God of War", + "lentTo": "", + "isFinished": false, + "console": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps2/god_of_war.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "5F89FC5A-128C-45A5-8B93-8A90738C649D", + "finishedDate": null, + "name": "Turok", + "lentTo": "", + "isFinished": false, + "console": "46547BAC-1980-4022-93D8-F0F241EE4174", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/n64/turok.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "C15A44F6-0B91-47BB-8EC7-46397CF7D9C0", + "finishedDate": null, + "name": "Okami", + "lentTo": "", + "isFinished": false, + "console": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps2/okami.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + }, + { + "uuid": "72C39C0A-F90D-40FA-9E62-BE3D4E543A0A", + "finishedDate": null, + "name": "Resident Evil - Code Veronica", + "lentTo": "", + "isFinished": false, + "console": "AE336925-70F7-4655-92C8-2B07E25CBF33", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/dreamcast/resident_evil_code_veronica.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T16:15:00+0200", + "pickupDescription": "" + }, + { + "uuid": "F0D8940F-0EB4-4C41-A012-CD08946E94DC", + "finishedDate": null, + "name": "The Legend of Zelda", + "lentTo": "", + "isFinished": false, + "console": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-25T17:05:38+0200", + "pickupDescription": "" + }, + { + "uuid": "4601A22E-3022-4F2C-964F-B1B727B862F2", + "finishedDate": null, + "name": "ICO", + "lentTo": "", + "isFinished": false, + "console": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "playtime_min": 0, + "notes": "", + "publisher": "", + "isDigital": false, + "cover_icloud_path": "games/ps2/ico.jpg", + "playtime_h": 0, + "inWishlist": false, + "releaseDate": "2021-05-19T13:42:05+0200", + "pickupDescription": "" + } + ], + "consoles": [ + { + "manufacturer": "Sega", + "shortName": "Dreamcast", + "uuid": "AE336925-70F7-4655-92C8-2B07E25CBF33", + "releaseDate": -66127620, + "accessories": [], + "games": [ + "C820BE49-BFF3-49FB-B4B1-81DA8AEA48D1", + "1982EAEA-F217-4779-BB0B-0CD6295D493A", + "4F1AE5AD-F747-405A-9B93-484A5CAFFCB5", + "72C39C0A-F90D-40FA-9E62-BE3D4E543A0A", + "3D9544EB-D022-4AB4-9C03-8CE0E94BD109", + "89467D46-5E33-4832-8B4E-7D9294D6B456", + "2CCB095D-FA1F-4000-A3EA-1F7AB4691526" + ], + "logo_icloud_path": "consoles/dreamcast.png", + "name": "Dreamcast" + }, + { + "manufacturer": "Sony", + "shortName": "PS1", + "uuid": "E56B6CC8-D449-4C79-984C-FE6D9D826A3E", + "releaseDate": -165912060, + "accessories": [], + "games": [ + "6FC6C0EA-C6D2-40EA-A7EA-D11F4E403F31", + "DA9C81DF-AE72-4ADD-9AD8-B412E4C54DB6", + "43D2F3D9-3FD9-4888-AC4E-F9194EDC6516" + ], + "logo_icloud_path": "", + "name": "Playstation 1" + }, + { + "manufacturer": "Nintendo", + "shortName": "N64", + "uuid": "46547BAC-1980-4022-93D8-F0F241EE4174", + "releaseDate": -142770240, + "accessories": [], + "games": [ + "EC2DA0AE-EDA9-499F-B379-813B56163252", + "A9408A2F-B83F-4204-8503-2BBA8140BFA6", + "EF86ECAA-38F1-40B6-9CB5-06B6D93351B0", + "5F89FC5A-128C-45A5-8B93-8A90738C649D", + "C6FB9066-685B-4720-8798-BFA7B364E350", + "923B8C65-4DF8-49B4-9672-F20982749CCB", + "7FB711B7-8A85-409B-A11F-BA4F572F8D24", + "4370F2B3-61D7-44F1-A6F1-BD235A54F6A5", + "D8852091-D8E2-4788-BD98-E2212A0DC570", + "42C954F2-8E52-4F7A-B539-9EBE2487E990", + "CB041D88-EC2F-469E-A9FA-727036176EED", + "10711B93-DB75-47AC-A4E4-5A93F7ACFFCE", + "6B089B8E-1F34-4137-98CE-662BEB1636A2", + "37F3C5A6-9FEA-4ADE-AC81-812BC775B58E" + ], + "logo_icloud_path": "consoles/n64.png", + "name": "Nintendo 64" + }, + { + "manufacturer": "Microsoft", + "shortName": "Xbox One", + "uuid": "420CAC69-1856-4128-9E5A-63D258F4D0B2", + "releaseDate": 406824060, + "accessories": [], + "games": [ + "5090F647-B96C-4431-960F-FEA03B6583C5", + "619435F9-2F4C-4E75-B1B5-8EFB60A6B7C5", + "37633F64-1A84-446A-9209-AE02A506CAA3" + ], + "logo_icloud_path": "consoles/xbox_one.jpg", + "name": "Xbox One" + }, + { + "manufacturer": "Nintendo", + "shortName": "Gamecube", + "uuid": "12AC4B5E-C816-4642-A04F-9095B929C930", + "releaseDate": 42128280, + "accessories": [], + "games": [ + "848A9B75-7C97-489C-857A-61AFDAEEC931" + ], + "logo_icloud_path": "consoles/gamecube.png", + "name": "Gamecube" + }, + { + "manufacturer": "Nintendo", + "shortName": "NES", + "uuid": "57641B28-4479-45B6-AB1A-D6094A1C7E49", + "releaseDate": -452249880, + "accessories": [], + "games": [ + "74FC1DDA-EF56-42BB-990B-A182D05B6A68", + "B13B6D14-08D3-4725-9C18-E2904054082B", + "FE5D5FE8-BACF-4B95-A620-EA1BCF200378", + "882EA587-40AD-42E4-A76D-701DF6256B52", + "DD125D07-1B6D-4EE9-AE84-B4D6E0214957", + "3CD063FB-F3DA-4BD1-BB23-9F7DC6576B20", + "4A66354E-99E1-4624-A6C7-41FD127CDAE0", + "5CC51188-0472-4042-BF0B-83FE9C2AA29F", + "B92AB87C-C577-4937-A682-C84E4B4D3C61", + "F0D8940F-0EB4-4C41-A012-CD08946E94DC", + "FABC41B5-4B94-4036-874E-0D2130F82F47", + "568FD99B-AA7F-4D32-9FBD-FBF162F797F9", + "F1C7382D-3B3E-4F28-BE59-8E8D82E18AB2" + ], + "logo_icloud_path": "consoles/nes.png", + "name": "Nintendo Entertainment System" + }, + { + "manufacturer": "Sony", + "shortName": "PS 2", + "uuid": "4C29F7C2-2F42-4479-8D81-D981B87E029B", + "releaseDate": -26126580, + "accessories": [], + "games": [ + "20D48A1A-F190-4D5B-B0BF-F4F34C4F527C", + "8C6E46A1-3060-4946-8FB5-F88831F663A7", + "68076ECF-22E6-4F71-B160-103EFEA88234", + "A6ABC431-36F6-4FB9-AC85-700E71C02D5F", + "7F1DD3EA-73D8-41CC-AF4C-9AE35048F000", + "C15A44F6-0B91-47BB-8EC7-46397CF7D9C0", + "4601A22E-3022-4F2C-964F-B1B727B862F2", + "4E05130C-DFB3-461D-9DDC-ED85AEEA531F", + "5C5DF550-ED25-4047-8FDD-7B14DD1CE495" + ], + "logo_icloud_path": "consoles/ps2.png", + "name": "Playstation 2" + }, + { + "manufacturer": "Sony", + "shortName": "PS5", + "uuid": "1725A045-82D2-44E5-8A8B-E647073B858D", + "releaseDate": 626884620, + "accessories": [], + "games": [], + "logo_icloud_path": "consoles/ps5.png", + "name": "Playstation 5" + }, + { + "manufacturer": "Sony", + "shortName": "PS3", + "uuid": "A82BCEAF-00D4-45E2-B106-128B06CB5898", + "releaseDate": 196355820, + "accessories": [], + "games": [ + "F091D6D3-6088-4275-8408-98A2F2CC8866", + "124960CC-F8A0-4437-BDDD-D96FBDB8C77C" + ], + "logo_icloud_path": "consoles/ps3.png", + "name": "Playstation 3" + }, + { + "manufacturer": "Nintendo", + "shortName": "Switch", + "uuid": "9FA6F10A-F5CF-4105-83E8-DE666C91D6D6", + "releaseDate": 510224820, + "accessories": [], + "games": [ + "5B67C345-2664-43B7-AF09-B8387C061457", + "71CEAC01-F873-45FC-8300-C5C0C342470A", + "BA889429-454D-4DE4-A763-51E7722DD846", + "6E49623F-8DEC-4123-B68E-5E2589E07684", + "39E8AAB8-06D0-4180-AA25-9D8D34C8F5B6", + "20C300B7-576E-4A81-B10D-8F2639EE6250", + "BC7CACDC-A185-4723-AB80-5CF87D29A31F", + "88D588C7-6631-4BD2-B03B-92A852337427", + "55FB0658-3176-4510-9FEC-AB89A62D3D91", + "CA5C5C71-5475-46AF-AF38-4D4AE1FF091C", + "0F081784-0840-4E7E-AE2B-539147FF8340", + "46197A88-6719-4D11-9828-F063BEB4854C", + "AAACAD7B-42B8-4C4D-AD0D-3390B07B2132", + "FDD71E4C-5194-4934-B1D5-C8503DEC75F7", + "E114B1FC-FFDB-4D09-A96A-6063EA330B0A" + ], + "logo_icloud_path": "consoles/nintendo_switch.png", + "name": "Nintendo Switch" + } + ], + "accessories": [], + "gameSeries": [ + { + "games": [], + "name": "God of War", + "cover_icloud_path": "game_series/god_of_war.jpg", + "uuid": "19B6DFC6-63E2-462E-8A60-5F942E50FAE7" + }, + { + "games": [ + "43D2F3D9-3FD9-4888-AC4E-F9194EDC6516" + ], + "name": "Final Fantasy", + "cover_icloud_path": "game_series/final_fantasy.png", + "uuid": "AA34DE6F-C48B-4A91-9490-FB9ED6FD7C97" + }, + { + "games": [ + "848A9B75-7C97-489C-857A-61AFDAEEC931", + "68076ECF-22E6-4F71-B160-103EFEA88234", + "72C39C0A-F90D-40FA-9E62-BE3D4E543A0A", + "F091D6D3-6088-4275-8408-98A2F2CC8866", + "6FC6C0EA-C6D2-40EA-A7EA-D11F4E403F31", + "124960CC-F8A0-4437-BDDD-D96FBDB8C77C", + "DA9C81DF-AE72-4ADD-9AD8-B412E4C54DB6" + ], + "name": "Resident Evil", + "cover_icloud_path": "game_series/resident_evil.png", + "uuid": "E0646FA1-4960-443A-A43C-EC7A7CEF42D3" + }, + { + "games": [ + "FABC41B5-4B94-4036-874E-0D2130F82F47", + "1982EAEA-F217-4779-BB0B-0CD6295D493A" + ], + "name": "Star Wars", + "cover_icloud_path": "game_series/star_wars.jpg", + "uuid": "235A1B10-714D-459E-93D4-C1201FE314EB" + }, + { + "games": [], + "name": "Legend of Zelda", + "cover_icloud_path": "game_series/zelda.png", + "uuid": "C6178772-2AE4-482F-A054-381BB372EFF7" + }, + { + "games": [], + "name": "Super Mario", + "cover_icloud_path": "game_series/super_mario.png", + "uuid": "ACE69D57-166D-42FF-A46B-BDD5E04DCEC7" + } + ] +} \ No newline at end of file diff --git a/Zockerhoehle/CDModel/Game+CoreDataClass.swift b/Zockerhoehle/CDModel/Game+CoreDataClass.swift index f391496..80986e7 100644 --- a/Zockerhoehle/CDModel/Game+CoreDataClass.swift +++ b/Zockerhoehle/CDModel/Game+CoreDataClass.swift @@ -14,6 +14,7 @@ import SwiftUI @objc(Game) public class Game: NSManagedObject, Identifiable { + public static func compareByCreationDate(gameA : Game, gameB : Game) -> Bool { return gameA.releaseDate < gameB.releaseDate } @@ -61,6 +62,8 @@ extension Game : Encodable { try container.encode(pickupDate.formattedInTimeZone(), forKey: .pickupDate) } try container.encode(pickupDescription ?? "", forKey: .pickupDescription) + + try container.encode(publisher ?? "", forKey: .publisher) try container.encode(isFinished, forKey: .isFinished) try container.encode(finishedDate, forKey: .finishedDate) diff --git a/Zockerhoehle/CDModel/Game+CoreDataProperties.swift b/Zockerhoehle/CDModel/Game+CoreDataProperties.swift index c4b3dfa..a82c69f 100644 --- a/Zockerhoehle/CDModel/Game+CoreDataProperties.swift +++ b/Zockerhoehle/CDModel/Game+CoreDataProperties.swift @@ -17,7 +17,6 @@ extension Game { return NSFetchRequest(entityName: "Game") } - @NSManaged public var circumstances: String? @NSManaged public var releaseDate : Date @NSManaged public var pickupDate: Date? @NSManaged public var pickupDescription : String? diff --git a/Zockerhoehle/Utils/LibraryImport.swift b/Zockerhoehle/Utils/LibraryImport.swift index 82289fc..0a758c8 100644 --- a/Zockerhoehle/Utils/LibraryImport.swift +++ b/Zockerhoehle/Utils/LibraryImport.swift @@ -78,6 +78,11 @@ class LibraryImport { } } + private func noneIfEmpty(_ str : String?) -> String? { + if str == "" { return .none } + return str + } + private func makeCDGame(from game: BHLGame, _ gameDict: inout [UUID : Game], _ cdConsole: Console) { let cdGame = Game(context: self.CDContext) gameDict[game.uuid] = cdGame @@ -88,7 +93,8 @@ class LibraryImport { cdGame.finishedDate = game.finishedDate cdGame.lentTo = game.lentTo cdGame.cover_icloud_path = game.cover_icloud_path - cdGame.pickupDescription = game.pickupDescription + cdGame.notes = noneIfEmpty(game.notes) + cdGame.pickupDescription = noneIfEmpty(game.pickupDescription) cdGame.isDigital = game.isDigital cdGame.playtime_h = game.playtime_h ?? 0 cdGame.playtime_min = game.playtime_min ?? 0 diff --git a/Zockerhoehle/Views/GameDetailView.swift b/Zockerhoehle/Views/GameDetailView.swift index 7f43e07..594d773 100644 --- a/Zockerhoehle/Views/GameDetailView.swift +++ b/Zockerhoehle/Views/GameDetailView.swift @@ -55,6 +55,7 @@ struct GameView : View { } } + var body: some View { ScrollView { VStack { @@ -87,10 +88,15 @@ struct GameView : View { } .padding(.vertical) - HeadlinedMultilineText(headline: "Notizen", multilineText: "Ganz toller multiline\nText") - .padding(.bottom) + if game.notes != .none { + HeadlinedMultilineText(headline: "Notizen", multilineText: game.notes ?? "n/a") + .padding(.bottom) + } + + if game.pickupDescription != .none { + HeadlinedMultilineText(headline: "Hinter den Kulissen", multilineText: game.pickupDescription ?? "n/a") + } - HeadlinedMultilineText(headline: "Hinter den Kulissen", multilineText: "Ich habe für das Spiel bei MCMedia Games angestanden") Spacer() } @@ -144,7 +150,7 @@ struct GameDetailView : View { Button(action: { isInEditMode.toggle() }, - label: { Image(systemName: "plus")}) + label: { Image(systemName: "wrench.fill")}) } } } diff --git a/Zockerhoehle/Views/Overview.swift b/Zockerhoehle/Views/Overview.swift index 25af092..82eda53 100644 --- a/Zockerhoehle/Views/Overview.swift +++ b/Zockerhoehle/Views/Overview.swift @@ -115,7 +115,7 @@ struct Overview: View { ScrollView(.horizontal, showsIndicators: false) { HStack(alignment: .top, spacing: 0) { ForEach(games.prefix(last_picksups_limit)) { game in - NavigationLink(destination: GameEditMode(game: game)) { + NavigationLink(destination: GameDetailView(game: game)) { VStack(alignment: .leading) { Group { GameCover(game: game) @@ -145,7 +145,7 @@ struct Overview: View { ScrollView(.horizontal, showsIndicators: false) { HStack(alignment: .top, spacing: 0) { ForEach(gamesFinished.prefix(last_picksups_limit).filter({$0.isFinished})) { game in - NavigationLink(destination: GameEditMode(game: game)) { + NavigationLink(destination: GameDetailView(game: game)) { VStack(alignment: .leading) { Group { GameCover(game: game)