Coder Social home page Coder Social logo

weather-app's Introduction

weather-app

Overview

Weather-APP is an iOS application built using SwiftUI, targeting iOS 17 or later. It utilizes SWiftUI, structured concurrency, and SPM for modularization. The app is structured with a focus on separation of concerns following MVVM, making it easy to maintain and extend.

Project Structure

The project is divided into several main modules:

  • Design: Contains reusable UI components, extensions, and view modifiers
  • Domain: Handles the business logic, including models, network calls, and repositories.
  • weather-app: The main app module, including assets, view models, views, and application configuration files.

Nice to have

  • Implement a way to secure the API key: currently it's impossible to secure since it's part of the openWeather URL it self!
  • Implement a Splash screen and App State to control the flows: currently there is only one flow so it was not needed.
  • Dependency injection: due to the size of the app, I chose to use mockdata of the Models for DEBUG mode. But it is possible to have MockRepositories to inject in the V/VM for testing different scenarios

Getting Started

Prerequisites

Xcode 15 or later
Swift 5.7 or later
iOS 17 or later

Usage

After installing and running the app, you can interact with the user interface to view weather information for different locations; currently it only supports temprature data. The app supports both light and dark modes and convertions between imperial and metric units.

Contributing

Contributions are welcome! Please follow these steps:

  1. Create a new branch
  2. Make your changes and commit them
  3. Push to the branch:
  4. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any questions or suggestions, please contact [email protected]

weather-app's People

Contributors

jay-py avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.