Xcode won't recognize a new Swift class

前端 未结 5 1392
时光说笑
时光说笑 2021-01-03 22:40

I have created a new Swift class in a new file

import Foundation

class RecordedAudio: NSObject{
    var filePathUrl: NSURL!
    var title: String!
}
         


        
5条回答
  •  一生所求
    2021-01-03 23:10

    If your class is in another Module, please make sure that your class and the class initializers have the public access modifier.

提交回复
热议问题