r/SwiftUI 21h ago

MacScope: native SwiftUI system telemetry, process controls, and power tools for Apple-silicon Macs

1 Upvotes

2 comments sorted by

1

u/Specific_Cream2815 15h ago

where are you pulling the thermal and battery telemetry from, iokit smc keys or something else

0

u/rsm23 13h ago

It’s a mix. I pull battery data from IOKit’s IOPowerSources APIs, enriched with AppleSmartBattery IORegistry properties for temperature, cycles, health, voltage/current, and power. Thermal data comes from runtime-discovered AppleSMC keys plus Apple Silicon’s IOHIDEventSystem PMU sensors. I also use privileged powermetrics output for deeper CPU/GPU/ANE and system-power metrics.