Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.48 KB | None | 0 0
  1. @objc public class GlobalVariables : NSObject{
  2.  
  3.     // These are the properties you can store in your singleton
  4.     @objc public var ItemsNoOrderFromDB = [RecallItem]()
  5.     @objc public var groups = [RecallGroup]()
  6.     ...
  7.     @objc public var user = UserInfo() //will also load in from Local
  8.  
  9.     @objc public class var sharedManager: GlobalVariables {
  10.         struct Static {
  11.             static let instance = GlobalVariables()
  12.         }
  13.         return Static.instance
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement