mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-06-06 20:45:17 +00:00
COVIDSafe code from version 1.1
This commit is contained in:
commit
3640e52eb2
330 changed files with 261540 additions and 0 deletions
44
CovidSafe/OnboardingStep2cViewController.swift
Normal file
44
CovidSafe/OnboardingStep2cViewController.swift
Normal file
|
@ -0,0 +1,44 @@
|
|||
//
|
||||
// OnboardingStep2cViewController.swift
|
||||
// CovidSafe
|
||||
//
|
||||
// Copyright © 2020 Australian Government. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class OnboardingStep2cViewController: UIViewController {
|
||||
|
||||
@IBAction func enabledBluetoothBtn(_ sender: UIButton) {
|
||||
UserDefaults.standard.set(true, forKey: "turnedOnBluetooth")
|
||||
|
||||
DispatchQueue.main.async {
|
||||
UNUserNotificationCenter.current().getNotificationSettings(completionHandler: { [weak self] settings in
|
||||
DispatchQueue.main.async {
|
||||
if settings.authorizationStatus == .authorized && BluetraceManager.shared.isBluetoothAuthorized() && BluetraceManager.shared.isBluetoothOn() {
|
||||
self?.performSegue(withIdentifier: "showFullySetUpFromTurnOnBtSegue", sender: self)
|
||||
} else {
|
||||
self?.performSegue(withIdentifier: "showHomeFromTurnOnBtSegue", sender: self)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
// Do any additional setup after loading the view.
|
||||
}
|
||||
|
||||
/*
|
||||
// MARK: - Navigation
|
||||
|
||||
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
||||
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
|
||||
// Get the new view controller using segue.destination.
|
||||
// Pass the selected object to the new view controller.
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue