...i think i got icloud syncing working the first go?
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user