Skip to content

A way of using Realm to persist data in a SwiftUI project

Notifications You must be signed in to change notification settings

clarknt/realm-swiftui-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realm SwiftUI Demo

A way of using Realm to persist data in a SwiftUI project.

This builds on one of the projects from "100 days of SwiftUI" (original here), by adding Realm persistence to the previously available File and CoreData.

To switch between persistence implementations, inject one of those in SceneDelegate.swift: FilePersons(), CoreDataPersons() or RealmPersons().

Note

Swift Package Manager initial retrieval of Realm can be a bit slow.

Credits

Photos by Austin Wade, Daniel Höhe, Nathaniel Vala, David Rotimi, Johan De Jager, Anastasia Vityukova on Unsplash

Screenshots

screenshot1 screenshot2 screenshot3 screenshot4

About

A way of using Realm to persist data in a SwiftUI project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages