NSThread takes a selector as the second parameter. You can describe the Objective-C selector as strings in Swift as follows:
let thread = NSThread(target: myObj, selector: "mySelector", object: nil)
Swift functions are not equivalent to Objective-C. If you have a method in a fast class, you can use it as a selector if you use the @objc attribute for the class:
@objc class myClass{ func myFunc(){ } } var myObj = myClass() let thread = NSThread(target: myObj, selector: "myFunc", object: nil)
source share