Skip to content

A simple weather application made 100% in swift using apple frameworks for network communication and animations

License

Notifications You must be signed in to change notification settings

juliaYamamoto/Simple-Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Weather

Version 1.0 - november 2020

This is a simple weather aplication that shows the weather of the place you currently are along with other informations as wind speed, rain, current moon state and when the sun will be up or down. You can also change between Celsius(°C) and Fahrenheit(°F)

Gif showing the main features of the app: It starts with the main screen of the phone opening the new weather application, followed by the main screen of the app asking for localization permission. After the permission is granted, it shows where the user is (city and country) and the current degrees in celsius. The bot menu is opened by scrolling up showing more information about the location as the min and max degrees, moon state, humidity and rain probability.

Table of contents

Features

  • Made 100% in Swift;
  • Using MVC Arquitecture;
  • Constraints to work in different screen sizes;
  • NSUserDefaults to remember the preference between Celsius(°C) and Fahrenheit(°F)
  • API request and json decoded natively using:
    • URLSession;
    • JSONDecoder;
    • Codable protocol for the models;

Screenshots

three screen shots. First showing the alert asking for location permission. Second showing the main screen of the app. Third showing the date, current weather and other relevant information as the current state (sunny), min and max temperature, humidity, rain probability, time when the sun rises and when it sets three screen shots. First showing the weather for the next days. Second showing the top menu open with Celsius selected as prefered metric and third showing the top menu open with Fahrenheit selected as prefered metric

Design

The app idea was designed using keynote: Screen drawings of the concept of the app.

Dark Sky API

To learn more about Dark Sky API click here.

Since it uses an ID to identify who is requesting, you will need to add your own before run the aplication (or it won't work). It can be easily done by opening the "Contants" class and adding it to the keyValue constant, where you can find a comment that says "Add your own key here".

Screenshots of the code where you need to add your own key for the app to make requisitions using the DarkSkyAPI

About

A simple weather application made 100% in swift using apple frameworks for network communication and animations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages