🗄️🔐 DatabaseKit + AuthKit
DatabaseKit Example
import FirebaseKit

DatabaseKit Example

          • DatabaseExampleView.swift
        • FirebaseBackend.swift
  • To show how to use DatabaseKit, we created an example use case.

    Its a simple Postboard, that allows users to view all created posts, but needs user authentication to create a new post.

    DatabaseKit Example

    All the relevant functions can be found in FirebaseBackend.swift

    The PostCreationView() inside DatabaseExampleView.swift is protected by .requireLogin() to only allow authenticated users to create a new post. Read more about this in Restrict Features with Auth.