Tech
[分享创造] [分享] 把 iPhone 的 AI 边缘流光效果带到了 Mac 上
各位 V 友好,
周末做了个小工具 —— EdgeGlow 。
起因
iPhone 的 Apple Intelligence 工作时,屏幕边缘会有超绚丽的虹光效果(紫→蓝→青→粉→橙→金渐变)。
这个效果太酷了,但只在 iPhone 上有。
所以我把它带到了 Mac 上 —— EdgeGlow ,当 Claude Code 思考时,你的屏幕边缘会出现和 iPhone 一样的流光效果。
效果
渲染不了的话,自己打开看吧 https://github.com/vector4wang/EdgeGlow/blob/main/Resources/demo.gif
🟢 AI 思考中 → 流光沿屏幕边缘旋转(紫→蓝→青→粉→橙→金)
🔴 完成/等待 → 流光 1.5s 淡出消失
技术栈
纯 Swift + SwiftUI ,无第三方依赖
CAShapeLayer + CIGaussianBlur 四层光效模拟霓虹灯
Timer 驱动 lineDashPhase 动画(不依赖 Core Animation ,更可靠)...
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX