Optimize pattern rendering

This commit is contained in:
Ilya Laktyushin
2019-12-16 21:55:57 +04:00
parent 165c334854
commit 06522652f9
8 changed files with 210 additions and 181 deletions

View File

@@ -537,11 +537,11 @@ final class LocationPickerControllerNode: ViewControllerTracingNode {
}
if address != nil {
if foundVenues == nil {
if foundVenues == nil && !state.searchingVenuesAround {
displayingPlacesButton = true
} else if let previousLocation = foundVenuesLocation {
let currentLocation = CLLocation(latitude: coordinate.latitude, longitude: coordinate.longitude)
if currentLocation.distance(from: previousLocation) > 500 {
if currentLocation.distance(from: previousLocation) > 300 {
displayingPlacesButton = true
}
}