SwiftWeather is a small iOS app developed in Swift language.
Because Apple keeps changing the Swift compiler, the current version can be compiled in Xcode 6 beta 6. I will update the code when Apple updates Xcode 6.
- Swift Programming Language
- CocoaPods
- AFNetworking
- Core Location
- Can not set font size for UILabel in Storyboard. (Xcode 6 beta2)
- Can not change the status bar's colour. (Xcode 6 beta2)
Because the app uses CocoaPods, we need to run pod install
to install all the pods.
- Open Terminal app.
- Change directory to the project folder.
cd $project_dir
- List
ls
all the file to check whether Podfile file is in the folder? - If the Podfile has been found, then execute
pod install
- If the Mac OS doesn't have CocoaPods installed. Please follow CocoaPods Getting Started to install.
- Once complete installation, open Swift Weather.xcworkspace file with Xcode 6.
- Press Cmd + B to build the app.
- Press Cmd + R to run the app on Simulator.
- Thanks to johnsonjake for adding iOS 8 support and improving the UI/UX.