# HG changeset patch # User Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> # Date 1620491915 -7200 # Node ID 34844d649ed7ff065bb530285dbd98e95ae2cd27 # Parent 1a5b4d95e0683581dfa3f2c58734b3be6db291b2 Hide ChartLabel on dragGesture diff -r 1a5b4d95e068 -r 34844d649ed7 Sources/StockCharts/LineChart/LineChartView.swift --- a/Sources/StockCharts/LineChart/LineChartView.swift Sat May 08 18:33:49 2021 +0200 +++ b/Sources/StockCharts/LineChart/LineChartView.swift Sat May 08 18:38:35 2021 +0200 @@ -25,9 +25,11 @@ public var body: some View { VStack { -// ChartLabel(data: data, dates: dates, hours: hours, indexPosition: $indexPosition) -// .opacity(showingIndicators ? 1: 0) -// .padding(.vertical) + if dragGesture ?? true { + ChartLabel(data: data, dates: dates, hours: hours, indexPosition: $indexPosition) + .opacity(showingIndicators ? 1: 0) + .padding(.vertical) + } LineView(data: data, dates: dates, hours: hours, dragGesture: dragGesture, showingIndicators: $showingIndicators, indexPosition: $indexPosition) } diff -r 1a5b4d95e068 -r 34844d649ed7 StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate Binary file StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed