Showing
2 changed files
with
6 additions
and
1 deletions
No preview for this file type
| ... | @@ -11,6 +11,7 @@ import SwiftUI | ... | @@ -11,6 +11,7 @@ import SwiftUI |
| 11 | public struct GlobalVariables { | 11 | public struct GlobalVariables { |
| 12 | static var campaigns: Array<swiftApi.CampaignItemModel> = [] | 12 | static var campaigns: Array<swiftApi.CampaignItemModel> = [] |
| 13 | static var customerState: swiftApi.CustomerStateModel? | 13 | static var customerState: swiftApi.CustomerStateModel? |
| 14 | + static var userTag: String = "" | ||
| 14 | } | 15 | } |
| 15 | 16 | ||
| 16 | public class swiftApi { | 17 | public class swiftApi { |
| ... | @@ -20,7 +21,11 @@ public class swiftApi { | ... | @@ -20,7 +21,11 @@ public class swiftApi { |
| 20 | } | 21 | } |
| 21 | 22 | ||
| 22 | public func getUserTag() -> String { | 23 | public func getUserTag() -> String { |
| 23 | - return "1" | 24 | + return GlobalVariables.userTag |
| 25 | + } | ||
| 26 | + | ||
| 27 | + public func setUserTag(_ newUserTag: String) -> Void { | ||
| 28 | + GlobalVariables.userTag = newUserTag | ||
| 24 | } | 29 | } |
| 25 | 30 | ||
| 26 | public class DFY { | 31 | public class DFY { | ... | ... |
-
Please register or login to post a comment