Skip to content

Commit a16dba3

Browse files
committed
Hide web pages tab.
1 parent e3e6aac commit a16dba3

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This project is demo how to use SwiftUI, Combine and Catalyst together
99
![DEMO](files/demo.gif)
1010

1111
![](files/Screen8.png)
12+
![](files/Screen9.png)
1213
![](files/Screen1.png)
1314
![](files/Screen2.png)
1415
![](files/Screen3.png)

ReaderTranslator/Views/StatusBarView.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct StatusBarView: View {
1414

1515
var body: some View {
1616
HStack {
17-
StatusBarView_Tabs(currentTab: self.$store.currentTab)
17+
StatusBarView_Tabs(viewMode: $store.viewMode, currentTab: $store.currentTab)
1818
StatusBarView_Zoom()
1919
StatusBarView_PdfMode()
2020
StatusBarView_Voice()
@@ -24,13 +24,16 @@ struct StatusBarView: View {
2424
}
2525

2626
struct StatusBarView_Tabs: View {
27+
@Binding var viewMode: ViewMode
2728
@Binding var currentTab: Int
2829

2930
var body: some View {
3031
Group {
31-
Image(systemName: "1.circle\(iconStatus(0))").onTapGesture { self.currentTab = 0 }
32-
Image(systemName: "2.circle\(iconStatus(1))").onTapGesture { self.currentTab = 1 }
33-
Image(systemName: "3.circle\(iconStatus(2))").onTapGesture { self.currentTab = 2 }
32+
if viewMode == .web {
33+
Image(systemName: "1.circle\(iconStatus(0))").onTapGesture { self.currentTab = 0 }
34+
Image(systemName: "2.circle\(iconStatus(1))").onTapGesture { self.currentTab = 1 }
35+
Image(systemName: "3.circle\(iconStatus(2))").onTapGesture { self.currentTab = 2 }
36+
}
3437
}
3538
}
3639

files/Screen9.png

-23.2 KB
Loading

0 commit comments

Comments
 (0)