 //
 
 import UIKit
+import ParkKit
 
 //class ParkinglotTableViewCell: MCSwipeTableViewCell {
 class ParkinglotTableViewCell: UITableViewCell {

		backgroundColor = Colors.colorBasedOnPercentage(percentage, emptyLots: lot.free)
		
		// Show the forecast indicator if that data is available
		if let forecastAvailable = lot.forecast, forecastAvailable {
			forecastIndicator?.image = UIImage(named: "graphArrow")
		} else {
			forecastIndicator?.image = nil

		}
	}
	
	func setParkinglot(_ lot: Lot) {
		parkinglot = lot
		
		// Quickfix for issue #103
		let sanitizedLotName = lot.name.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
		
		if let lotType = lot.type, lotType != "" {
			parkinglotNameLabel?.text = "\(lotType) \(sanitizedLotName)"
		} else {
			parkinglotNameLabel?.text = sanitizedLotName
		}

        parkinglotLoadLabel?.text = "\(lot.free)"

		// check if location sorting is enabled, then we're displaying distance instead of address
		let sortingType = UserDefaults.standard.string(forKey: Defaults.sortingType)!
		if sortingType == Sorting.standard || sortingType == Sorting.alphabetical || sortingType == Sorting.free {
