mirror of
https://github.com/yattee/yattee.git
synced 2025-01-08 13:57:08 +00:00
Decrease loading delay
This commit is contained in:
parent
14cb1958d8
commit
c3ae1d80cd
@ -74,7 +74,7 @@ struct ChannelPlaylistView: View {
|
|||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
if navigationStyle == .tab {
|
if navigationStyle == .tab {
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
||||||
resource?.loadIfNeeded()
|
resource?.loadIfNeeded()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -126,7 +126,7 @@ struct ChannelVideosView: View {
|
|||||||
#endif
|
#endif
|
||||||
.onAppear {
|
.onAppear {
|
||||||
if navigationStyle == .tab {
|
if navigationStyle == .tab {
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
||||||
resource?.loadIfNeeded()
|
resource?.loadIfNeeded()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user