Created
April 4, 2020 07:24
-
-
Save wizard1066/c124ff252bb337b582852cf019cf6db1 to your computer and use it in GitHub Desktop.
abgwtp12
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
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