When a user selects a cell, i want the cell to animate from a square to a circle. I am using this code, but it does not animate, why?
Note: Code is in swift.
cell.layer.cornerRadius = 7
    cell.clipsToBounds = true
    UIView.animateWithDuration(0.5, animations: {
        cell.layer.cornerRadius = self.cell.frame.height / 2
        cell.clipsToBounds = true
    })