title: How to get list of checkmark-ed rows in tableview Swift?
body: <p>I have enable multi row selection and am able to add checkmarks as the user touches the specific cell(s). Now at the end, I want to see which rows were selection and perform actions depending on the row numbers. How can I get those row details / numbers? thanks!</p>
  
  <p>code used to select/ deselect rows: </p>
  
  <pre><code> override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view, typically from a nib.
          main_table.reloadData()
          self.main_table.allowsMultipleSelection = true
          self.main_table.allowsMultipleSelectionDuringEditing = true
      }
  </code></pre>
  
  <p>and then in cell controller: </p>
  
  <pre><code> override func setSelected(_ selected: Bool, animated: Bool) {
          super.setSelected(selected, animated: animated)
          accessoryType = selected ? UITableViewCell.AccessoryType.checkmark : UITableViewCell.AccessoryType.none
      }
  </code></pre>