0
class Market {

    var  marketName: String? {
        get {
            return self.marketName
        }
        set {
            self.marketName = newValue
        }
    }

    var square: String? {
        get {
            return self.square
        }
        set {
            self.square = newValue
        }
    }

    init(marketName: String, square :String)
    {
        self.marketName = marketName
        self.square = square
    }
}

Why I can't initialize the variable Market? I have the warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available when it try to set the variables

rmaddy
  • 314,917
  • 42
  • 532
  • 579

0 Answers0