UI: liquid opening, staggered content, answer wave, haptics, gaze, notch drop

- Opening: the notch spreads sideways then pours down with a slight overshoot; header
  and screen come out of a soft blur one after the other.
- Chat: a purple→orange wave of bars instead of three dots while Claude answers.
- Haptic tap (Force Touch trackpad) when the notch opens and on Allow/Deny.
- Memoji turns its head toward the cursor clearly (slide, lean, slight shear).
- A drop of the folded notch stretches toward the approaching cursor (within 130 pt),
  leaning to its side; its own ObservableObject so only the drop redraws at 30 Hz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maksarsanjeev
2026-10-10 02:04:32 +03:00
parent 9ebc4552c0
commit ecc68a1047
7 changed files with 115 additions and 24 deletions
+6 -4
View File
@@ -110,10 +110,12 @@ extension BotEngine {
var c = context
c.opacity = opacity
c.translateBy(x: center.x, y: center.y)
// Head turn: slide toward the gaze and narrow a little, like turning a sphere.
c.translateBy(x: yaw * R * 0.18, y: -pitch * R * 0.12)
c.rotate(by: .radians(tilt + roll))
c.scaleBy(x: sx * (1 - abs(yaw) * 0.10), y: sy * (1 - abs(pitch) * 0.06))
// Head turn toward the gaze (the cursor): slide, lean into the turn and narrow a
// little, like turning a sphere — strong enough to read at notch size.
c.translateBy(x: yaw * R * 0.32, y: -pitch * R * 0.22)
c.rotate(by: .radians(tilt + roll + yaw * 0.09))
c.concatenate(CGAffineTransform(a: 1, b: yaw * 0.05, c: 0, d: 1, tx: 0, ty: 0))
c.scaleBy(x: sx * (1 - abs(yaw) * 0.08), y: sy * (1 - abs(pitch) * 0.06))
// Status tint as a soft glow behind the head.
if tint > 0.02 {
let glow = Color(red: col.0, green: col.1, blue: col.2)