C8C576F6184B547435CFF0F3/* Pods-1Weather.debug.xcconfig */={isa=PBXFileReference;includeInIndex=1;lastKnownFileType=text.xcconfig;name="Pods-1Weather.debug.xcconfig";path="Target Support Files/Pods-1Weather/Pods-1Weather.debug.xcconfig";sourceTree="<group>";};
C8C576F6184B547435CFF0F3/* Pods-1Weather.debug.xcconfig */={isa=PBXFileReference;includeInIndex=1;lastKnownFileType=text.xcconfig;name="Pods-1Weather.debug.xcconfig";path="Target Support Files/Pods-1Weather/Pods-1Weather.debug.xcconfig";sourceTree="<group>";};
// Deletes the location if found, register/deregister for PP notifications, change selected location to first item if it's the same as deleted location
// Return true if it added as a new location, false if it didn't add it or it was a dup
self.delegate?.viewModelError(model:self,title:nil,message:"To keep your 1Weather running in tip-top shape, please limit the number of locations to 12.".localized)
return
}
ifWeatherUpdateManager.shared.addLocation(city){
self.displayMode=.savedCities
}
else{
self.delegate?.viewModelError(model:self,title:"Error",message:"Failed to add location")
}
}
funcdelete(city:WdtLocation){
// TODO: Just update self.cities, it will trigger a viewModelDidChange call