I am creating a poly line graphic to add to a sceneView for a SwiftUI app. Is there any way to add a text label along this line?
Ideally I would like a box with some text inside it along the direction of the line in the middle of the line if that's achievable.
let polyline = Polyline(
points: [
point1,
point2
]
)
let polylineSymbol = SimpleLineSymbol(style: .solid, color: .cyan, width: 2.0)
let polylineGraphic = Graphic(geometry: polyline, symbol: polylineSymbol)