How to add property attributes e.g nonatomic in swift?
Property Declaration in Objective-C
@property(strong, nonatomic) NSString *name;
How to declare above instance property with nonatomic attribute in swift?
How to add property attributes e.g nonatomic in swift?
Property Declaration in Objective-C
@property(strong, nonatomic) NSString *name;
How to declare above instance property with nonatomic attribute in swift?
Swift properties are non atomic by default.
Atomicity property attributes (atomic and nonatomic) are not reflected in the corresponding Swift property declaration, but the atomicity guarantees of the Objective-C implementation still hold when the imported property is accessed from Swift.
source: medium.com