One of the siplest update notification classes version: 2018-APRIL9
- A website which will contain the latest version of your app in plain text(I Use 000webhost)
- (Optional) A website which will cotain how to install your app
- (Optional) A website which will cotain your ChangeLog in plain text
- Swift 3.2 or later
- Xcode
- Download "Check for update.swift" Download project files
- Drag It to your Project
- Use cmd⌘ + B to build the project
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
//basics:
Update_Check.versionOfApp = 0.2
Update_Check.webisite_containing_latest_version = "https://dovydasberei.000webhostapp.com/public.html"
check_for_update()
// changable stuff:
Update_Check.should_check_for_update = true
Update_Check.show_changelog_as_an_option = true
Update_Check.webisite_containing_changelog = "https://dovydasberei.000webhostapp.com/electricity%20run%20change%20log.html"
Update_Check.show_how_2install_option = true
Update_Check.webisite_containing_How2_install = "https://dovydasberei.000webhostapp.com/how%20to%20install.html"
Update_Check.Use_diferent_View_controller = ViewController()
Update_Check.update_messege = "New Version of Electricity Run came out, please update to it when posible :) CURENT VERSION: \(Update_Check.versionOfApp) -Admin"
// "\(versionOfApp)" displays versionOfApp
Update_Check.update_title = ""
// \(pm) displays webisite_containing_current_version number
//change the update title on the 137 line of code, but i don't recomend to change it
// How the title will apear: 1.1 Just came out
Update_Check.change_log_popup_title = "Changelog"
}
- Pubished the app
- IOS 8 Support
- CocoaPods support
- Carthage support
- add a skip version button
-
More information of what every command does will be listed in the Check for update.swift file
-
If you use a different View controller where the notification will appear then, don't forget to do
Update_Check.Use_diferent_View_controller = YourViewController()
, the default is ViewController() -
Every command is prefilled, so you can just paste
check_for_update()
in yourviewDidLoad()
to test everything out
contact me if you find a problem or if you are a developer who whant's to chat :D
Email: dovydasbereisa@gmail.com
Twitter: @dovydasbere
This project is licensed under MIT License