Created
September 20, 2017 06:44
-
-
Save malcolmkmd/ea09fe67749e4b1256727f8855869506 to your computer and use it in GitHub Desktop.
ResuableView
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
import UIKit | |
protocol ReusableView: class {} | |
extension ReusableView { | |
static var reuseIdentifier: String { | |
return String(describing: self) | |
} | |
} | |
extension UITableViewCell: ReusableView { } | |
extension UICollectionViewCell: ReusableView { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment