Last active
July 12, 2020 15:08
-
-
Save apatronl/23aa157ef602647961d1977c347eac93 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
struct EmojibookListView: View { | |
// ... | |
} | |
struct EmojiItemView: View { | |
// ... | |
} | |
struct EmojiDetailsView: View { | |
var emojiDetails: EmojiDetails | |
var body: some View { | |
ZStack { | |
// Background color | |
Color(UIColor.systemIndigo).edgesIgnoringSafeArea(.all) | |
// Emoji data | |
VStack { | |
VStack(alignment: .leading) { | |
HStack { | |
Text("\(emojiDetails.emoji) \(emojiDetails.name)") | |
.font(.largeTitle) | |
.bold() | |
} | |
.padding() | |
Text(emojiDetails.description) | |
.padding([.leading, .trailing, .bottom]) | |
.font(.title) | |
} | |
} | |
.foregroundColor(.white) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment