-
Notifications
You must be signed in to change notification settings - Fork 15
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
Store country code in Vessel Information page #336
Conversation
0eee92a
to
acf9aea
Compare
Hi @nugmanoff - Thanks so much for this PR! We appreciate that you gave your rationale for the things we might say "why did they do that?" Our team will fully review this by this time on Monday (three business days). Until then, please feel free to work on another issue. |
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.
@am-MongoDB thanks for pointing that one out, I missed that! Can you please check the updated revision? |
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.
2dfa5d1
to
fb9950b
Compare
fb9950b
to
956564d
Compare
@nugmanoff I'm not a git-guru and so I always keep it simple. If you can't get your current fork into line, then: Andrew. |
@am-MongoDB thanks! but I think I've already fixed the issues |
Thanks @nugmanoff PR merged - thanks! |
Hey there! I am happy to contribute to your repository as part of Hacktoberfest 2020
This PR Closes #332
Some rationale behind my changes:
• I renamed
image
variable tocode
inCountryPickerData
because it is quite because previous name is quite ambiguous and misleading per se. So now variablecode
basically describes what kind of value it holds (short country code).image
variable was used only once when magically retrieving country emoji, and even in that context it makes more sense to write function likeflag(for countryCode: String)
• This change basically enabled me to retrieve
$0.code
directly and assign it tovessel.nationality
in binding closure without introducing ambiguity (it'd be less obvious if it wasself.vessel.nationality = $0.image
, but it'd have worked the same way it does now).• Also I fixed name of the
CountryPickerView.swift
file.