Skip to content

Podcast full player crashes on Mac (Designed for iPad) when opened from mini player #315

Description

@cassio-rossi

Summary

Tapping the podcast mini player to open the full player crashes on Mac only ("My Mac — Designed for iPad").

Crash

Fatal error: No ObservableObject of type AnalyticsManager found.
7  FullPlayerView.actions.getter
21 FullPlayerView.player.getter
22 FullPlayerView.body.getter

Root cause

FullPlayerView and ChaptersView read analytics via @EnvironmentObject. They are presented in .sheet contexts, and the iOS-app-on-Mac runtime does not propagate the root .environmentObject(analytics) across the sheet boundary, so the first access traps. iPhone/iPad inherit it, so it is Mac-only.

Fix

Re-inject .environmentObject(analytics) into the full-player and chapters sheets (mirrors the existing DeepLinkNewsDetailView pattern). Addressed in PR #314.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions