title: How to save struct in coredata
body: <p>please help me. I have coredata model with one attribute called scores as Transformable type. I have struct called Scores like this.</p>
  
  <pre><code>struct PlayerScoresDict : Codable
  {
      var round : Int?
      var score : String?
      var cards : Array&lt;Int&gt;?
  
  }
  struct PlayersDict : Codable
  {
      var id : Int?
      var scoreDict  : PlayerScoresDict?
  
  }
  </code></pre>
  
  <p>and i am saving PlayersDict in array. and i want to save this array in coredata scores object. But i am getting error. please help me.</p>