This is a weather app where temperature will be showed based on user’s current location. User can also retrieve weather report by entering the city name. Weather application will be shown current as well as for the next 5 days’ weather report. User also can sort weather data based on date.
Used Tool and programming language
- Xcode 13.2.1
- Swift 5
- Clone the repository – https://github.com/jilmonp/WeatherAppSwift.git
- Install Cocoapods
- Cocoapods(https://cocoapods.org/) is a dependency manager for Swift projects. In our apps we use swift lint library. It is an open-source tool to enforce Swift style and conventions. You can follow the instructions on how to install Cocoapods by heading over to their website, or you can simply try and run
- sudo gem install cocoapods
- Install the pods
- pod init
- pod install
- A tool to enforce Swift style and conventions, loosely based on the now archived GitHub Swift Style Guide. SwiftLint enforces the style guide rules that are generally accepted by the Swift community. These rules are well described in popular style guides like Ray Wenderlich’s Swift Style Guide.
Using Swift lint Library
Simply add the following line to your Podfile: pod ‘SwiftLint’