How to check if Realm DataBase is empty or not


#1

hi,
I want to check if the realm DataBase is empty or not using swift for a IOS application.
I that possible? if yes, how?

thanks in advance!

Benji


#2

Benji,

if realm.isEmpty {

//do something
} else {

//Do something else
}

Blessings,
—Mark