Skip to content

Commit 4701567

Browse files
committed
Update MovieList and MovieDetail | Change default icons | Add Font Awesome Pro
1 parent 4a1bfed commit 4701567

36 files changed

+375
-119
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"lldb.library": "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB",
3+
"lldb.launch.expressions": "native",
4+
"swift.SDK": "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.2.sdk"
5+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

CollectSomeMore/Assets.xcassets/MoviePoster.imageset/Contents.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"images" : [
33
{
4-
"filename" : "BlueDiamondBasketball2.jpeg",
4+
"filename" : "Jolicoeur_iOS.png",
55
"idiom" : "universal",
66
"scale" : "1x"
77
},
88
{
9-
"filename" : "BlueDiamondBasketball2 1.jpeg",
9+
"filename" : "Jolicoeur_iOS 1.png",
1010
"idiom" : "universal",
1111
"scale" : "2x"
1212
},
1313
{
14-
"filename" : "BlueDiamondBasketball2 2.jpeg",
14+
"filename" : "Jolicoeur_iOS 2.png",
1515
"idiom" : "universal",
1616
"scale" : "3x"
1717
}
33 KB
Loading
33 KB
Loading
33 KB
Loading

CollectSomeMore/CollectSomeMoreApp.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct GamesAndThings: App {
1919
do {
2020
return try ModelContainer(for: schema, configurations: [modelConfiguration])
2121
} catch {
22+
print("Error creating ModelContainer: \(error.localizedDescription)")
2223
fatalError("Could not create ModelContainer: \(error)")
2324
}
2425
}()

CollectSomeMore/Collection.swift

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
//
2+
// Collection.swift
3+
// GamesAndThings
4+
//
5+
// Created by Adam Jolicoeur on 3/20/25.
6+
// Copyright © 2025 AdamJolicoeur. All rights reserved.
7+
//
8+
9+
import Foundation
10+
import SwiftData
11+
12+
@Model
13+
final class Collection {
14+
var id: UUID
15+
var title: String
16+
var releaseDate: Date
17+
var purchaseDate: Date
18+
var genre: String
19+
var ratings: String
20+
var locations: String
21+
22+
init(id: UUID = UUID(), title: String, releaseDate: Date, purchaseDate: Date, genre: String, ratings: String, locations: String) {
23+
self.id = id
24+
self.title = title
25+
self.releaseDate = releaseDate
26+
self.purchaseDate = purchaseDate
27+
self.genre = genre
28+
self.ratings = ratings
29+
self.locations = locations
30+
}
31+
32+
@MainActor static let sampleData = [
33+
Collection(
34+
id: UUID(),
35+
title: "Deadpool",
36+
releaseDate: Date(timeIntervalSinceReferenceDate: -402_000_000),
37+
purchaseDate: Date(timeIntervalSinceNow: -5_000_000),
38+
genre: "Superhero",
39+
ratings: "R",
40+
locations: "Cabinet"
41+
)
42+
]
43+
}

0 commit comments

Comments
 (0)