Skip to content

Instantly share code, notes, and snippets.

@GemmaDelOlmo
Created June 23, 2020 07:12
Show Gist options
  • Select an option

  • Save GemmaDelOlmo/e630314c26f1885517e61977ee441506 to your computer and use it in GitHub Desktop.

Select an option

Save GemmaDelOlmo/e630314c26f1885517e61977ee441506 to your computer and use it in GitHub Desktop.
import Foundation
import UIKit
protocol ReusableView: class {
static var defaultReuseIdentifier: String { get }
}
extension ReusableView where Self: UIView {
static var defaultReuseIdentifier: String {
return String(describing: self)
}
}
extension UITableViewCell: ReusableView {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment