fix(IOS-INFO-043): add parse progress overlay to MaterialReaderView

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-19 11:30:19 +08:00
parent 042256913e
commit f25538cf5a

View File

@ -227,6 +227,18 @@ struct MaterialReaderView: View {
}
}
}
.overlay(alignment: .bottom) {
if isParsing {
HStack(spacing: 8) {
ProgressView().tint(.white)
Text(parseMessage).font(.system(size: 13, weight: .medium)).foregroundColor(.white)
}
.padding(.horizontal, 16).padding(.vertical, 10)
.background(Color.black.opacity(0.75))
.clipShape(Capsule())
.padding(.bottom, 100)
}
}
.task { await vm.load() }
.sheet(isPresented: $showQuickLook) {
QuickLookPreview(url: URL(fileURLWithPath: vm.filePath))