mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Decrease loading delay
This commit is contained in:
parent
14cb1958d8
commit
c3ae1d80cd
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user