Skip to content

Instantly share code, notes, and snippets.

@eriadam
Created June 24, 2019 20:59
Show Gist options
  • Save eriadam/2fdd397d7665546c133d84433f8840a6 to your computer and use it in GitHub Desktop.
Save eriadam/2fdd397d7665546c133d84433f8840a6 to your computer and use it in GitHub Desktop.
// Let's add a simple CLLocation to the tree.
let location = CLLocation(
latitude: item.latitude,
longitude: item.longitude)
tree.add(location, at: float2(item.latitude, item.longitude))
// And then remove it.
tree.remove(location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment