Skip to content

SDushan/swift_weather_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Swift Weather Application

Sample weather application developed using Swift & OpenWeatherMap which displays the data of weather for current location using GPS & also able to search data for specific city.

Available Features

  • Support dark mode
  • Handle UITextField
  • HTTP request with URLSession
  • JSON parse with JSONDecoder
  • Support AutoLayout
  • Request user permission to access location
  • Use CoreLocation to get GPS data

Setup instructions

Before run the project, you need to signIn & get an API key from OpenWeatherMap. Then change weatherURl inside weatherManager file with your API key.

let weatherURL = "https://api.openweathermap.org/data/2.5/weather?appid={API_Key}&units=metric"