WeatherApp - A simple Weather App using Realm

Overview

WeatherApp

A simple app to preview 16 day forecast and:

  • Show a list of weather forecast
  • Shows weather details.
  • Shows settings view to change from Centigrade to Fahrenheit and vice versa.
  • Offline/Local storage using Realm Framework.
  • Local Notifications to show weather alert in each morning and night.

I am using the 16 Day Weather Forecast of this API. https://api.weatherbit.io/v2.0/forecast/daily?key=[api-key]&days=[days]&lat=[latitude]&lon=[longitude]&units=M sample-key To test this API, For testAPI I used

  • latitude and longitude for current user location
  • 16 for days
  • a specified api-key e9d258e0555142618aabc4f395b62dce

 

App Flow:

   

Simulator.Screen.Recording.-.iPhone.11.-.2022-02-06.at.23.14.11.mov

   

Tools And Resources Used

  • CocoaPods - CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 33 thousand libraries and is used in over 2.2 million apps. CocoaPods can help you scale your projects elegantly.

Library Used

  • RealmSwift - Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the iOS, macOS, tvOS & watchOS versions of Realm Swift & Realm Objective-C.
  • ReachabilitySwift - Reachability.swift is a replacement for Apple's Reachability sample, re-written in Swift with closures.
  • Alamofire - Alamofire is an HTTP networking library written in Swift.
  • SwifterSwift - SwifterSwift is a collection of over 500 native Swift extensions, with handy methods, syntactic sugar, and more.
  • SwiftLocation - SwiftLocation is a lightweight Swift Library that provides an easy way to work with location-related functionalities.

 

Installation

  • Installation by cloning the repository
  • Go to directory
  • Open terminal located at this directory
  • Enter "pod install" command to install all used libraries
  • Open WeatherApp.xcworkspace project
  • use command + B or Product -> Build to build the project
  • Press run icon in Xcode or command + R to run the project on Simulator

   

Architecture

I used MVVM pattern:

    MVVM



You might also like...
Simple Weather app to display future weather of 3 cities

WeatherApp Simple Weather app to display future weather of 3 cities Test project for a small weather application Overview For the test project a small

A SwiftUI Weather App powered by World Weather Online API
A SwiftUI Weather App powered by World Weather Online API

SwiftUI-Weather The SwiftUI Weather app, allow users get the current weather for a particular locatio and view a 5-day weather forecast for the select

Weather forecast app that allows the user to either look for weather at their current location based on the GPS data or search for another city manually.
Weather forecast app that allows the user to either look for weather at their current location based on the GPS data or search for another city manually.

⛅️ Cloudy Weather forecast app that allows the user to either look for weather at their current location based on the GPS data or search for another c

Swift Language Weather is an iOS weather app developed in Swift
Swift Language Weather is an iOS weather app developed in Swift

Swift Language Weather SwiftWeather has renamed to Swift Language Weather. Because this repo is ranked number one in Google when we search "Swift Weat

LiveWeatherApp - Live Weather App - Displays Live Weather Data with OpenWeather API
LiveWeatherApp - Live Weather App - Displays Live Weather Data with OpenWeather API

Live Weather App - Displays Live Weather Data with OpenWeather API Learned about

WeatherApps - Simple Weather Apps Using Core Location
WeatherApps - Simple Weather Apps Using Core Location

Simple WeatherApps Using Core Location To Get The Actual Position Using API from

A weather app made using swiftUI and lottie animations
A weather app made using swiftUI and lottie animations

Paolinsky Weather app Weather app made using swiftUI, Lottie animations and the openweather api (https://openweathermap.org/api/one-call-api) Setup Ge

A sample SwiftUI weather app using Lasso.
A sample SwiftUI weather app using Lasso.

Lasso+SwiftUI Example Weather App Overview This is a sample iOS app that demonstrates using Lasso and SwiftUI together. Feature Overview Home Screen D

WeatherSampleApp - Weather Sample app with SwiftUI consuming data from OpenWeather and using CoreLocation
WeatherSampleApp - Weather Sample app with SwiftUI consuming data from OpenWeather and using CoreLocation

WeatherSampleApp Weather application using SwiftUI Uses data provided by https:/

Owner
null
WeatherApp - A simple weather app utilizing Google Places API for search and OpenWeather for weather data

Swift Weather App About A simple weather app utilizing Google Places API for sea

null 0 Jan 5, 2022
WeatherApp - this is weather app based on AppBrewery code from bootcamp (but upgraded)

WeatherApp What was created Based on App Brewery code I've made a beautiful, dark-mode enabled weather app. It's possible to check the weather for the

Ewelina Mijal 0 Dec 30, 2021
Weatherapp - An iOS app that shows the weather forecast in Toronto

☀️ Weather App An iOS app that shows the weather forecast in Toronto ?? About Th

Ana Letícia Camargos 0 Jan 29, 2022
WeatherApp-weatherbit.io- - App, that displays the weather in defined cities

WeatherApp-weatherbit.io- App, that displays the weather in defined cities This

Fedor Sychev 1 Dec 6, 2022
Weather App with widget that fetches real weather data using the Open Weather API

WeatherExtension App Demo WeatherExtension.mp4 Description Weather App that fetches real weather data using the Open Weather API Getting Started clone

Kayla Golder 0 Oct 21, 2021
CZWeatherKit is a simple, extensible weather library for iOS, tvOS, and OS X that allows for easy fetching of weather data from various weather services.

CZWeatherKit is a simple, extensible weather library for iOS, tvOS, and OS X that allows for easy fetching of weather data from various weather services.

Comyar 455 Nov 20, 2022
Weather - Use Open weather APIs to fetch live weather data

Weather ??️ Use Open weather APIs to fetch live weather data Use Core Location p

Vicky Lee 2 Jun 3, 2022
Weather-app - Created a simple weather app on Xcode using SwiftUI, only shows one location

weather-app Created a simple weather app on Xcode using SwiftUI, only shows one

Rahul Kadiyala 1 Feb 11, 2022
A Simple Weather App Using the Open Weather Map api

The Weather, a Simple Weather App Using the Open Weather Map api. This app demos use of the Open Weather Map api. The UI is simple, with views of the

null 1 Feb 17, 2022
Ios-weather-app - A simple weather app with swift

AHOY Assignment Weather app Main Screen Settings Architecture The Architecture u

null 0 Jan 29, 2022