read text aloud

This commit is contained in:
2026-10-23 09:40:20 +02:00
parent 281f5465a6
commit 92b90c0e13
20 changed files with 471 additions and 18 deletions
@@ -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() }
)