Skip to content

marcabreracast/realm-swift-samples

 
 

Repository files navigation

![Realm]((https://github.com/realm/realm-swift/raw/master/logo.png)

License

Realm Swift Samples

This repo contains Swift Samples that demonstrate the usage of Realm Swift SDK.

Realm Swift documentation can be found here and API reference here.

To install Realm Swift SDK you can consult our Installation documentation or our Get Started on our repository. You may find the Quick Start - Realm Swift helpful if you are using Realm for the first time as well.

To learn more about using Realm with Atlas App Services, refer to the Atlas Device Sync and connecting to Atlas App Services documentation.

Samples list

  • Sync connection state changes, Error handling, and Client reset Sample App - This project implements a simple example App which showcases the following use cases:

    • Listening for user state changes (logged in, logged out, or removed).
    • Listening if the underlying sync session state, is active, inactive or invalid.
    • Listening if the underlying sync session connection state is connecting, connected, disconnected.
    • Listening for sync errors using sync's error handler.
    • Listening for pre and post client resets blocks with .recoverOrDiscardUnsyncedChanges mode.
  • Analytics/Telemetric Data -The app addresses the following points:

    • Use asymmetric sync to be able to send data uni-directionally to MongoDB Atlas.
    • Configure an App to be able to send asymmetric data.
    • Be able to send events/data easily/fast during the app life cycle.
    • Track easily events/screen views/clicks on a SwiftUI context.
    • Model data to be displayable in MongoDB Charts.

About

Sample applications for realm-swift database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%