Environment:
iOS Version: iOS 27.0
Framework: ActivityKit
Xcode Version: Xcode 26.1
Issue Description:
In iOS 27, Live Activities fail to adapt to the system colorScheme. Regardless of whether the system theme is set to Light or Dark mode, @Environment(.colorScheme) inside the Live Activity view always returns .dark.
This behavior worked as expected on iOS 26, where the Live Activity correctly responded to light/dark mode changes and rendered the appropriate theme.
Expected Behavior:
The Live Activity view should respect the system's current colorScheme (returning .light when the system is in Light Mode) on iOS 27, consistent with the behavior on iOS 26.
Actual Behavior:
The Live Activity view strictly defaults to .dark mode on iOS 27, even when the device is explicitly set to Light Mode.
struct LockScreenView<T: BaseLiveActivityAttributes>: View {
let context: ActivityViewContext<T>
@Environment(\.colorScheme) var colorScheme
var isLight: Bool {
colorScheme == .light
}
var body: some View {
Color(isLight ? .white : .black)
.overlay(alignment: .topTrailing) {
VStack(alignment: .trailing, spacing: 2) {
Text("colorScheme: \(String(describing: colorScheme))")
}
.font(.system(size: 9, weight: .bold, design: .monospaced))
.foregroundColor(.yellow)
.padding(4)
.background(Color.black.opacity(0.6))
.cornerRadius(4)
.padding(.trailing, 8)
.padding(.top, 4)
}
}
}
Any insights or workarounds would be greatly appreciated. Thanks!
Topic:
App & System Services
SubTopic:
Widgets & Live Activities
Tags:
WidgetKit
SwiftUI
Visual Design
0
0
12