//
//  CountryTableViewCell.swift
//  GRPickerViewController
//
//  Created by Gaurav Parmar on 01/05/21.
//

import UIKit


final class CountryTableViewCell: UITableViewCell {
    
    // MARK: Properties
    
    static let identifier = String(describing: CountryTableViewCell.self)
    
    // MARK: Initialize
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: .default, reuseIdentifier: reuseIdentifier)
        selectionStyle = .none
        backgroundColor = nil
        contentView.backgroundColor = nil
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
    }
    
    // MARK: Configure Selection
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        accessoryType = selected ? .checkmark : .none
    }
}
