Welcome to WeatherApp, an iOS web application designed to provide weather information to users. This README will guide you through the features of the app and provide instructions on how to set it up.
WeatherApp comes with the following features:
- Dark Mode: The app supports dark mode, providing users with a visually appealing experience in low-light environments.
- Vector Images: Utilizes vector images as image assets, ensuring scalability and high-quality visuals across different device resolutions.
- User Input: Implements UITextField to allow users to input their desired location for weather information.
- Delegate Pattern: Utilizes the delegate pattern to handle user interactions and communication between objects.
- Swift Protocols and Extensions: Utilizes Swift protocols and extensions for code organization and reusability.
- Guard Keyword: Demonstrates the use of the Swift guard keyword for optional unwrapping and early exit in code blocks.
- Computed Properties: Utilizes Swift computed properties to provide dynamic data access and manipulation.
- Closures and Completion Handlers: Demonstrates the use of Swift closures and completion handlers for asynchronous operations and data fetching.
- URLSession: Utilizes URLSession for networking and making HTTP requests to fetch weather data.
- JSON Parsing: Utilizes the native Encodable and Decodable protocols to parse JSON data retrieved from weather APIs.
- Grand Central Dispatch (GCD): Utilizes GCD to manage asynchronous tasks and ensure UI responsiveness by fetching data on the main thread.
- Core Location: Utilizes Core Location to access the device's GPS and retrieve the user's current location for weather information.
To set up WeatherApp on your iOS device or simulator, follow these steps:
- Clone the repository to your local machine.
- Open the project in Xcode.
- Build and run the project on your iOS device or simulator.
- Grant necessary permissions for location access if prompted.
- Enjoy using WeatherApp to get real-time weather updates!