Skip to content

Instantly share code, notes, and snippets.

@wizard1066
Created April 2, 2020 07:19
Show Gist options
  • Save wizard1066/3a95437d1787906710e05690e25ac573 to your computer and use it in GitHub Desktop.
Save wizard1066/3a95437d1787906710e05690e25ac573 to your computer and use it in GitHub Desktop.
abgwtp8
func dropTarget(info: DropInfo) -> Int? {
for squareno in 0..<rect.count {
if rect[squareno].contains(info.location) {
return squareno
}
}
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment