HGPlaceholders
HGPlaceholders copied to clipboard
collectionView as? CustomCollectionView == nil ????
hello everyone, why i print placeholderCollectionView is nil ? i use code to create the collectionview like:
class CustomCollectionView: CollectionView {
override func customSetup() {
placeholdersProvider = .custom
}
}
class vc: UICollectionViewController {
var placeholderCollectionView: CustomCollectionView? {
return collectionView as? CustomCollectionView
}
}
met the same problem!