Last active
March 21, 2018 09:33
-
-
Save slavapestov/7d8b4baf12d3dd48429e65a91c389d00 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
struct AnyEncodable : Encodable { | |
var wrapped: Encodable | |
func encode(to encoder: Encoder) throws { | |
try wrapped.encode(to: encoder) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment