Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active August 30, 2020 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/fcadffb8b477314a803cc1bdfa5cbf2a to your computer and use it in GitHub Desktop.
Save laevandus/fcadffb8b477314a803cc1bdfa5cbf2a to your computer and use it in GitHub Desktop.
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