I'm implementing singleton pattern in Swift. I came to a point I need to inherit the singleton class.
I found a hint using this: [[[self class] alloc] init]
How to translate that in Swift?
I want to create something:
class var sharedInstance : MyClass //instanceType
{
    struct Static {                    // something like this
        static let instance: MyClass =  [[[self class] alloc] init]
    }
    return Static.instance
}
Thanks.
 
     
     
     
     
     
    