OpenWeatherMapAPI is an API Client to deal with the free version of the API in your iOS Apps in a reactive way using Combine.
The Swift Package Manager is a tool for automating the distribution of Swift code.
Select File > Swift Packages > Add Package Dependency. Enter https://github.com/jorgifumi/OpenWeatherMapAPI.git
in the "Choose Package Repository" dialog.
First:
import OpenWeatherMapAPI
Then you can create an instance and make requests:
let apiClient = OpenWeatherMapAPI.initialize(apiKey: "YOUR_API_KEY")
apiClient.load(Resource<CurrentWeatherResponse>.current(latitude: 1.546, longitude: 5.454))
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License.
Jorge Lucena - @jorgifumi - [email protected]
Project Link: https://github.com/jorgifumi/OpenWeatherMapAPI
link |
Stars: 0 |
Last commit: 3 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics