Last active
June 24, 2019 18:34
-
-
Save Arrlindii/01cda1ec03e32f8a3fb81147c2ff639d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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