mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 21:22:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user