Skip to content

A simple weather App built with swift consuming Openweather API

Notifications You must be signed in to change notification settings

AwesomeJim/Check-Weather-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check-Weather-Swift

Swift 5.0 Platform

This repository is a weather application to display the current weather ☔ at the user’s location and a 5-day forecast using the Open Weather API built with swift and UIKit

Objective of the Project

This challenge is aimed at testing my ability to implement API as The best way to learn coding is by coding

✨Application Features:

This app enable users to:

  • See the weather details as well as a 5 days forecast of their current location
  • Search a location and see the weather details
Home (Dark Theme) Home (Light Theme)
More Details (Dark Theme) (Light Theme)

Tech-stack used 🛠

Tech Tools Usage/Purpose
Swift Language
UIKit UI

Development Setup ⚙️ and Pre-requisite 📝

The Project uses OpenWeather API :

  1. OpenWeather API 🔑 for Weather Data and.

⚙️ Setup Weather Data API

openweathermap.png
This project fetches weather data from the OpenWeather API.
To begin the setup, you'll need to create an account and get a free API key.

  1. Create an account at openweathermap.org
  2. Go to settings from the profile icon
  3. Click on API
  4. Click on Create

create a Config file Config.xcconfig and place your API config there

#Insert at ~/ Config.xcconfig

// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974
//
API_KEY = <Your API Key>

Build and Runtime Requirements

  • Xcode 14.0 or later
  • iOS v13.0 or later
  • macOS v10.10 or later

Configuring and Running the Project

Configuring the Xcode project requires a few steps in Xcode to get up and running

  1. Configure each Mac and iOS device you plan to test, Create or use an existing Apple ID account.
  2. Clone or download the App
  3. Open the cloned or downloaded project
  4. Configure the Team for each target within the project.
    • Open the project in the Project navigator within Xcode and select each of the targets. Set the Team on the General tab to the team associated with your developer account.
  5. Ensure iOS Developer is chosen for the Code Signing Identity setting in the Code Signing section of Target > Build Settings for the following Targets, and change the Build identifier (package id/name)
  6. Select the Device you want the App to run on and Click run

License

  Check-Weather-Swift
  Copyright (c) 2021 Awesome Jim (https://github.com/AwesomeJim/Check-Weather-Swift).

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.