Giter VIP home page Giter VIP logo

weather-application's Introduction

Weather Application ☀️ ⛈️

This app shows temperature and short weather report in the current position of the user.

Layout

App is made with SwiftUI. It has a vertical layout. In the layout there are two main parts:

  • icon for the current weather
  • temperature as a text

SF symbols are used to reproduce weather icons. More of the icons can be found here.

API

  • Third party API tomorrow.io is used to get the weather information. *The response from API is received in a nested json format. Therefore, some structs need to be to parsed with Swift’s Codable protocol.
  • API usage requres personal access key, which is received after signup.
  • For this app timelines API is used.
  • temperature and weatherCode fields are received for the current hour in the response.

Privacy

  • User loaction upon initialization is requested. Later, every time the user location is updated we request the weather update.
  • Used keys for info.plist file: requestWhenInUseAuthorization() , requestAlwaysAuthorization()
  • A SwiftUI project generated using Xcode 13.1 does not get separate info.plist file. Instead, keys are added in Info tab.

Result

drawing     drawing     drawing

Important before Cloning ⚠️

  • API key is deleted from github for safety reasons. You need to create your own key so make the app work.
  • Correct line 23 in WeatherAPIClient.swift by adding your key instead of {Key is deleted}

weather-application's People

Contributors

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