Created
April 2, 2020 07:20
-
-
Save wizard1066/c179ee73959ef7103f8df483fbf84d96 to your computer and use it in GitHub Desktop.
abgwtp9
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
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