Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

polish onboarding setup

altic-devba6c2b4ae693
diff --git a/.gitignore b/.gitignore
index 23ef9225..c1d804a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -189,6 +189,7 @@ SettingsStore.xcuserstate
build_dev.sh
build_and_notarize.sh
release.sh
+release_private_fi.sh
check_downloads.sh
diff --git a/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swift b/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swift
index 945e91f6..fa3e6c19 100644
--- a/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swift
+++ b/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swift
@@ -81,8 +81,8 @@ struct OnboardingAIEnhancementStepView: View {
private static let examples = [
EnhancementExample(
id: "message-format",
- raw: "Hey John, Newline, how are you doing today? Next paragraph Best Newline, thanks.",
- polished: "Hey John,\nHow are you doing today?\n\nBest,\nthanks."
+ raw: "Hey John, Newline, how are you doing today?",
+ polished: "Hey John,\nHow are you doing today?"
),
EnhancementExample(
id: "correction",
diff --git a/Sources/Fluid/UI/WelcomeView.swift b/Sources/Fluid/UI/WelcomeView.swift
index e1a7fffd..d7d7e7a9 100644
--- a/Sources/Fluid/UI/WelcomeView.swift
+++ b/Sources/Fluid/UI/WelcomeView.swift
@@ -40,354 +40,335 @@ struct WelcomeView: View {
var body: some View {
ScrollViewReader { proxy in
- ScrollView {
- VStack(alignment: .leading, spacing: 16) {
- // Header
- HStack(spacing: 10) {
- Image(systemName: "book.fill")
- .font(self.theme.typography.titleIcon)
- .foregroundStyle(self.theme.palette.accent)
- VStack(alignment: .leading, spacing: 2) {
- Text((self.asr.isAsrReady || self.asr.modelsExistOnDisk) ? "Getting Started" : "Welcome to FluidVoice")
- .font(self.theme.typography.title)
- Text("Talk anywhere. FluidVoice types for you.")
- .font(self.theme.typography.bodySmall)
- .foregroundStyle(.secondary)
- }
- }
- .padding(.bottom, 4)
+ ZStack {
+ FluidOnboardingLandingBackdrop()
+
+ ScrollView(.vertical, showsIndicators: false) {
+ VStack(alignment: .leading, spacing: 16) {
+ self.welcomeHero
- // Quick Setup Checklist
- ThemedCard(style: .prominent) {
- VStack(alignment: .leading, spacing: 12) {
- HStack(spacing: 10) {
+ // Quick Setup Checklist
+ ThemedCard(style: .prominent) {
+ VStack(alignment: .leading, spacing: 12) {
Label("Quick Setup", systemImage: "checkmark.circle.fill")
.font(self.theme.typography.sectionTitle)
- .foregroundStyle(self.theme.palette.accent)
-
- Spacer()
-
- Button {
- self.settings.resetOnboardingProgress()
- self.playgroundUsed = false
- } label: {
- Label("Run Onboarding Again", systemImage: "arrow.counterclockwise")
- }
- .buttonStyle(.bordered)
- .controlSize(.small)
- }
+ .foregroundStyle(FluidOnboardingLandingColors.blue)
- VStack(alignment: .leading, spacing: 8) {
- SetupStepView(
- step: 1,
- // Consider model step complete if ready OR downloaded (even if not loaded)
- title: (self.asr.isAsrReady || self.asr.modelsExistOnDisk) ? "Voice Model Ready" : "Download Voice Model",
- description: self.asr.isAsrReady
- ? "Speech recognition model is loaded and ready"
- : (self.asr.modelsExistOnDisk
- ? "Model downloaded, will load when needed"
- : "Download the AI model for offline voice transcription (~500MB)"),
- status: (self.asr.isAsrReady || self.asr.modelsExistOnDisk) ? .completed : .pending,
- action: {
- self.selectedSidebarItem = .voiceEngine
- },
- actionButtonTitle: "Go to Voice Engine",
- showActionButton: !(self.asr.isAsrReady || self.asr.modelsExistOnDisk)
- )
+ VStack(alignment: .leading, spacing: 8) {
+ SetupStepView(
+ step: 1,
+ // Consider model step complete if ready OR downloaded (even if not loaded)
+ title: (self.asr.isAsrReady || self.asr.modelsExistOnDisk) ? "Voice Model Ready" : "Download Voice Model",
+ description: self.asr.isAsrReady
+ ? "Speech recognition model is loaded and ready"
+ : (self.asr.modelsExistOnDisk
+ ? "Model downloaded, will load when needed"
+ : "Download the AI model for offline voice transcription (~500MB)"),
+ status: (self.asr.isAsrReady || self.asr.modelsExistOnDisk) ? .completed : .pending,
+ action: {
+ self.selectedSidebarItem = .voiceEngine
+ },
+ actionButtonTitle: "Go to Voice Engine",
+ showActionButton: !(self.asr.isAsrReady || self.asr.modelsExistOnDisk)
+ )
- SetupStepView(
- step: 2,
- title: self.asr.micStatus == .authorized ? "Microphone Permission Granted" : "Grant Microphone Permission",
- description: self.asr.micStatus == .authorized
- ? "FluidVoice has access to your microphone"
- : "Allow FluidVoice to access your microphone for voice input",
- status: self.asr.micStatus == .authorized ? .completed : .pending,
- action: {
- if self.asr.micStatus == .notDetermined {
- self.asr.requestMicAccess()
- } else if self.asr.micStatus == .denied {
- self.asr.openSystemSettingsForMic()
- }
- },
- actionButtonTitle: self.asr.micStatus == .notDetermined ? "Grant Access" : "Open Settings",
- showActionButton: self.asr.micStatus != .authorized
- )
+ SetupStepView(
+ step: 2,
+ title: self.asr.micStatus == .authorized ? "Microphone Permission Granted" : "Grant Microphone Permission",
+ description: self.asr.micStatus == .authorized
+ ? "FluidVoice has access to your microphone"
+ : "Allow FluidVoice to access your microphone for voice input",
+ status: self.asr.micStatus == .authorized ? .completed : .pending,
+ action: {
+ if self.asr.micStatus == .notDetermined {
+ self.asr.requestMicAccess()
+ } else if self.asr.micStatus == .denied {
+ self.asr.openSystemSettingsForMic()
+ }
+ },
+ actionButtonTitle: self.asr.micStatus == .notDetermined ? "Grant Access" : "Open Settings",
+ showActionButton: self.asr.micStatus != .authorized
+ )
- SetupStepView(
- step: 3,
- title: self.accessibilityEnabled ? "Accessibility Access Enabled" : "Enable Accessibility Access",
- description: self.accessibilityEnabled
- ? "Accessibility permission granted for typing into apps"
- : "Drag FluidVoice into the Accessibility apps list as shown",
- status: self.accessibilityEnabled ? .completed : .pending,
- action: {
- self.openAccessibilitySettings()
- },
- actionButtonTitle: "Open Settings",
- showActionButton: !self.accessibilityEnabled
- )
+ SetupStepView(
+ step: 3,
+ title: self.accessibilityEnabled ? "Accessibility Access Enabled" : "Enable Accessibility Access",
+ description: self.accessibilityEnabled
+ ? "Accessibility permission granted for typing into apps"
+ : "Drag FluidVoice into the Accessibility apps list as shown",
+ status: self.accessibilityEnabled ? .completed : .pending,
+ action: {
+ self.openAccessibilitySettings()
+ },
+ actionButtonTitle: "Open Settings",
+ showActionButton: !self.accessibilityEnabled
+ )
- SetupStepView(
- step: 4,
- title: self.settings.isAIConfigured ? "AI Enhancement Configured" : "Set Up AI Enhancement (Optional)",
- description: self.settings.isAIConfigured
- ? "AI-powered text enhancement is ready to use"
- : "Configure API keys for AI-powered text enhancement",
- status: self.settings.isAIConfigured ? .completed : .pending,
- action: {
- self.selectedSidebarItem = .aiEnhancements
- },
- actionButtonTitle: "Configure AI"
- )
+ SetupStepView(
+ step: 4,
+ title: self.settings.isAIConfigured ? "AI Enhancement Configured" : "Set Up AI Enhancement (Optional)",
+ description: self.settings.isAIConfigured
+ ? "AI-powered text enhancement is ready to use"
+ : "Configure API keys for AI-powered text enhancement",
+ status: self.settings.isAIConfigured ? .completed : .pending,
+ action: {
+ self.selectedSidebarItem = .aiEnhancements
+ },
+ actionButtonTitle: "Configure AI"
+ )
- SetupStepView(
- step: 5,
- title: self.playgroundUsed ? "Setup Tested Successfully" : "Test Your Setup",
- description: self.playgroundUsed
- ? "You've successfully tested voice transcription"
- : "Try the playground below to test your complete setup",
- status: self.playgroundUsed ? .completed : .pending,
- action: {
- withAnimation(.easeInOut(duration: 0.25)) {
- proxy.scrollTo(self.playgroundSectionID, anchor: .top)
- }
- self.isTranscriptionFocused.wrappedValue = true
- },
- actionButtonTitle: "Go to Playground",
- showActionButton: !self.playgroundUsed
- )
- .id("playground-step-\(self.playgroundUsed)")
+ SetupStepView(
+ step: 5,
+ title: self.playgroundUsed ? "Setup Tested Successfully" : "Test Your Setup",
+ description: self.playgroundUsed
+ ? "You've successfully tested voice transcription"
+ : "Try the playground below to test your complete setup",
+ status: self.playgroundUsed ? .completed : .pending,
+ action: {
+ withAnimation(.easeInOut(duration: 0.25)) {
+ proxy.scrollTo(self.playgroundSectionID, anchor: .top)
+ }
+ self.isTranscriptionFocused.wrappedValue = true
+ },
+ actionButtonTitle: "Go to Playground",
+ showActionButton: !self.playgroundUsed
+ )
+ .id("playground-step-\(self.playgroundUsed)")
+ }
}
+ .padding(14)
}
- .padding(14)
- }
-
- // Test Playground
- ThemedCard(hoverEffect: false) {
- VStack(alignment: .leading, spacing: 14) {
- HStack {
- Label {
- VStack(alignment: .leading, spacing: 2) {
- Text("Test Playground")
- .font(self.theme.typography.sectionTitle)
- Text("Click record, speak, and see your transcription")
- .font(self.theme.typography.caption)
- .foregroundStyle(.secondary)
- }
- } icon: {
- Image(systemName: "text.bubble")
- .font(self.theme.typography.titleIcon)
- }
- Spacer()
-
- if self.asr.isRunning {
- HStack(spacing: 6) {
- Circle()
- .fill(.red)
- .frame(width: 6, height: 6)
- Text("Recording...")
- .font(self.theme.typography.captionStrong)
- .foregroundStyle(.red)
- }
- } else if !self.asr.finalText.isEmpty {
- Text("\(self.asr.finalText.count) characters")
- .font(self.theme.typography.caption)
- .foregroundStyle(.secondary)
- }
-
- if !self.asr.finalText.isEmpty {
- Button {
- NSPasteboard.general.clearContents()
- NSPasteboard.general.setString(self.asr.finalText, forType: .string)
- } label: {
- Label("Copy", systemImage: "doc.on.doc")
+ // Test Playground
+ ThemedCard(hoverEffect: false) {
+ VStack(alignment: .leading, spacing: 14) {
+ HStack {
+ Label {
+ VStack(alignment: .leading, spacing: 2) {
+ Text("Test Playground")
+ .font(self.theme.typography.sectionTitle)
+ Text("Click record, speak, and see your transcription")
+ .font(self.theme.typography.caption)
+ .foregroundStyle(.secondary)
+ }
+ } icon: {
+ Image(systemName: "text.bubble")
+ .font(self.theme.typography.titleIcon)
}
- .buttonStyle(.bordered)
- .controlSize(.small)
- }
- }
- if self.settings.selectedSpeechModel == .parakeetTDT || self.settings.selectedSpeechModel == .parakeetTDTv2 {
- HStack(spacing: 6) {
- Image(systemName: "text.magnifyingglass")
- .font(self.theme.typography.caption)
- .foregroundStyle(self.theme.palette.accent)
- Text(self.asr.wordBoostStatusText)
- .font(self.theme.typography.caption)
- .foregroundStyle(.secondary)
- .lineLimit(1)
- }
- .padding(.horizontal, 10)
- .padding(.vertical, 6)
- .background(
- RoundedRectangle(cornerRadius: 8)
- .fill(self.theme.palette.contentBackground.opacity(0.6))
- )
- }
+ Spacer()
- VStack(alignment: .leading, spacing: 12) {
- // Recording Control
- VStack(spacing: 10) {
- Button {
- if self.asr.isRunning {
- Task {
- await self.stopAndProcessTranscription()
- }
- } else {
- self.startRecording()
- self.playgroundUsed = true
- SettingsStore.shared.playgroundUsed = true
+ if self.asr.isRunning {
+ HStack(spacing: 6) {
+ Circle()
+ .fill(.red)
+ .frame(width: 6, height: 6)
+ Text("Recording...")
+ .font(self.theme.typography.captionStrong)
+ .foregroundStyle(.red)
}
- } label: {
- HStack {
- Image(systemName: self.asr.isRunning ? "stop.fill" : "mic.fill")
- Text(self.asr.isRunning ? "Stop Recording" : "Start Recording")
- }
- .frame(maxWidth: .infinity)
+ } else if !self.asr.finalText.isEmpty {
+ Text("\(self.asr.finalText.count) characters")
+ .font(self.theme.typography.caption)
+ .foregroundStyle(.secondary)
}
- .fluidButton(.primary, size: .large, isRecording: self.asr.isRunning)
- .buttonHoverEffect()
- .scaleEffect(!self.reduceMotion && self.asr.isRunning ? 1.02 : 1.0)
- .animation(self.reduceMotion ? nil : .spring(response: 0.3), value: self.asr.isRunning)
- .disabled(!self.asr.isAsrReady && !self.asr.isRunning)
-
- if !self.asr.isRunning && !self.asr.finalText.isEmpty {
- Button("Clear Results") {
- self.asr.finalText = ""
+
+ if !self.asr.finalText.isEmpty {
+ Button {
+ NSPasteboard.general.clearContents()
+ NSPasteboard.general.setString(self.asr.finalText, forType: .string)
+ } label: {
+ Label("Copy", systemImage: "doc.on.doc")
}
.buttonStyle(.bordered)
.controlSize(.small)
}
}
- // Text Area
- VStack(alignment: .leading, spacing: 8) {
- TextEditor(text: Binding(
- get: { self.asr.finalText },
- set: { self.asr.finalText = $0 }
- ))
- .font(self.theme.typography.body)
- .focused(self.isTranscriptionFocused)
- .frame(height: 140)
- .padding(10)
+ if self.settings.selectedSpeechModel == .parakeetTDT || self.settings.selectedSpeechModel == .parakeetTDTv2 {
+ HStack(spacing: 6) {
+ Image(systemName: "text.magnifyingglass")
+ .font(self.theme.typography.caption)
+ .foregroundStyle(self.theme.palette.accent)
+ Text(self.asr.wordBoostStatusText)
+ .font(self.theme.typography.caption)
+ .foregroundStyle(.secondary)
+ .lineLimit(1)
+ }
+ .padding(.horizontal, 10)
+ .padding(.vertical, 6)
.background(
- RoundedRectangle(cornerRadius: 8, style: .continuous)
- .fill(
- self.asr.isRunning ? self.theme.palette.accent.opacity(0.06) : self.theme.palette.cardBackground
- )
- .overlay(
- RoundedRectangle(cornerRadius: 8, style: .continuous)
- .strokeBorder(
- self.asr.isRunning ? self.theme.palette.accent.opacity(0.4) : self.theme.palette.cardBorder.opacity(0.6),
- lineWidth: self.asr.isRunning ? 2 : 1
- )
- )
+ RoundedRectangle(cornerRadius: 8)
+ .fill(self.theme.palette.contentBackground.opacity(0.6))
)
- .scrollContentBackground(.hidden)
- .overlay(
- VStack(spacing: 8) {
+ }
+
+ VStack(alignment: .leading, spacing: 12) {
+ // Recording Control
+ VStack(spacing: 10) {
+ Button {
if self.asr.isRunning {
- Image(systemName: "waveform")
- .font(self.theme.typography.titleIcon)
- .foregroundStyle(self.theme.palette.accent)
- Text("Listening... Speak now!")
- .font(self.theme.typography.bodySmallStrong)
- .foregroundStyle(self.theme.palette.accent)
- Text("Transcription will appear when you stop recording")
- .font(self.theme.typography.caption)
- .foregroundStyle(self.theme.palette.accent.opacity(0.7))
- } else if self.asr.finalText.isEmpty {
- Image(systemName: "text.bubble")
- .font(self.theme.typography.titleIcon)
- .foregroundStyle(.secondary.opacity(0.5))
- Text("Ready to test!")
- .font(self.theme.typography.bodySmallStrong)
- Text("Click 'Start Recording' or press your hotkey")
- .font(self.theme.typography.caption)
- .foregroundStyle(.secondary)
+ Task {
+ await self.stopAndProcessTranscription()
+ }
+ } else {
+ self.startRecording()
+ self.playgroundUsed = true
+ SettingsStore.shared.playgroundUsed = true
}
- }
- .allowsHitTesting(false)
- )
-
- if !self.asr.finalText.isEmpty {
- HStack(spacing: 8) {
- Button {
- NSPasteboard.general.clearContents()
- NSPasteboard.general.setString(self.asr.finalText, forType: .string)
- } label: {
- Label("Copy Text", systemImage: "doc.on.doc")
+ } label: {
+ HStack {
+ Image(systemName: self.asr.isRunning ? "stop.fill" : "mic.fill")
+ Text(self.asr.isRunning ? "Stop Recording" : "Start Recording")
}
- .buttonStyle(.borderedProminent)
- .tint(self.theme.palette.accent)
- .controlSize(.small)
-
- Button("Clear & Test Again") {
+ .frame(maxWidth: .infinity)
+ }
+ .fluidButton(.primary, size: .large, isRecording: self.asr.isRunning)
+ .buttonHoverEffect()
+ .scaleEffect(!self.reduceMotion && self.asr.isRunning ? 1.02 : 1.0)
+ .animation(self.reduceMotion ? nil : .spring(response: 0.3), value: self.asr.isRunning)
+ .disabled(!self.asr.isAsrReady && !self.asr.isRunning)
+
+ if !self.asr.isRunning && !self.asr.finalText.isEmpty {
+ Button("Clear Results") {
self.asr.finalText = ""
}
.buttonStyle(.bordered)
.controlSize(.small)
+ }
+ }
- Spacer()
+ // Text Area
+ VStack(alignment: .leading, spacing: 8) {
+ TextEditor(text: Binding(
+ get: { self.asr.finalText },
+ set: { self.asr.finalText = $0 }
+ ))
+ .font(self.theme.typography.body)
+ .focused(self.isTranscriptionFocused)
+ .frame(height: 140)
+ .padding(10)
+ .background(
+ RoundedRectangle(cornerRadius: 8, style: .continuous)
+ .fill(
+ self.asr.isRunning ? self.theme.palette.accent.opacity(0.06) : self.theme.palette.cardBackground
+ )
+ .overlay(
+ RoundedRectangle(cornerRadius: 8, style: .continuous)
+ .strokeBorder(
+ self.asr.isRunning ? self.theme.palette.accent.opacity(0.4) : self.theme.palette.cardBorder.opacity(0.6),
+ lineWidth: self.asr.isRunning ? 2 : 1
+ )
+ )
+ )
+ .scrollContentBackground(.hidden)
+ .overlay(
+ VStack(spacing: 8) {
+ if self.asr.isRunning {
+ Image(systemName: "waveform")
+ .font(self.theme.typography.titleIcon)
+ .foregroundStyle(self.theme.palette.accent)
+ Text("Listening... Speak now!")
+ .font(self.theme.typography.bodySmallStrong)
+ .foregroundStyle(self.theme.palette.accent)
+ Text("Transcription will appear when you stop recording")
+ .font(self.theme.typography.caption)
+ .foregroundStyle(self.theme.palette.accent.opacity(0.7))
+ } else if self.asr.finalText.isEmpty {
+ Image(systemName: "text.bubble")
+ .font(self.theme.typography.titleIcon)
+ .foregroundStyle(.secondary.opacity(0.5))
+ Text("Ready to test!")
+ .font(self.theme.typography.bodySmallStrong)
+ Text("Click 'Start Recording' or press your hotkey")
+ .font(self.theme.typography.caption)
+ .foregroundStyle(.secondary)
+ }
+ }
+ .allowsHitTesting(false)
+ )
+
+ if !self.asr.finalText.isEmpty {
+ HStack(spacing: 8) {
+ Button {
+ NSPasteboard.general.clearContents()
+ NSPasteboard.general.setString(self.asr.finalText, forType: .string)
+ } label: {
+ Label("Copy Text", systemImage: "doc.on.doc")
+ }
+ .buttonStyle(.borderedProminent)
+ .tint(self.theme.palette.accent)
+ .controlSize(.small)
+
+ Button("Clear & Test Again") {
+ self.asr.finalText = ""
+ }
+ .buttonStyle(.bordered)
+ .controlSize(.small)
+
+ Spacer()
+ }
}
}
}
}
+ .padding(16)
}
- .padding(16)
- }
- .id(self.playgroundSectionID)
-
- // Secondary guidance
- ThemedCard(style: .subtle) {
- VStack(alignment: .leading, spacing: 12) {
- DisclosureGroup {
- VStack(alignment: .leading, spacing: 10) {
- self.howToStep(number: 1, title: "Start Recording", description: "Press your hotkey (default: Right Option/Alt) or click the button")
- self.howToStep(number: 2, title: "Speak Clearly", description: "Speak naturally - works best in quiet environments")
- self.howToStep(number: 3, title: "Auto-Type Result", description: "Transcription is automatically typed into your focused app")
- }
- .padding(.top, 8)
- } label: {
- Label("How to Use", systemImage: "play.fill")
- .font(self.theme.typography.sectionTitle)
- .foregroundStyle(self.theme.palette.accent)
- }
-
- Divider().opacity(0.2)
+ .id(self.playgroundSectionID)
- DisclosureGroup {
- self.commandModeGuide
+ // Secondary guidance
+ ThemedCard(style: .subtle) {
+ VStack(alignment: .leading, spacing: 12) {
+ DisclosureGroup {
+ VStack(alignment: .leading, spacing: 10) {
+ self.howToStep(number: 1, title: "Start Recording", description: "Press your hotkey (default: Right Option/Alt) or click the button")
+ self.howToStep(number: 2, title: "Speak Clearly", description: "Speak naturally - works best in quiet environments")
+ self.howToStep(number: 3, title: "Auto-Type Result", description: "Transcription is automatically typed into your focused app")
+ }
.padding(.top, 8)
- } label: {
- HStack(spacing: 8) {
- Label("Command Mode", systemImage: "terminal.fill")
+ } label: {
+ Label("How to Use", systemImage: "play.fill")
.font(self.theme.typography.sectionTitle)
- .foregroundStyle(self.commandModeColor)
- self.featureBadge("New", color: self.commandModeColor)
- self.featureBadge("Alpha", color: self.commandModeColor.opacity(0.75))
+ .foregroundStyle(self.theme.palette.accent)
}
- }
- Divider().opacity(0.2)
+ Divider().opacity(0.2)
- DisclosureGroup {
- self.editModeGuide
- .padding(.top, 8)
- } label: {
- HStack(spacing: 8) {
- Label("Edit Mode", systemImage: "pencil.and.outline")
- .font(self.theme.typography.sectionTitle)
- .foregroundStyle(self.editModeColor)
- self.featureBadge("New", color: self.editModeColor)
+ DisclosureGroup {
+ self.commandModeGuide
+ .padding(.top, 8)
+ } label: {
+ HStack(spacing: 8) {
+ Label("Command Mode", systemImage: "terminal.fill")
+ .font(self.theme.typography.sectionTitle)
+ .foregroundStyle(self.commandModeColor)
+ self.featureBadge("New", color: self.commandModeColor)
+ self.featureBadge("Alpha", color: self.commandModeColor.opacity(0.75))
+ }
+ }
+
+ Divider().opacity(0.2)
+
+ DisclosureGroup {
+ self.editModeGuide
+ .padding(.top, 8)
+ } label: {
+ HStack(spacing: 8) {
+ Label("Edit Mode", systemImage: "pencil.and.outline")
+ .font(self.theme.typography.sectionTitle)
+ .foregroundStyle(self.editModeColor)
+ self.featureBadge("New", color: self.editModeColor)
+ }
}
}
+ .padding(12)
}
- .padding(12)
}
+ .padding(.horizontal, 20)
+ .padding(.vertical, 24)
+ .frame(maxWidth: 760)
+ .frame(maxWidth: .infinity, alignment: .top)
}
- .padding(16)
}
}
.onAppear {
@@ -405,6 +386,35 @@ struct WelcomeView: View {
// MARK: - Helper Views
+ private var welcomeHero: some View {
+ VStack(spacing: 14) {
+ FluidOnboardingCompactAppIconMark(size: 60)
+
+ VStack(spacing: 6) {
+ Text((self.asr.isAsrReady || self.asr.modelsExistOnDisk) ? "Getting Started" : "Welcome to FluidVoice")
+ .font(.system(size: 28, weight: .semibold))
+ .foregroundStyle(.white)
+ .multilineTextAlignment(.center)
+
+ Text("Talk anywhere. FluidVoice types for you.")
+ .font(.system(size: 15, weight: .medium))
+ .foregroundStyle(Color.white.opacity(0.62))
+ .multilineTextAlignment(.center)
+ }
+
+ Button {
+ self.settings.resetOnboardingProgress()
+ self.playgroundUsed = false
+ } label: {
+ Label("Run Onboarding Again", systemImage: "arrow.counterclockwise")
+ }
+ .fluidOnboardingSecondaryButton(controlSize: .small)
+ }
+ .frame(maxWidth: .infinity)
+ .padding(.top, 4)
+ .padding(.bottom, 4)
+ }
+
private var commandModeGuide: some View {
VStack(alignment: .leading, spacing: 12) {
HStack {