mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Extract progress view, show video details loading
This commit is contained in:
@@ -128,7 +128,7 @@ struct NowPlayingView: View {
|
||||
if sections.contains(.comments) {
|
||||
if !comments.loaded {
|
||||
VStack(alignment: .center) {
|
||||
progressView
|
||||
PlaceholderProgressView()
|
||||
.onAppear {
|
||||
comments.load()
|
||||
}
|
||||
@@ -153,19 +153,6 @@ struct NowPlayingView: View {
|
||||
private var visibleWatches: [Watch] {
|
||||
watches.filter { $0.videoID != player.currentVideo?.videoID }
|
||||
}
|
||||
|
||||
private var progressView: some View {
|
||||
VStack {
|
||||
Spacer()
|
||||
|
||||
HStack {
|
||||
Spacer()
|
||||
ProgressView()
|
||||
Spacer()
|
||||
}
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct NowPlayingView_Previews: PreviewProvider {
|
||||
|
Reference in New Issue
Block a user