Skip to content

Instantly share code, notes, and snippets.

@mwaterfall
Created January 13, 2019 11:25
Show Gist options
  • Save mwaterfall/22f12a4d6186bb171f1306cd67f193c1 to your computer and use it in GitHub Desktop.
Save mwaterfall/22f12a4d6186bb171f1306cd67f193c1 to your computer and use it in GitHub Desktop.
extension Material {
init(from decoder: Decoder) throws {
self = try Material(from: decoder, default: .other)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment