Skip to content

Conversation

@AngeloStavrow
Copy link
Collaborator

Closes #18.

This PR adds a minimal initializer for the WFUser type such that it can be reconstructed from saved properties because it turns out, if you provide a custom initializer to a Swift struct, you no longer get the memberwise initializer that's automatically synthesized by the compiler.

¯\_(ツ)_/¯

@AngeloStavrow AngeloStavrow requested a review from thebaer August 31, 2020 14:28
@AngeloStavrow AngeloStavrow self-assigned this Aug 31, 2020
@AngeloStavrow AngeloStavrow merged commit 52ea441 into main Aug 31, 2020
@AngeloStavrow AngeloStavrow deleted the add-local-WFUser-initializer branch August 31, 2020 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Cannot initialize a WFUser from anything other than server response

3 participants