WeatherApp is an iOS application designed to help users search for locations and check weather information. The app integrates with the WeatherAPI to provide real-time weather data for various locations.
- Search for locations by name.
- View current weather details for a selected location.
- Clean and intuitive user interface.
- Xcode 15 or later
- iOS 17.0 or later
- A valid WeatherAPI key
Clone the repository to your local machine:
git clone https://github.com/your-repo/WeatherApp.git
cd WeatherApp
No external dependencies are required for this project as it is built with native Swift and SwiftUI.
To run the project, you need to replace the placeholder API key with your valid WeatherAPI key. Follow these steps:
- Obtain a WeatherAPI key from WeatherAPI’s website.
- Open the Configuration folder in the project directory.
- Replace REPLACE_WITH_YOUR_KEY in the following files with your actual API key: • Dev.xcconfig • Prod.xcconfig
You will be prompted with an error message if the key is not replaced.
- Open WeatherApp.xcodeproj or WeatherApp.xcworkspace in Xcode.
- Select the appropriate scheme (Debug or Release) from the toolbar.
- Choose your desired simulator or physical device for testing.
- Build the project by pressing Cmd + B or selecting Product > Build from the menu bar.
- Run the app by pressing Cmd + R or selecting Product > Run from the menu bar.
Once the app is running, search for any location and view its current weather details!
If you encounter issues:
- Ensure you’ve replaced the API key in the xcconfig files.
- Make sure your WeatherAPI key is valid and has sufficient API call limits.
- Ensure you have an active internet connection while using the app.
If you’d like to contribute to this project, feel free to fork the repository and submit a pull request.
This project is open-source and available under the MIT License.