Leonid Popescu
04/25/2018, 9:00 AMinterface SomeInterface {
var aProperty: String
}
the generated ObjC interface would be
@protocol AIKSomeInterface
@required
@property NSString* aProperty;
@end;
and implementing it, with setters and getters in ObjC is not allowed because it’s seen as atomic
, if my class declares the property as @property (nonatomic) NSString* aProperty;
then it shows warnings that atomicity is not the same as in protocol.
can we ignore it for now or better just to use functions for getters and setters instead of properties ?svyatoslav.scherbina
04/25/2018, 12:46 PMand implementing it, with setters and getters in ObjC is not allowed because it’s seen asWhat warning or error does the compiler report? Could you please provide any sample? As for atomic and nonatomic when overriding, you can safely ignore this warning for now.,atomic
Leonid Popescu
04/25/2018, 1:54 PMnonatomic
and it seems to work .svyatoslav.scherbina
04/26/2018, 7:13 AM