Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
3a2f7c0d3e
commit
d32053c8cf
@ -22,44 +22,3 @@ struct WatchCard: Codable, Identifiable, Hashable {
|
||||
return Image(uiImage: uiImage)
|
||||
}
|
||||
}
|
||||
|
||||
extension WatchCard {
|
||||
static let samples: [WatchCard] = [
|
||||
WatchCard(
|
||||
id: UUID(),
|
||||
displayName: "Daniel Sullivan",
|
||||
role: "Property Developer",
|
||||
company: "WR Construction",
|
||||
email: "daniel@wrconstruction.co",
|
||||
phone: "+1 (214) 987-7810",
|
||||
website: "wrconstruction.co",
|
||||
location: "Dallas, TX",
|
||||
isDefault: true,
|
||||
qrCodeImageData: nil
|
||||
),
|
||||
WatchCard(
|
||||
id: UUID(),
|
||||
displayName: "Maya Chen",
|
||||
role: "Creative Lead",
|
||||
company: "Signal Studio",
|
||||
email: "maya@signal.studio",
|
||||
phone: "+1 (312) 404-2211",
|
||||
website: "signal.studio",
|
||||
location: "Chicago, IL",
|
||||
isDefault: false,
|
||||
qrCodeImageData: nil
|
||||
),
|
||||
WatchCard(
|
||||
id: UUID(),
|
||||
displayName: "DJ Michaels",
|
||||
role: "DJ",
|
||||
company: "Live Sessions",
|
||||
email: "dj@livesessions.fm",
|
||||
phone: "+1 (646) 222-3300",
|
||||
website: "livesessions.fm",
|
||||
location: "New York, NY",
|
||||
isDefault: false,
|
||||
qrCodeImageData: nil
|
||||
)
|
||||
]
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ final class WatchCardStore {
|
||||
let data = defaults.data(forKey: Self.cardsKey),
|
||||
let decoded = try? JSONDecoder().decode([WatchCard].self, from: data) else {
|
||||
// Fall back to sample data if no synced data available
|
||||
cards = WatchCard.samples
|
||||
cards = []
|
||||
return
|
||||
}
|
||||
cards = decoded
|
||||
|
||||
Loading…
Reference in New Issue
Block a user