Skip to content

Let an AI model use a real iPhone with a $7 ESP32: AirPlay eyes, USB HID hands, any OpenAI-compatible vision model. No Mac, no developer account, no jailbreak.

Show proximity guidance before discovery and keep it visible on screen

Henry70857e503ca2
diff --git a/ios/IPhoneAgent/UI/OnboardingDemos.swift b/ios/IPhoneAgent/UI/OnboardingDemos.swift
index 50b1137..ed3f05c 100644
--- a/ios/IPhoneAgent/UI/OnboardingDemos.swift
+++ b/ios/IPhoneAgent/UI/OnboardingDemos.swift
@@ -33,6 +33,8 @@ struct MiniPhoneDemo: View {
MiniPhone { screen }
.overlay { GeometryReader { g in finger(in: g.size) } }
.frame(width: 132, height: 270)
+ .scaleEffect(kind == .plugIn ? 5.0 / 6.0 : 1)
+ .frame(width: kind == .plugIn ? 110 : 132, height: kind == .plugIn ? 225 : 270)
Text(frames[frame].caption)
.font(.subheadline.weight(.semibold))
.multilineTextAlignment(.center)
diff --git a/ios/IPhoneAgent/UI/OnboardingPages.swift b/ios/IPhoneAgent/UI/OnboardingPages.swift
index 115eea2..6a26e56 100644
--- a/ios/IPhoneAgent/UI/OnboardingPages.swift
+++ b/ios/IPhoneAgent/UI/OnboardingPages.swift
@@ -91,11 +91,12 @@ struct ConnectPage: View {
}
}
} else {
- CheckRow(title: "Searching for the board over Bluetooth…", done: false, active: true, waiting: board.scanning,
- detail: "Power the board and keep it nearby. USB connection alone does not confirm Bluetooth is ready.")
+ CheckRow(title: "Searching for the board over Bluetooth…", done: false, active: true, waiting: board.scanning)
}
- if let signal = board.signalStrength, signal < -80 {
- Text("Weak Bluetooth signal. Move closer to the board or attach its antenna.")
+ if !board.connected || (board.signalStrength ?? 0) < -80 {
+ Text((board.signalStrength ?? 0) < -80
+ ? "Weak signal. Move your phone closer to the board or attach its antenna."
+ : "Keep your phone close to the board. If it won’t connect, attach its antenna.")
.font(.footnote).foregroundStyle(.secondary).padding(.top, Space.s)
}
if !board.connected {