Skip to content

Instantly share code, notes, and snippets.

@wizard1066
Created April 2, 2020 07:20
Show Gist options
  • Save wizard1066/c179ee73959ef7103f8df483fbf84d96 to your computer and use it in GitHub Desktop.
Save wizard1066/c179ee73959ef7103f8df483fbf84d96 to your computer and use it in GitHub Desktop.
abgwtp9
let dropDelegate = TheDropDelegate(textText: $textText, textValue: $textValue)
struct TheDropDelegate: DropDelegate {
@Binding var textText:String
@Binding var textValue:String
func dropUpdated(info: DropInfo) -> DropProposal? {
print("drop Updated")
self.textValue = ""
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment