Skip to content

Instantly share code, notes, and snippets.

@robertvunabandi
Created November 18, 2025 05:07
Show Gist options
  • Select an option

  • Save robertvunabandi/ae479000af2c66b9e123b06078daea69 to your computer and use it in GitHub Desktop.

Select an option

Save robertvunabandi/ae479000af2c66b9e123b06078daea69 to your computer and use it in GitHub Desktop.
//
// DataStoreSeeding.swift
// Reading Journal
//
//
/// For debugging purposes when using Swift Previews, we may want
/// the data store to be loaded with some preliminary data. This enum,
/// ``DataStoreSeeding``, is what will represent that starting data.
///
/// This is only meant to be used for debugging inside SwiftUI previews.
enum DataStoreSeeding {
/// For ``AuthorsDataStore``
case author(MAuthor)
/// For ``BetaDataStore``
case beta(BetaDataStore.BetaUpdate)
/// For ``FeedbackDataStore``
case feedback(MFeedback)
/// For ``QuotesDataStore``
case quote(MQuote)
/// For ``SourcesDataStore``
case source(MSource)
/// For ``SourceSectionsDataStore``
case sourceSection(sourceId: String, section: MSourceSection)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment