Skip to content

Instantly share code, notes, and snippets.

@Arrlindii
Last active June 24, 2019 18:34
Show Gist options
  • Select an option

  • Save Arrlindii/01cda1ec03e32f8a3fb81147c2ff639d to your computer and use it in GitHub Desktop.

Select an option

Save Arrlindii/01cda1ec03e32f8a3fb81147c2ff639d to your computer and use it in GitHub Desktop.
let weatherPublisher = networkSevice.request(.weather(lat: lat, lon: lon))
let locationImagePublisher = networkSevice.request(.locationImage(lat: lat, lon: lon))
Publishers.Zip(weatherPublisher, locationImagePublisher).sink { (weather, image) in
self.weatherLabel.text = weather
self.locationImageView.image = image
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment