Эх сурвалжийг харах

var to let tweak on ViewController

Andrea Bizzotto 7 жил өмнө
parent
commit
725ca7bd6c

+ 4 - 4
SwiftyStoreKit-iOS-Demo/ViewController.swift

@@ -53,10 +53,10 @@ class ViewController: UIViewController {
     var nonRenewingIsAtomic: Bool { return nonRenewingAtomicSwitch.isOn }
     var autoRenewableIsAtomic: Bool { return autoRenewableAtomicSwitch.isOn }
 #else
-    var nonConsumableIsAtomic = true
-    var consumableIsAtomic = true
-    var nonRenewingIsAtomic = true
-    var autoRenewableIsAtomic = true
+    let nonConsumableIsAtomic = true
+    let consumableIsAtomic = true
+    let nonRenewingIsAtomic = true
+    let autoRenewableIsAtomic = true
 #endif
     // MARK: non consumable
     @IBAction func nonConsumableGetInfo() {