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:
@@ -1524,24 +1524,25 @@ struct ChatBubble: View {
|
||||
}
|
||||
}
|
||||
|
||||
/// "Claude is answering": a soft wave of bars with a moving purple→orange shimmer.
|
||||
struct TypingDotsView: View {
|
||||
@State private var phase = false
|
||||
|
||||
var body: some View {
|
||||
HStack(spacing: 4) {
|
||||
ForEach(0..<3, id: \.self) { i in
|
||||
Circle()
|
||||
.fill(Color(hex: "#6B7079"))
|
||||
.frame(width: 5, height: 5)
|
||||
.scaleEffect(phase ? 1.2 : 0.6)
|
||||
.animation(
|
||||
.easeInOut(duration: 0.45).repeatForever().delay(Double(i) * 0.14),
|
||||
value: phase
|
||||
)
|
||||
TimelineView(.animation(minimumInterval: 1.0 / 30.0)) { tl in
|
||||
let t = tl.date.timeIntervalSinceReferenceDate
|
||||
HStack(alignment: .center, spacing: 3) {
|
||||
ForEach(0..<5, id: \.self) { i in
|
||||
let k = (sin(t * 5.2 - Double(i) * 0.7) + 1) / 2
|
||||
Capsule()
|
||||
.fill(LinearGradient(colors: [Color(hex: "#A78BFA"), Color(hex: "#D97757")],
|
||||
startPoint: .top, endPoint: .bottom))
|
||||
.frame(width: 3, height: 4 + 10 * k)
|
||||
.opacity(0.45 + 0.55 * k)
|
||||
}
|
||||
}
|
||||
.frame(height: 16)
|
||||
.hueRotation(.degrees(sin(t * 0.8) * 18))
|
||||
}
|
||||
.padding(.horizontal, 2).padding(.vertical, 4)
|
||||
.onAppear { phase = true }
|
||||
.padding(.horizontal, 4).padding(.vertical, 4)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user