Subclass not available

Hi Developer Team,


in Storyboard create a CollectionView,then create a new File subclass of CollectionViewCell,

but in the Dropdown Menu für CollectionViewCell the subclass is not available.

can not set the CollectionViewCell to this new Subclass



(Set in xml structure customClass Tag) has no effect.


This Problem is available in macOS last Beta and Xcode last Beta (and Xcode last release).

Replies

There is no class CollectionViewCell in MacOS, but NSCollectionViewItem


How did you define your subclass exactly ?

yes... its a iOS App and i am using UICollectionviewCell. The Subclass is available on (New FileDialog) ,but in my Storyboard the Dropdown Menu is empty. Drag a Label and create a new Subclass of UILabel is the same procedure.No subclass available.

The most likely reason is that you forgot to include your new .swift file in your Xcode target. Select the file, and look at its "Target Membership" checkbox in the Files inspector.

in save dialog for the subclass the target is checked...