Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
fileprivate struct Serialization: Codable {
private struct iPhoneXData: Codable {
let emoji: String
let expression: Data
private var iPhoneX: iPhoneXData?
private var notiPhoneX: String?
fileprivate init(animoji: Animoji) {
switch animoji {
case let .iPhoneX(emoji, expression):
self.iPhoneX = iPhoneXData(emoji: emoji, expression: expression)
case let .notiPhoneX(emoji):
self.notiPhonex = emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment