//
//  AutoIndentifierCell.swift
//  settlepay-ios-sdk
//
//  Created by Yelyzaveta Kartseva on 10.04.2021.
//

import UIKit

protocol AutoIndentifierCell: class {
    static var identifier: String { get }
    
    static var nibName: String { get }
}

extension AutoIndentifierCell where Self: UITableViewCell {
    static var identifier: String {
        return self.nibName
    }
    
    static var nibName: String {
        return String(describing: self)
    }
}

extension AutoIndentifierCell where Self: UICollectionViewCell {
    static var identifier: String {
        return self.nibName
    }
    
    static var nibName: String {
        return String(describing: self)
    }
}

extension AutoIndentifierCell where Self: UITableViewHeaderFooterView {
    static var identifier: String {
        return self.nibName
    }
    
    static var nibName: String {
        return String(describing: self)
    }
}

