class FileManager { // static property to create singleton static let fileObj = FileManager() ... } // access the singleton let data = FileManger.fileObj