Answers for "Delete Realm database swift"

0

Delete Realm database swift

var realm = try! Realm()

open func DeleteUserInformation(){
        
        realm.beginWrite()
        
        let mUserList = try! realm.objects(User.self)
        realm.delete(mUserList)
        
        
        try! realm.commitWrite()
        
    }
Posted by: Guest on October-27-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language