You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From iOS 17, SwiftUI Charts has chartGesture, together with SpatialTapGesture we can check tap location and convert that to Charts value
Chart{}.chartGesture{ chart inSpatialTapGesture().onEnded{ value inletresult= chart.value(at: value.location, as:(Int, Double).self)
if let index = result?.0,let log =logs[safe: index]{print(log)}}}
The text was updated successfully, but these errors were encountered:
From iOS 17, SwiftUI Charts has chartGesture, together with SpatialTapGesture we can check tap location and convert that to Charts value
The text was updated successfully, but these errors were encountered: