We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e93408 commit 2953b58Copy full SHA for 2953b58
WooCommerce/Classes/Extensions/UserDefaults+Woo.swift
@@ -44,4 +44,15 @@ extension UserDefaults {
44
set(newValue, forKey: key.rawValue)
45
}
46
47
+
48
+ /// Subscript: "Type Inference Fallback". To be used whenever the type cannot be automatically inferred!
49
+ ///
50
+ subscript(key: Key) -> Any? {
51
+ get {
52
+ return value(forKey: key.rawValue)
53
+ }
54
+ set {
55
+ set(newValue, forKey: key.rawValue)
56
57
58
0 commit comments