A sleek and minimalistic weather application for iOS that provides accurate weather information using the OpenWeatherMap API.
- 🌍 Current Location Weather: Get real-time weather updates based on your current location.
- 🏙️ Search for Cities: Input any city name to retrieve its weather data.
- 🔄 Refresh with a Swipe: Easily refresh the weather data with a simple gesture.
- 📊 Detailed Weather Information: View temperature, humidity, wind speed, and more.
- Language: Swift
- Framework: SwiftUI
- API: OpenWeatherMap API
- Platform: iOS 17+
Before you begin, ensure you have met the following requirements:
- 📱 iOS device or simulator running on macOS.
- 🛠️ Xcode (version 13.0 or above).
- 🌐 OpenWeatherMap API Key (you’ll need to generate your API key).
To fully use the app, ensure the following permissions are granted:
- Location Access: To fetch weather data for your current location.
Follow these steps to get the app up and running:
- Clone the repository:
git clone https://github.com/keremsemiz/SwiftWeatherApp.git
- Open the project in Xcode: Open
SwiftWeatherApp.xcodeproj
in Xcode. - Install Xcode Developer Tools: Xcode should prompt you to install necessary tools. If not, you can install them via Xcode > Preferences > Downloads.
- Simulate the App: Choose a simulator (or your connected device) and press Cmd + R to run the app.
- Set your API Key: Go to Constants.swift and replace YOUR_API_KEY with your OpenWeatherMap API Key.
Once the app is installed, follow these simple steps:
- Allow location permissions: On the first launch, allow the app to access your current location.
- Search for a city: Enter any city name in the search bar or use your current location to get weather updates.
- Refresh the weather data: Swipe down to refresh the weather details.
- View detailed weather info: Access details like temperature, humidity, wind speed, etc.
The app uses the OpenWeatherMap API to fetch live weather data. For more information on how the API works, visit OpenWeatherMap Documentation.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create your feature branch:
git checkout -b feature/YourFeature
- Commit your changes:
git commit -m 'Add new feature'