I placed a view inside a TableView Cell and have divided that view into 7 parts. Also, each view is assigned with a tag. Now, whenever I select a view, I want to find out the tag for identification and all I am getting is indexPath of the cell and details of all the views in it. How can I find out the exact location or tag of the selected view? Don't want to use gesture. Can anyone help me out with this. Thanks in advance.
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
var cell = tableView?.cellForRow(at: indexPath)
print(cell?.contentView.subviews)
}