mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
The .searchable modifier lived inside iOSChannelContent, which body only renders once the channel network fetch completes, so the search field appeared only after videos loaded. Hoist the search modifier chain into a channelSearchable wrapper around the load-state Group in body so it shows immediately in every state (iOS nav-bar drawer and macOS toolbar). channelMenuIcon gated the notification lookup behind the network-loaded channel object, forcing the icon to person.fill while loading and swapping to bell.fill afterward. Use channel?.id.channelID ?? channelID (the same fallback as refreshSubscription) so the bell state is correct from the loading phase, since notificationsEnabled(for:) only needs the ID string.