mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-08-03 20:47:22 -04:00
Fix PhET initial webpage to be on screen for html canvas calculations
This commit is contained in:
parent
37432b0e26
commit
107b7edf0b
@ -184,13 +184,15 @@ struct BrowserTab: View {
|
||||
#endif
|
||||
} else {
|
||||
switch model.state {
|
||||
case .loadingData:
|
||||
case .loadingData, .webPage:
|
||||
ZStack {
|
||||
LoadingDataView()
|
||||
case .webPage(let isLoading):
|
||||
.opacity(model.state == .loadingData ? 1.0 : 0.0)
|
||||
WebView(browser: browser)
|
||||
.opacity(model.state == .loadingData ? 0.0 : 1.0)
|
||||
.ignoresSafeArea()
|
||||
.overlay {
|
||||
if isLoading {
|
||||
if case .webPage(let isLoading) = model.state, isLoading {
|
||||
LoadingProgressView()
|
||||
}
|
||||
}
|
||||
@ -205,6 +207,7 @@ struct BrowserTab: View {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
case .catalog(.fetching):
|
||||
FetchingCatalogView()
|
||||
case .catalog(.list):
|
||||
|
Loading…
x
Reference in New Issue
Block a user