WeatherApp is a simple weather application built using UIKit in Swift. It fetches weather data from an API and displays the current weather conditions for a specified location.
- Displays current temperature in Celsius or Fahrenheit.
- Shows weather condition description and icon.
- Updates background image based on weather conditions.
- Allows users to search for weather by location.
- iOS 13.0+
- Xcode 11.0+
- Swift 5.0+
- Clone the repository:
git clone https://github.com/yourusername/WeatherApp.git
- Open the project in Xcode:
cd WeatherApp open WeatherApp.xcodeproj
- Build and run the project on your simulator or device.
- Launch the app.
- Enter a location in the search bar and press enter.
- The app will display the current weather conditions for the specified location.
AppDelegate.swift
: Handles application lifecycle events.SceneDelegate.swift
: Manages the app's scenes.ViewController.swift
: Main view controller that handles UI updates and API calls.DecodingType/WeatherResponseType.swift
: Defines the data models for decoding the weather API response.Assets.xcassets
: Contains image assets for different weather conditions.Base.lproj/Main.storyboard
: Defines the UI layout of the app.Info.plist
: Contains app configuration and permissions.
The app fetches weather data from a weather API. The API response is decoded into Swift models defined in WeatherResponseType
.
This project is licensed under the MIT License. See the LICENSE file for details.
- Weather icons are provided by SF Symbols.
- Background images are included in the project assets.
For any questions or feedback, please contact lalanachamika123@gmail.com.