Skip to content

Instantly share code, notes, and snippets.

@wizard1066
Created April 4, 2020 07:24
Show Gist options
  • Save wizard1066/c124ff252bb337b582852cf019cf6db1 to your computer and use it in GitHub Desktop.
Save wizard1066/c124ff252bb337b582852cf019cf6db1 to your computer and use it in GitHub Desktop.
abgwtp12
HStack(alignment: .center, spacing: 8) {
ForEach((0 ..< textValue.count), id: \.self) { column in
Text(self.textValue[column])
.font(Fonts.futuraCondensedMedium(size: fontSize))
.frame(width: minWidith, height: minHeight, alignment: .center)
.background(backgrounds[column])
.cornerRadius(minHeight/2)
.onTapGesture {
self.poke = self.textValue[column]
}
.onDrag {
return NSItemProvider(object: self.textValue[column] as NSItemProviderWriting) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment