Created
May 3, 2016 11:07
-
-
Save cgoldsby/8e2cbb70b56859800a0c8f1d6e29438e to your computer and use it in GitHub Desktop.
This file contains 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
struct StructServiceLocator: ServiceLocatorProtocol { | |
static var sharedInstance = StructServiceLocator() | |
private init() { } | |
func provideService() -> Service { | |
return Service() | |
} | |
} | |
StructServiceLocator.sharedInstance.provideService() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment