...i think i got icloud syncing working the first go?

This commit is contained in:
breadone
2024-07-10 11:01:38 +12:00
parent 2a7dadc939
commit f2de4ae7cc
11 changed files with 91 additions and 37 deletions

View File

@@ -12,7 +12,7 @@ struct CueCardViewPresenter: View {
var body: some View {
TabView() {
ForEach(project.cards) { card in
ForEach(project.cards ?? []) { card in
CueCardView(card: card)
}
}

View File

@@ -27,7 +27,7 @@ struct MainViewPresenter: View {
.bold()
.font(.title2)
.foregroundStyle(Color(hex: project.color) ?? .white)
Text("\(project.cards.count) \(project.cards.count == 1 ? "Card" : "Cards")")
Text("\(project.cards?.count ?? 0) \(project.cards?.count ?? 0 == 1 ? "Card" : "Cards")")
}
}
.padding(.vertical, 3)