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
This challenge is aimed at testing my ability to implement API as The best way to learn coding is by coding
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 Tools | Usage/Purpose |
---|---|
Swift | Language |
UIKit | UI |
The Project uses OpenWeather API :
- OpenWeather API 🔑 for Weather Data and.
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.
- Create an account at openweathermap.org
- Go to settings from the profile icon
- Click on API
- 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>
- Xcode 14.0 or later
- iOS v13.0 or later
- macOS v10.10 or later
Configuring the Xcode project requires a few steps in Xcode to get up and running
- Configure each Mac and iOS device you plan to test, Create or use an existing Apple ID account.
- Clone or download the App
- Open the cloned or downloaded project
- 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.
- 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)
- Select the Device you want the App to run on and Click run
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.