mirror of
https://github.com/yattee/yattee.git
synced 2025-01-07 13:27:08 +00:00
Decrease loading delay
This commit is contained in:
parent
14cb1958d8
commit
c3ae1d80cd
Shared/Views
@ -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