Contents

stanfordspezi/spezichoir

This source file is part of the Stanford Spezi open source project

Setup

1. Add Spezi CHOIR as a Dependency

You need to add the SpeziCHOIR Swift package to your app in Xcode or Swift package.

[!IMPORTANT] If your application is not yet configured to use Spezi, follow the Spezi setup article to set up the core Spezi infrastructure.

2. Add the Module to your App

Add the CHOIRModule to your App's configuration:

import Spezi
import SpeziCHOIR

class ExampleAppDelegate: SpeziAppDelegate {
    override var configuration: Configuration {
        Configuration {
            CHOIRModule(service: CHOIRService(serverURL: URL(string: "https://choir.example.com")!))
            // your other modules...
        }
    }
}

The CHOIRAccountStorageProvider can be added to your App's account configuration like so:

import Spezi
import SpeziAccount
import SpeziCHOIR
import SpeziFirebaseAccount

class ExampleAppDelegate: SpeziAppDelegate {
    override var configuration: Configuration {
        Configuration {
             AccountConfiguration(
                service: FirebaseAccountService(
                    providers: [.emailAndPassword]
                ),
                storageProvider: CHOIRAccountStorageProvider(siteId: "exampleSite"),
                configuration: CHOIRService.valueConfiguration
            )
            // your other modules...
        }
    }
}

License

This project is licensed under the MIT License. See Licenses for more information.

Contributors

This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University. See CONTRIBUTORS.md for a full list of all TemplatePackage contributors.

[Stanford Byers Center for Biodesign Logo] [Stanford Byers Center for Biodesign Logo]

Package Metadata

Repository: stanfordspezi/spezichoir

Default branch: main

README: README.md