The weather iOS app provides free access to weather and geo data. This is a sample project used to apply best practices and keep up to date with modern programming languages.
The weather-tracking app has a single feature component. Landing Page
is a self-contained feature component with some module dependencies as shown in the graph below.
graph TD;
WeatherApp-->LandingPage;
LandingPage-->RestAPI;
RestAPI-->EndpointManager;
RestAPI-->WTLogging;
EndpointManager-->WTLogging;
RestAPI-->Networking;
Networking-->WTLogging;
LandingPage-->DecoratorUI;
No location selected | Searching loading | Location details | Error handler |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Searching result | Details |
---|---|
![]() |
![]() |
- Clone the Repository
- Run the following command in your terminal:
git clone git@github.com:mrugama/Weather.git
- Open the Project
- Open the project in Xcode by double-clicking on Weather.xcodeproj.
- Update Key API
- Go to the file EndpointManager and paste your own API key. Please go to The Weather API documentation to get your API Key
- Run the App
- Select the desired simulator or device in Xcode.
- Press the Run button (
▶️ ) or use the shortcut Cmd + R to build and launch the app.