According to cheatsheet, I'm supposed to use NSDate (and NSData too). Can I instead use the Foundation structs from Swift 3, Date (and Data), or not?
Examples:
dynamic var valueA = Date()
dynamic var valueB: Date? = nil
Any best practice on the matter?
ps: on a different subject, this PR, if accepted in the future, will cause dynamic to no longer infer @objc in Swift4.
I would also like to know if/when using Date and Data instead of NSDate and NSData will be acceptable.
Edit: @Coeur, I looked further and it appears that this issue is solved in PR #3979.
Happy to hear you found #3979 and that it was helpful.
Most helpful comment
I would also like to know if/when using
DateandDatainstead ofNSDateandNSDatawill be acceptable.Edit: @Coeur, I looked further and it appears that this issue is solved in PR #3979.