Created
September 20, 2017 13:27
-
-
Save KordianKL/705999e29f03ae17ec306ec8c4abdde6 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
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