diff options
Diffstat (limited to 'DomainDig/DomainViewModel+Widget.swift')
| -rw-r--r-- | DomainDig/DomainViewModel+Widget.swift | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/DomainDig/DomainViewModel+Widget.swift b/DomainDig/DomainViewModel+Widget.swift index 59b28e0..69640d8 100644 --- a/DomainDig/DomainViewModel+Widget.swift +++ b/DomainDig/DomainViewModel+Widget.swift @@ -5,6 +5,11 @@ extension DomainViewModel { /// Publishes the current portfolio state to the App Group container so the /// widget can render it, then asks WidgetKit to refresh its timelines. func refreshWidgetData() { + #if DEBUG + // Fixture sessions must not write fixture domains into the shared + // widget store — it is an App Group file that outlives the launch. + if auditFixturesActive { return } + #endif let data = portfolioDashboardData let snapshot = data.snapshot |
