Last active
July 19, 2020 01:59
-
-
Save apatronl/efcc4186ed29ab692545c48596942286 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public struct EmojiDetails { | |
public let emoji: String | |
public let name: String | |
public let description: String | |
public let url: URL? | |
init(emoji: String, name: String, description: String) { | |
self.emoji = emoji | |
self.name = name | |
self.description = description | |
self.url = URL(string: "emoji://\(name.filter { !$0.isWhitespace })") | |
} | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment