mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-04 20:52:23 +01:00
Review findings on the platform-thread hop added for HealthKit's authorize completion: - The comment claimed hopping off the HealthKit background queue "raced the permission sheet's own presentation" — it cannot: this completion only fires after healthd has already dismissed the sheet or timed the session out. Rewritten to say what's actually true: the hop is Flutter's own platform-thread requirement for `FlutterResult`, independent hygiene; the real first-tap-always-times-out bug was the Dart-side ordering (selection committed → transport restart → sheet starved), fixed in `LiveMetricsSection._select`, not here. - The diagnostic NSLog used `%d` for `applicationState.rawValue`, a Swift `Int` (64-bit on device); corrected to `%ld`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>