Skip to content

Commit

Permalink
prepare for CI demo
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsto committed Jun 22, 2024
1 parent c79d9cb commit f776431
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions code/getting started/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,11 @@ struct ListRow: View {
if let description = note.description {
Text(description)
.foregroundColor(.gray)
// .foregroundColor(.white)
}
}
}
.padding([.top, .bottom], 20)
// .background(.gray)
.background(.gray)
}
}

Expand Down Expand Up @@ -180,16 +179,18 @@ struct AddNoteView: View {
}
}
}

struct ContentView_Previews: PreviewProvider {
static var previews: some View {

let user1 = ViewModel.mock
return Group {
ContentView().environmentObject(user1)
ContentView().navigationView(notes: user1.notes, signOut: {})
AddNoteView(isPresented: .constant(true), model: user1)
}
}
#Preview("Unauthenticated") {
let user1 = ViewModel.mock
return ContentView().environmentObject(user1)
}

#Preview("Authenticated") {
let user1 = ViewModel.mock
return ContentView().navigationView(notes: user1.notes, signOut: {})
}

#Preview("Add memory") {
let user1 = ViewModel.mock
return AddNoteView(isPresented: .constant(true), model: user1)
}

0 comments on commit f776431

Please sign in to comment.