Let the playlist selector's account picker collapse on tvOS

The tvOS branch pinned the picker to .inline over a fear that a menu
would dismiss the sheet it sits in — that is true of the hardware Menu
button and a fullScreenCover, not of a menu-style picker in a sheet. The
inline rows meanwhile filled the card with every account before the
first playlist. One .menu picker on every platform, device-verified:
picking another account swaps the section in place.
This commit is contained in:
Arkadiusz Fal
2026-09-15 18:03:04 +02:00
parent 753cda9661
commit 62f7e3eeb3

View File

@@ -185,13 +185,7 @@ struct PlaylistSelectorSheet: View {
.tag(DataContext.account(account.id))
}
}
#if os(tvOS)
// A tvOS Menu dismisses the presentation it sits in; inline rows are
// the presentation that survives.
.pickerStyle(.inline)
#else
.pickerStyle(.menu)
#endif
}
/// The pick the sheet opens on: the account the app is browsing as, when