Settings for new features

This commit is contained in:
Arkadiusz Fal
2022-12-19 01:37:09 +01:00
parent 3de18da7a7
commit 2ce903b6c3
6 changed files with 67 additions and 15 deletions

View File

@@ -31,6 +31,7 @@ struct ChannelVideosView: View {
@Namespace private var focusNamespace
@Default(.channelPlaylistListingStyle) private var channelPlaylistListingStyle
@Default(.expandChannelDescription) private var expandChannelDescription
var presentedChannel: Channel? {
store.item ?? channel ?? recents.presentedChannel
@@ -165,6 +166,8 @@ struct ChannelVideosView: View {
}
#endif
.onAppear {
descriptionExpanded = expandChannelDescription
if let channel,
let cache = ChannelsCacheModel.shared.retrieve(channel.cacheKey),
store.item.isNil