add subview to UITableViewcell for making custom tableviewrowactions

am trying to imitate the iOS mail application row action and its animation .I want to give support for devices below iOS 10.I tried with pan gesture and setted the frame of the cell and now I want to add subview to the cell right side and animate it .Am not able to add subview to the right side of the tableview cell.tableview cell when panned left

I tried setting the subview frame as follows let view = UIView() print("maximum x position of the cell (cell.contentView.frame.maxX)") view.frame = CGRect(x: (cell.contentView.frame.maxX), y: 0, width: UIScreen.main.bounds.width/2, height: cell.frame.height)

iosswiftuitableviewuitableviewrowaction

Answers

comments powered by Disqus