I'm using MagicalRecord to create and query Core Data entities in a simple Swift app I'm creating. I have a basic view for creating an entity, using data from a text field. I'm getting the following error when I try to set an entity's name (let's call it Reference): Cannot assign to 'name' in 'referenceEntity'
Here's the save button that saves the entity:
@IBAction func saveBtn() {
var referenceEntity = Reference.MR_createEntity()
referenceEntity.name = nameTxt.text
}
What am I doing wrong?
Thanks!