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