mirror of
https://github.com/yattee/yattee.git
synced 2025-07-07 04:00:05 +00:00
Decrease loading delay
This commit is contained in:
parent
97149df71c
commit
ec12ac9340
@ -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…
x
Reference in New Issue
Block a user