Add local Bell and screen-awake controls with per-session bell observation and scene-aware effects. Provide foreground Connection Journey success haptics independent of terminal preferences. Replace the notification sound with an original bell resource, make AudioToolbox completion queue-safe, and group mobile theme settings.
11 lines
270 B
Swift
11 lines
270 B
Swift
import SwiftUI
|
|
|
|
struct MobileConnectionFeedbackContext {
|
|
var isForeground: @MainActor () -> Bool = { false }
|
|
var succeeded: @MainActor () -> Void = {}
|
|
}
|
|
|
|
extension EnvironmentValues {
|
|
@Entry var mobileConnectionFeedback = MobileConnectionFeedbackContext()
|
|
}
|