read text aloud
This commit is contained in:
@@ -46,17 +46,19 @@ public struct AppServices {
|
||||
public var layouts: LayoutPersisting
|
||||
/// Dialogs, pasteboard, Finder.
|
||||
public var system: SystemActing
|
||||
public var speech: SpeechServicing
|
||||
/// Builds the services for a project folder.
|
||||
public var makeWorkspace: (URL) -> WorkspaceServices
|
||||
public var makeWatcher: () -> FileWatching
|
||||
|
||||
/// Every store is passed in, so a test can never reach the user's real recents, sessions or layouts.
|
||||
public init(recentProjects: RecentProjectsStoring, session: SessionStoring, layouts: LayoutPersisting, system: SystemActing,
|
||||
makeWorkspace: @escaping (URL) -> WorkspaceServices, makeWatcher: @escaping () -> FileWatching) {
|
||||
speech: SpeechServicing, makeWorkspace: @escaping (URL) -> WorkspaceServices, makeWatcher: @escaping () -> FileWatching) {
|
||||
self.recentProjects = recentProjects
|
||||
self.session = session
|
||||
self.layouts = layouts
|
||||
self.system = system
|
||||
self.speech = speech
|
||||
self.makeWorkspace = makeWorkspace
|
||||
self.makeWatcher = makeWatcher
|
||||
}
|
||||
@@ -66,6 +68,7 @@ public struct AppServices {
|
||||
session: SessionStore(),
|
||||
layouts: UserDefaultsLayoutStore(),
|
||||
system: LiveSystemActions(),
|
||||
speech: SpeechService(),
|
||||
makeWorkspace: WorkspaceServices.live(root:),
|
||||
makeWatcher: { FSEventsWatcher() }
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user