Skip to content
Discussion options

You must be logged in to vote

Hey @iwt-sebastian-boldt ✌️,

I think this example from isowords will answer your question

  let store = Store(
    initialState: AppReducer.State(),
    reducer: AppReducer().transformDependency(\.self) {
      $0.audioPlayer = .liveValue
      $0.database = .live(
        path: FileManager.default
          .urls(for: .documentDirectory, in: .userDomainMask)
          .first!
          .appendingPathComponent("co.pointfree.Isowords")
          .appendingPathComponent("Isowords.sqlite3")
      )
      $0.serverConfig = .live(apiClient: $0.apiClient, build: $0.build)
    }
  )

or here's another approach

import ComposableArchitecture
import Foundation

struct URLProvider {
    var url: URL
}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@twocentstudios
Comment options

@rcarver
Comment options

@twocentstudios
Comment options

@twocentstudios
Comment options

Answer selected by iwt-sebastian-boldt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants