You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(demo): a settings-screen demo app worth recording, booted via task
AnnotKitDemo grows from a gray control stack into a small Acme Settings
screen: a profile card (click targets), three stat cards (drag-a-frame
targets that show the largest-surrounded-element rule), and an actions
row, all with dot-notation accessibilityIdentifiers so emitted notes
show off selector anchoring. Semantic colors keep it dark-mode friendly.
Add Taskfile.yml (task demo / build / test / probe / mcp / clean) so a
practice or recording run is one command, and gitignore the
AGENTATION_NOTES artifacts the demo writes into the working directory.
// Expose the card itself as an AX group so a drawn frame binds to the
37
+
// whole card rather than the value/label leaves inside it.
38
+
.accessibilityElement(children:.contain)
39
+
.accessibilityIdentifier(identifier)
40
+
}
41
+
}
9
42
10
43
structDemoView:View{
11
-
@Stateprivatevartext=""
12
-
@Stateprivatevartoggle=false
44
+
@Stateprivatevarname="Ada Lovelace"
45
+
@Stateprivatevaremail="ada@example.com"
46
+
@Stateprivatevarnotifications=true
47
+
@Stateprivatevarplan="Pro"
13
48
14
49
varbody:someView{
15
-
VStack(alignment:.leading, spacing:18){
16
-
Text("AnnotKit Demo")
17
-
.font(.largeTitle).bold()
18
-
.accessibilityIdentifier("Demo.Title")
50
+
VStack(alignment:.leading, spacing:20){
51
+
VStack(alignment:.leading, spacing:6){
52
+
Text("Acme Settings")
53
+
.font(.largeTitle).bold()
54
+
.accessibilityIdentifier("Settings.Title")
55
+
Text("Click 'Annotate' (bottom-right), then click a control — or drag a frame around a card — type a note, and Save. Notes land in AGENTATION_NOTES.md in your working directory.")
56
+
.font(.callout)
57
+
.foregroundStyle(.secondary)
58
+
.fixedSize(horizontal:false, vertical:true)
59
+
.accessibilityIdentifier("Settings.Instructions")
60
+
}
19
61
20
-
Text("Click 'Annotate' (bottom-right), then click any control below, type a note, and Save. Notes land in AGENTATION_NOTES.md in your working directory.")
0 commit comments