Skip to content

Commit 297289e

Browse files
rwarnerclaude
andcommitted
Restore outer #if os(iOS) guard in Environment.swift
The outer guard wrapped multiple iOS-only properties beyond just liveActivityRegistry. Restoring it with the inner ActivityKit-specific guard nested inside. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7c65f48 commit 297289e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/Shared/Environment/Environment.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public class AppEnvironment {
140140
#endif
141141
}
142142

143+
#if os(iOS)
143144
#if os(iOS) && !targetEnvironment(macCatalyst)
144145
/// Call `_ = Current.liveActivityRegistry` on the main thread at launch (before any
145146
/// background thread can access it) to avoid a lazy-init race between concurrent callers.

0 commit comments

Comments
 (0)