Skip to content

Instantly share code, notes, and snippets.

@KordianKL
Created September 20, 2017 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KordianKL/124cbb0065347901e74f010320309cba to your computer and use it in GitHub Desktop.
Save KordianKL/124cbb0065347901e74f010320309cba to your computer and use it in GitHub Desktop.
extension Animoji {
fileprivate struct Serialization: Codable {
private var emoji: String?
private var expression: Data?
fileprivate init(animoji: Animoji) {
switch animoji {
case let .iPhoneX(emoji, expression):
self.emoji = emoji
self.expression = expression
case let .notiPhoneX(emoji):
self.emoji = emoji
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment