added some if debug checks
This commit is contained in:
parent
a5d94d1aee
commit
3d4c695ffa
@ -48,7 +48,6 @@ struct BookmarkDetailView2: View {
|
|||||||
// Main scroll content
|
// Main scroll content
|
||||||
scrollViewContent
|
scrollViewContent
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
toolbarContent
|
toolbarContent
|
||||||
@ -186,6 +185,8 @@ struct BookmarkDetailView2: View {
|
|||||||
|
|
||||||
@ToolbarContentBuilder
|
@ToolbarContentBuilder
|
||||||
private var toolbarContent: some ToolbarContent {
|
private var toolbarContent: some ToolbarContent {
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
// Toggle button (left)
|
// Toggle button (left)
|
||||||
ToolbarItem(placement: .navigationBarLeading) {
|
ToolbarItem(placement: .navigationBarLeading) {
|
||||||
Button(action: {
|
Button(action: {
|
||||||
@ -195,6 +196,7 @@ struct BookmarkDetailView2: View {
|
|||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Top toolbar (right)
|
// Top toolbar (right)
|
||||||
ToolbarItem(placement: .navigationBarTrailing) {
|
ToolbarItem(placement: .navigationBarTrailing) {
|
||||||
@ -213,6 +215,7 @@ struct BookmarkDetailView2: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
// Bottom toolbar - Archive section
|
// Bottom toolbar - Archive section
|
||||||
if viewModel.isLoadingArticle == false && viewModel.isLoading == false {
|
if viewModel.isLoadingArticle == false && viewModel.isLoading == false {
|
||||||
ToolbarItemGroup(placement: .bottomBar) {
|
ToolbarItemGroup(placement: .bottomBar) {
|
||||||
@ -244,6 +247,7 @@ struct BookmarkDetailView2: View {
|
|||||||
.disabled(viewModel.isLoading)
|
.disabled(viewModel.isLoading)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
private var fontSettingsSheet: some View {
|
private var fontSettingsSheet: some View {
|
||||||
|
|||||||
@ -153,7 +153,7 @@ struct PhoneTabView: View {
|
|||||||
// To restore: uncomment block below and remove ZStack
|
// To restore: uncomment block below and remove ZStack
|
||||||
ZStack {
|
ZStack {
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
BookmarkDetailView(bookmarkId: bookmark.id)
|
BookmarkDetailView(bookmarkId: bookmark.id)
|
||||||
} label: {
|
} label: {
|
||||||
EmptyView()
|
EmptyView()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user