Last active
August 9, 2018 09:54
-
-
Save Gatada/66bcfaec54ef775160d478cdfc62e732 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppDelegate: UIResponder, UIApplicationDelegate { | |
public enum Shared { | |
static public var Heartbeat = HeartbeatManager() | |
} | |
} | |
public class HeartbeatManager { | |
public init() {} | |
func start() { | |
print("Running…") | |
} | |
} | |
func accessingSharedHeartbeat() { | |
AppDelegate.Shared.Heartbeat.start() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment