 
 import UIKit
 import RealmSwift
+import UIEmptyState
 import LPSnackbar
 
 class ClassesTableViewController: UITableViewController {

        }
    }
}

// MARK: Split View Delegation


        // Delete from Realm
        deleteClass(classToDel)
    
        reloadEmptyState()
        
        // Present snack bar to allow undo
        let snack = LPSnackbar(title: "Class deleted.", buttonTitle: "UNDO", displayDuration: 3.0)
        snack.viewToDisplayIn = self.view
        snack.bottomSpacing = (tabBarController?.tabBar.frame.height ?? 0) + 12
        
        snack.show() { [weak self] undone in
            guard undone else { return }
            DatabaseManager.shared.addObject(copy)
            self?.reloadEmptyState()
        }
    }
    
