I'm trying to increment a value in NSMutableArray when an action is done and it is giving me the following error
Cannot assign to immutable expression of type 'int'.
self.itemsArray[tag][itemType]!![itemType]!!["likeCount"] as! Int = self.itemsArray[tag][itemType]!![itemType]!!["likeCount"] as! Int +1
this was my line of code . And I'm pretty sure thats an Int. I'm trying increment the value present in likeCount.
Please help me.
Thanks.