 // MARK:- UITableViewDelegate
 extension CountriesViewController {
   override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
+    let cell = tableView.cellForRowAtIndexPath(indexPath)
+    if cell?.accessoryType == .Checkmark {
+      cell?.accessoryType = .None
+    } else {
+      cell?.accessoryType = .Checkmark
+    }
+    
     tableView.deselectRowAtIndexPath(indexPath, animated: true)
   }
 

    return NSString(format: NSLocalizedString("%lu Countries", comment: "CountriesViewController footer format"), count) as String
  }
}

 //
//  Copyright © 2015 Itty Bitty Apps. All rights reserved.

import UIKit

final class CountriesViewController: RevertTableViewController, CountriesViewRefreshControlProtocol {
  private let collection = CollectableCollection<Country>(items: .CountriesCapitals)
  private let dataSource: DataSource<Country, BasicCell>
  private var refreshTimer: NSTimer?
