Meshtastic-Apple/Meshtastic/Views/Helpers/AnimatedEllipsis.swift
Benjamin Faershtein a612cf6518 working
2026-02-08 18:43:26 -08:00

12 lines
318 B
Swift

import SwiftUI
struct AnimatedEllipsis: View {
var body: some View {
TimelineView(.periodic(from: .now, by: 0.45)) { context in
let ticks = Int(context.date.timeIntervalSinceReferenceDate / 0.45)
let dotCount = (ticks % 3) + 1
Text(String(repeating: ".", count: dotCount))
.monospacedDigit()
}
}
}