//
//  User.swift
//  TOZ_iOS
//
//  Copyright © 2017 intive. All rights reserved.
//

import Foundation

final class User {
    static let shared: User = User()

    var isSignedIn: Bool {
        if BackendAuth.shared.token != nil {
            return true
        } else {
            return false
        }
    }
}

//
//  User.swift
//  TOZ_iOS
//
//  Copyright © 2017 intive. All rights reserved.
//

import Foundation

final class User {
    private(set) var isSignedIn: Bool

    static var shared: User = User(token: BackendAuth.shared.token)

    init(token: String?) {
        if token != nil {
            self.isSignedIn = true
        } else {
            self.isSignedIn = false
        }
    }
}

--- 
+++ 
@@ -8,15 +8,13 @@
 import Foundation
 
 final class User {
-    private(set) var isSignedIn: Bool
+    static let shared: User = User()
 
-    static var shared: User = User(token: BackendAuth.shared.token)
-
-    init(token: String?) {
-        if token != nil {
-            self.isSignedIn = true
+    var isSignedIn: Bool {
+        if BackendAuth.shared.token != nil {
+            return true
         } else {
-            self.isSignedIn = false
+            return false
         }
     }
 }
Make isSignedIn a computed property
