
Radar Pulse
A nearby-devices radar with emanating ripples and a rotating sweep gradient. Each device pops in with a ping exactly when the sweep passes over it.
- animation
- loading
- avatar
snippet.swift245 lines
6 files • Scroll to see all →
/// Something the radar can discover.public struct RadarPulseDevice: Identifiable, Hashable { public let id: String public var name: String public var systemImage: String public var tint: Color /// Compass bearing (0° = top, clockwise). public var bearing: Angle /// 0 (center) ... 1 (outer edge). public var distance: CGFloat public init(id: String? = nil, name: String, systemImage: String, tint: Color, bearing: Angle, distance: CGFloat) { self.id = id ?? name self.name = name self.systemImage = systemImage self.tint = tint self.bearing = bearing self.distance = distance }}Viewing: DeviceModel.swift•1 of 6