New custom Swift class not found in Interface Builder

Hello,

I have added a new UIViewController class written in Swift to my project, but Interface Builder won't show it in the "custom class" field, making it impossible for me to setup any custom outlet/action. Previous Swift classes are shown correctly. What can I do? This is extremely frustrating.


Thanks

Answered by vukodlak in 11802022

Fixed it by myself.

Xcode had added the new files under a different directory and Interface Builder couldn't recognize them. I just had to remove the files from the project and add them again.

Accepted Answer

Fixed it by myself.

Xcode had added the new files under a different directory and Interface Builder couldn't recognize them. I just had to remove the files from the project and add them again.

New custom Swift class not found in Interface Builder
 
 
Q