Skip to content

Instantly share code, notes, and snippets.

@kyungpyoda
Created May 25, 2021 11:59
Show Gist options
  • Save kyungpyoda/198abe5748a107c48b3aa23cbd39d51e to your computer and use it in GitHub Desktop.
Save kyungpyoda/198abe5748a107c48b3aa23cbd39d51e to your computer and use it in GitHub Desktop.
Reusable Cell Extension
//
// Cell+Reusable.swift
//
// Created by 홍경표 on 2021/04/12.
//
import UIKit
protocol Reusable {
static var reuseIdentifier: String { get }
}
extension Reusable {
static var reuseIdentifier: String { return String(describing: Self.self) }
}
extension UITableViewCell: Reusable { }
extension UICollectionViewCell: Reusable { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment