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