4
kuyazee
8y

Why in the world does xcode not have automatically generated constructors, getters and setters while android studio has them 😓

Comments
  • 2
    It doesn't apply to Apple's style guides :)
  • 1
    Yeah it's not the same as Java. You use the dot notation to access variables directly
  • 0
    Thanks. But for some instances I like to use setters like these
    Person{
    var name:String!;
    func setName(name:String) -> Person{
    self.name = name;
    return self;
    }
    }
Add Comment