Parse-SDK-iOS-OSX
Parse-SDK-iOS-OSX copied to clipboard
isDataAvailableForKey should be public to easier to check data available
… so you don't need to fetch all data to get a certain data. Sometimes the data of a user is very long but we just need to get the "username" which is already fetched. This PR also avoid crashing when we try to get data from key which is not fetched. It should returns nil.
So we could check or get data by either ways:
if user.isDataAvailable(forKey: "username") {
// ok
}
or
if let username = user["username"] {
// username is available
}
else {
// username is unavailable, please fetch it
}
Looks good to me in general but why did you include the change in ParseUI into this PR? Is this on purpose?
It's on purpose, it's just a minor fix to silent the "variable not used" warning
This issue has been automatically marked as stale because it has not had recent activity. If you believe it should stay open, please let us know! As always, we encourage contributions, check out the Contributing Guide
Closing a superseded by #1756