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