-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for NSCopying
protocol.
#200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the set of properties on RouteOptions keeps expanding, please add unit tests so we can be sure everything copies over correctly.
/** | ||
Returns a copy of the object. | ||
- parameter zone: an NSZone to use in the copy operation. | ||
- returns: A copy of the object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this method already inherits documentation from the protocol’s method declaration, at least as far as Quick Help and other tools are concerned.
Would it be possible to avoid all this boilerplate code by adopting Codable now that we're on an Xcode 9 stack already? |
I agree @frederoni, but wouldn't it be better to do that refactor in one tech-debt chore, rather than piecemeal? There are 8 classes that use |
} | ||
|
||
@objc(isEqualToRouteOptions:) | ||
open func isEqual(to routeOptions: RouteOptions?) -> Bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, this gets us a little bit closer to implementing #151. 👍
What it says on the box. Making
RouteObject
conform toNSCopying
. Needed for mapbox/mapbox-navigation-ios#806./cc @1ec5 @bsudekum