react-native-mytatva-rn-sdk 1.2.57 → 1.2.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
import UIKit
|
|
9
9
|
import AVFoundation
|
|
10
10
|
class ConnectToSensorViewController: UIViewController {
|
|
11
|
+
let viewModel = FinalViewModel()
|
|
12
|
+
|
|
11
13
|
@IBOutlet weak var contactSupport: CustomOverlayButton!
|
|
12
14
|
@IBOutlet weak var customTopView: CustomTopUIView!
|
|
13
15
|
@IBOutlet weak var tableView: UITableView!
|
|
@@ -51,6 +53,7 @@ class ConnectToSensorViewController: UIViewController {
|
|
|
51
53
|
var isCodeDetected = false
|
|
52
54
|
var isPermissionGiven: Bool = false
|
|
53
55
|
let manager = KLTBluetoothManager.shared()
|
|
56
|
+
let debouncer = EnumDebouncer<CGMConnectionStatus>()
|
|
54
57
|
|
|
55
58
|
override func viewDidLoad() {
|
|
56
59
|
super.viewDidLoad()
|
|
@@ -240,6 +243,7 @@ class ConnectToSensorViewController: UIViewController {
|
|
|
240
243
|
UserDefaults.standard.synchronize()
|
|
241
244
|
//self.connected?()
|
|
242
245
|
//controller.navigationController?.popViewController(animated: true)
|
|
246
|
+
viewModel.debouncer.update(with: .connected)
|
|
243
247
|
self.showConfirmInsulinUser()
|
|
244
248
|
//showConfirmInsulinUser()
|
|
245
249
|
return
|