If you getting error like cannot find type "Your_Custome_class" in scope. Just Import the UIKit in project space. or the place you get the error.
for eg :
import Foundation import UIKit // I added this to fix my error.