title: Type 'Model' does not conform to protocol 'Decodable'/Encodable
body: <p>I can't figure out how I can fix this error.</p>
  <p>If I remove @Published, it compiles everything correct but then I can't see the data in a cell in real time. Reading I saw that I need the var with <code>@Published</code></p>
  <pre><code>import SwiftUI
  import Combine
  
  class TimeModel: Codable, Identifiable, ObservableObject {
      
      @Published var id: UUID = UUID()
      @Published var nome : String
      @Published var time : String
      
      func aggiornaUI() {
          DispatchQueue.main.async {
              self.objectWillChange.send()
          }
      }
  
      init(nome: String, time: String) {
          self.nome = nome
          self.time = time
      }
      
  }
  </code></pre>
  <p>Update: ok thanks I check now but the error remain</p>
  <pre><code>        HStack {
              Text(&quot;\(timeString(from: Int(TimeInterval(remainingSeconds))))&quot;)
                  .onReceive(timer) { _ in
                      if isCounting &amp;&amp; remainingSeconds &gt; 0 {
                          remainingSeconds -= 1
                      }
                  }
  </code></pre>
  <p>error:</p>
  <blockquote>
  <p>Instance method 'onReceive(_:perform:)' requires that 'TimeModel'
  conform to 'Publisher'</p>
  </blockquote>