Working with SQLite is a pain in Swift - that's where SwiftData comes in.
SwiftData is a simple and effective wrapper around the SQLite3 C API written completely in Swift.
Features
Execute SQL statements directly
Bind objects conveniently to a string of SQL
Queries return

Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the iOS & OSX versions of Realm, for both Swift & Objective-C.
Features
Mobile-first: Realm is the first database built from the ground