What you suggested is the way that I have always implemented it.
public class Singleton
{
static public let sharedInstance = Singleton();
private init()
{
}
}
Singleton, - . , Swift 2 , - :
var mySingleton = Singleton();
:
'Singleton' cannot be constructed because it has no accessible initializers