import UIKit import SwiftCSV import RealmSwift // default realm object let realm = try! Realm() class ViewController: UIViewController { //... }