minor improvements #2

sync2
Laurent 8 months ago
parent e56c61449e
commit 459a90253a
  1. 22
      PadelClub/Views/Navigation/Toolbox/ToolboxView.swift

@ -57,7 +57,7 @@ struct ToolboxView: View {
}
}
if showDebugViews {
if self.showDebugViews {
DebugView()
}
@ -139,13 +139,13 @@ struct ToolboxView: View {
}
}
.onAppear {
//#if DEBUG
// self.showDebugViews = true
//#endif
//
//#if TESTFLIGHT
// self.showDebugViews = true
//#endif
#if DEBUG
self.showDebugViews = true
#endif
#if TESTFLIGHT
self.showDebugViews = true
#endif
}
.overlay(alignment: .bottom) {
@ -160,7 +160,7 @@ struct ToolboxView: View {
}
}
}
.navigationBarTitleDisplayMode(.large)
// .navigationBarTitleDisplayMode(.large)
// .navigationTitle(TabDestination.toolbox.title)
.toolbar {
ToolbarItem(placement: .principal) {
@ -206,12 +206,12 @@ struct ToolboxView: View {
// Check if we've reached 4 taps
if tapCount == 4 {
_secretFeatureActivated()
_showDebugView()
tapCount = 0
}
}
private func _secretFeatureActivated() {
private func _showDebugView() {
self.showDebugViews = true
}

Loading…
Cancel
Save