2022-05-28 01:19:44 -07:00
|
|
|
import Foundation
|
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
|
|
struct NodeAnnotation: View {
|
|
|
|
|
let time: Date
|
|
|
|
|
|
|
|
|
|
var body: some View {
|
|
|
|
|
|
|
|
|
|
VStack(spacing: 0) {
|
|
|
|
|
Text(time, style: .offset)
|
|
|
|
|
.font(.callout).foregroundColor(.accentColor)
|
|
|
|
|
.padding(5)
|
|
|
|
|
.background(Color(.white))
|
|
|
|
|
.cornerRadius(10)
|
|
|
|
|
|
|
|
|
|
Image(systemName: "mappin.circle.fill")
|
2022-05-30 21:48:46 -07:00
|
|
|
.font(.largeTitle)
|
|
|
|
|
.foregroundColor(.accentColor)
|
2022-05-28 01:19:44 -07:00
|
|
|
|
|
|
|
|
Image(systemName: "arrowtriangle.down.fill")
|
|
|
|
|
.font(.caption)
|
2022-05-30 21:48:46 -07:00
|
|
|
.foregroundColor(.accentColor)
|
2022-05-28 01:19:44 -07:00
|
|
|
.offset(x: 0, y: -5)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|