You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GFGeoHashQuery & GFGeoHashQueryHandle instances incrementing on each updation of GFCircleQuery.
Please find the below code
Note: circleQuery is strongly referenced in globally.
if circleQuery != nil {
//updating query
let center = CLLocation(latitude: latitude, longitude: longitude)
let radius = 5
circleQuery?.center = center
circleQuery?.radius = Double(radius)
return
}
//Below code will execute only one time.
let firebaseDBRefEventLocation = SWRealtimeDBManager.DBRoot().child("eventLocation")
let center = CLLocation(latitude: latitude, longitude: longitude)
let radius = 5
circleQuery = geoFire?.query(at: center, withRadius: Double(radius))
_ = circleQuery?.observe(.keyEntered, with: { (key: String!, location: CLLocation!) in
print("Key= '\(key)', location= '\(location)'")
})
Am I doing anything wrong?
The text was updated successfully, but these errors were encountered:
GFGeoHashQuery & GFGeoHashQueryHandle instances incrementing on each updation of GFCircleQuery.
Please find the below code
Note:
circleQuery
is strongly referenced in globally.Am I doing anything wrong?
The text was updated successfully, but these errors were encountered: