Created
September 20, 2017 13:21
-
-
Save KordianKL/124cbb0065347901e74f010320309cba 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
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