Skip to content

Add Core types: GesturePhase, GestureOutput, UpdateScheduler#8

Merged
Kyle-Ye merged 6 commits intomainfrom
feature/core
Apr 13, 2026
Merged

Add Core types: GesturePhase, GestureOutput, UpdateScheduler#8
Kyle-Ye merged 6 commits intomainfrom
feature/core

Conversation

@Kyle-Ye
Copy link
Copy Markdown
Contributor

@Kyle-Ye Kyle-Ye commented Apr 13, 2026

Summary

  • Move GesturePhase/GestureOutput from GestureCore/ to Core/
  • Fix isRecognized: include ended case (matches binary truth table)
  • Add GesturePhase/GestureFailureReason: CustomStringConvertible
  • Add @_spi(Private) for GesturePhase enum cases
  • Add Sendable constraint on mapValue<T>
  • Rename .final.finalValue for GestureOutput
  • Audit GestureOutput.populateNestedDescription against binary
  • Add UpdateTraceAnnotation, GestureOutputStatus, GestureOutputStatusCombiner, GestureOutputArrayCombiner, GestureOutputCombiner
  • Add UpdateScheduler class and UpdateRequest.description
  • Add OpenAttributeGraph dependency for compat tests (Metadata enum construction)

Test plan

Kyle-Ye added 6 commits April 13, 2026 03:21
- Move from GestureCore/ to Core/
- Fix isRecognized: include ended case (matches binary truth table)
- Rename .final → .finalValue for GestureOutput
- Add GesturePhase/GestureFailureReason: CustomStringConvertible
- Add GestureOutput: NestedCustomStringConvertible
- Add missing types: UpdateTraceAnnotation, GestureOutputStatus,
  GestureOutputStatusCombiner, GestureOutputArrayCombiner,
  GestureOutputCombiner
- Add traceAnnotation field to GestureOutputMetadata
- Use conditional Sendable conformance instead of generic constraint
- Add DocC documentation
- Add @_spi(Private) for all GesturePhase cases
- Add Sendable constraint on mapValue<T>
- Add OpenAttributeGraph dependency for compat test target
- Add Metadata+Enum helper for enum construction via injectEnumTag
- Single parameterized test covers all phase boolean properties + description
- mapValue test guarded with #if OPENGESTURES (generic symbol not linkable)
@Kyle-Ye Kyle-Ye merged commit ea28c40 into main Apr 13, 2026
2 of 4 checks passed
@Kyle-Ye Kyle-Ye deleted the feature/core branch April 13, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant