Last active
March 27, 2019 09:40
-
-
Save randomguy0815/93d153dc5b6793658f851f0f3f9ce152 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init(from decoder: Decoder) throws { | |
let container = try decoder.container(keyedBy: Keys.self) | |
self.status = try? Container.decodeIfPresent(Status.self, forKey: .status) ?? .disabled | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment