Post

Replies

Boosts

Views

Activity

Reply to iOS 17 Beta Breaks activityBackgroundTint(_:) on Live Activities
There is a walk around. Detect the colorScheme in side a View: struct LiveActivity: View { @Environment(\.colorScheme) var colorScheme var body: some View { someview {} .backgroud(colorScheme == .light ? Color.white.opacity(0.43) : Color.black.opacity(0.43) .activityBackgroundTint(Color.black.opacity(0)) } } and then call the view inside your Live Activity, it will automatically update based on color mode of your device
Nov ’24