Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @objc public class GlobalVariables : NSObject{
- // These are the properties you can store in your singleton
- @objc public var ItemsNoOrderFromDB = [RecallItem]()
- @objc public var groups = [RecallGroup]()
- ...
- @objc public var user = UserInfo() //will also load in from Local
- @objc public class var sharedManager: GlobalVariables {
- struct Static {
- static let instance = GlobalVariables()
- }
- return Static.instance
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement