feat(keyboard): ship AI hint carousel, home library cards, and clipboard polish
Rotate AI idle suggestions with optional remote packs, move history/dictionary onto self-sizing Home preview cards, harden clipboard capture/prompting, and simplify keyboard chrome by dropping most liquid-glass shadows.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// AppPermissions.swift
|
||||
// OSGKeyboard · Main App
|
||||
//
|
||||
// Central permission status for onboarding and Flow session startup.
|
||||
// Central permission handling for onboarding, Flow, and clipboard access.
|
||||
|
||||
import AVFoundation
|
||||
import Speech
|
||||
@@ -78,6 +78,16 @@ enum AppPermissions {
|
||||
UIApplication.shared.open(url)
|
||||
}
|
||||
|
||||
/// Performs an explicit direct read so iOS can present paste authorization
|
||||
/// and create the app's "Paste from Other Apps" settings entry.
|
||||
@MainActor
|
||||
@discardableResult
|
||||
static func requestPasteAccess() -> Bool {
|
||||
let pasteboard = UIPasteboard.general
|
||||
guard pasteboard.hasStrings else { return false }
|
||||
return pasteboard.string != nil
|
||||
}
|
||||
|
||||
/// Home-screen guidance when Flow permissions are missing after onboarding.
|
||||
static var homePermissionGuidanceMessage: String {
|
||||
let micMissing = micStatus != .granted
|
||||
|
||||
Reference in New Issue
Block a user