Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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