Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .agents/skills/openswiftui-test-authoring/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ description: Route OpenSwiftUI test authoring and review work to the appropriate
- Follow the organization and naming of the nearest tests in the same target.
- Sort import declarations alphabetically by imported module name, preserving any
attributes attached to each declaration.
- Mark suites/tests that contain AI-generated Swift Testing tests with `.tags(.aigc)`
on `@Suite` or `@Test`. Also add `import OpenSwiftUITestsSupport` if not imported yet.
- In Swift Testing, prefer `@Test(arguments:)` when cases share the same test
body. Keep different behaviors in separate tests.
- Give argument collections explicit types when inference is ambiguous,
Expand Down
9 changes: 9 additions & 0 deletions Sources/OpenSwiftUICore/Event/Gesture/GestureInputs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ public struct _GestureInputs {
}
}

package var position: Attribute<ViewOrigin> {
let defaultPosition = intern(ViewOrigin.zero, id: .defaultValue)
return viewSubgraph.apply {
let position = IndirectAttribute(source: defaultPosition)
position.source = viewInputs.position
return position.projectedValue
}
}

package var size: Attribute<ViewSize> {
let defaultSize = intern(ViewSize.zero, id: .defaultValue)
return viewSubgraph.apply {
Expand Down
Loading
Loading