Giter VIP home page Giter VIP logo

supreme-funicular's Introduction

Weather Map

This is an iOS app built with SwiftUI that displays a map with weather data for selected cities.

Features

  • See a map with annotations for predefined major cities
  • Tap on a city annotation to see the current temperature
  • Day/night mode toggle to switch between light and dark themes
  • List view showing all cities and their current temperatures
  • Detail views for each city with extended forecasts

Implementation

This app uses:

  • SwiftUI for the UI and views
  • MapKit to display the city map annotations
  • CoreLocation to get geographic data
  • Combine framework to manage state
  • MVVM architecture and observable objects

Some key classes:

  • CityViewModel - Fetches and stores weather data for cities
  • MapView - Displays a map with city annotations
  • CityDetail - Shows additional weather data for a city

Getting Started

To run this app on your local machine:

  1. Clone this repo
  2. Open project in Xcode
  3. Run the SwiftUI preview or build to a simulator/device target

Feel free to use this as a starting point for implementing weather functionality in your own SwiftUI apps!

Contributions

Contributions and ideas to improve this are welcome! Please open an issue or submit a pull request with any fixes or new features.

Some ideas:

  • Adding network calls to fetch real-time weather data
  • Implementing data persistence
  • Support for additional cities
  • Visual weather effects on map
  • Animations and transitions# supreme-funicular
  • Add a LLM to simulate weather iformationand give users more details. SwiftUI WeatherApp created with TraceAI

supreme-funicular's People

Contributors

africanus12 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.