SwiftUI How to pass a CoreData object to an other view

Hey I just added another view to my project and now I would like to put a CoreData instance of type "Timer" in here:


 struct TimerRow: View {
   
   let timer: Timer
   
   var body: some View {
       HStack {
           VStack(alignment: .leading) {
               Text("Timer")
           }
       }
   }
}

struct TimerRow_Previews: PreviewProvider {
   static var previews: some View {
       TimerRow()
   }
}

But now I get an error in my TimerRow_Previews. It's clear, the PreviewProvider doesn't know what to hand over to the initializer. Only what do I hand over to the PreviewProvider now? Is there something like .constant() test values only for CoreData instances? I would be very happy about an answer. Warm greetings

Just pass the Preview a Timer...

struct TimerRow_Previews: PreviewProvider {
  static var previews: some View {
      TimerRow(timer: Timer())
  }
}
SwiftUI How to pass a CoreData object to an other view
 
 
Q