Skip to content

Instantly share code, notes, and snippets.

@noxt
Created February 19, 2019 11:43
Show Gist options
  • Save noxt/ca77ca21c00be0e6fa25f21e31943a5f to your computer and use it in GitHub Desktop.
Save noxt/ca77ca21c00be0e6fa25f21e31943a5f to your computer and use it in GitHub Desktop.
AppFeature State
// Features/App/AppState.swift
extension AppFeature {
struct State: Codable {
let accountsState: AccountsFeature.State
let categoriesState: CategoriesFeature.State
let keyboardState: KeyboardFeature.State
let transactionState: TransactionFeature.State
static let initial = State(
accountsState: .initial,
categoriesState: .initial,
keyboardState: .initial,
transactionState: .initial
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment