Skip to content
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

Update CredentialPack to use ParsedCredential #39

Merged

Conversation

cobward
Copy link
Contributor

@cobward cobward commented Oct 2, 2024

No description provided.

}
}

/// Get a credential by id.
public func get(credentialId: Uuid) -> ParsedCredential? {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit weirded out by having two functions with the same name and just an argument name that differs by one letter, but that might also just be a Swift convention, and I don't know Swift that well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a fairly normal Swift convention, but maybe @todd-spruceid or @Juliano1612 can weigh in.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's common. You only can't have multiple methods with the same signature.

Copy link
Contributor

@rschulman rschulman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small comment but LGTM.

Copy link
Member

@Juliano1612 Juliano1612 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Started this spruceid/mobile-sdk-ios-app#20 PR to make the demo app compatible with these changes

@cobward cobward merged commit 76d2b77 into main Oct 3, 2024
1 check passed
@cobward cobward deleted the skit-572-update-credentialpack-to-use-parsedcredential-swift branch October 3, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants