Right now I\'m using NSClassFromString, but is there a better way to get an AnyClass! from a class in Swift? I am trying to pass the reference to m
NSClassFromString
AnyClass
In Swift 3:
self.collectionView.register(CustomCollectionViewCell.self, forCellWithReuseIdentifier: "CustomCollectionViewCellReuseIdentifier")