Created
May 25, 2021 11:59
-
-
Save kyungpyoda/198abe5748a107c48b3aa23cbd39d51e to your computer and use it in GitHub Desktop.
Reusable Cell Extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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