diff --git a/Pod/Classes/SwiftMime.swift b/Pod/Classes/SwiftMime.swift index e71fe00..a4a9d28 100644 --- a/Pod/Classes/SwiftMime.swift +++ b/Pod/Classes/SwiftMime.swift @@ -10,17 +10,20 @@ import Foundation -private let sharedInstance = SwiftMime() - -public class SwiftMime{ +public class SwiftMime { + + public static let sharedManager = SwiftMime() var types = [NSString: NSString]() var extensions = [NSString: NSString]() - public class var sharedManager : SwiftMime { - sharedInstance.loadTypesFile("mime") - sharedInstance.loadTypesFile("node") - return sharedInstance + private init() { + self.initialize() + } + + func initialize(){ + self.loadTypesFile("mime") + self.loadTypesFile("node") } public func define(map: NSDictionary){