Decrease loading delay

This commit is contained in:
Arkadiusz Fal 2022-08-29 17:56:58 +02:00
parent 14cb1958d8
commit c3ae1d80cd
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ struct ChannelPlaylistView: View {
}
.onAppear {
if navigationStyle == .tab {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
resource?.loadIfNeeded()
}
} else {

View File

@ -126,7 +126,7 @@ struct ChannelVideosView: View {
#endif
.onAppear {
if navigationStyle == .tab {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
resource?.loadIfNeeded()
}
} else {