I have created a new Swift class in a new file
import Foundation
class RecordedAudio: NSObject{
var filePathUrl: NSURL!
var title: String!
}
I just had to do the Full Monty to get it to work...
Also maybe add @objc to the line above your class definition and maybe make it public class
just to be explicit and possible add public
to your methods as well. Oh and make sure you are subclassing NSObject
.
If you are stuck getting your initialiser to show up, I've also just noticed that Swift 4.2 has lots more problems here. I switched back to Swift 3. No problems...