title: How to give an initial value to NSManaged property in CoreData?
body: <p>I use Swift. I have a CoreData, and it has a string attribute called days. I want to assign a default value to this. I tried it in my CoreData model class but it gives an error saying <em>"NSManaged property cannot have an initial value"</em>. </p>
  
  <p>This is what I tried.</p>
  
  <pre><code>@NSManaged var daysAvailable:String = "M"
  </code></pre>