Last active
August 30, 2020 00:59
-
-
Save laevandus/fcadffb8b477314a803cc1bdfa5cbf2a 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
struct Cell: View { | |
@ObservedObject var colorItem: ColorItem | |
var body: some View { | |
HStack { | |
Text(verbatim: colorItem.hex) | |
Spacer() | |
Rectangle().foregroundColor(Color(colorItem.uiColor)).frame(minWidth: 50, maxWidth: 50) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment