Created
July 12, 2020 14:57
-
-
Save apatronl/aace42fe9046701807049efb2534ef03 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
import SwiftUI | |
struct EmojiWidgetView: View { | |
let emojiDetails: EmojiDetails | |
var body: some View { | |
ZStack { | |
Color(UIColor.systemIndigo) | |
VStack { | |
Text(emojiDetails.emoji) | |
.font(.system(size: 56)) | |
Text(emojiDetails.name) | |
.font(.headline) | |
.multilineTextAlignment(.center) | |
.padding(.top, 5) | |
.padding([.leading, .trailing]) | |
.foregroundColor(.white) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment