注册并分享邀请链接,可获得视频播放与邀请奖励。

jordwalke
@jordwalke
Created @reactjs and @ReasonML. Formerly @facebook. Product at @replit. Vibe coder
加入 May 2013
812 正在关注    66.9K 粉丝
A lesson I’ve learned from legendary mobile interaction engineers and never forgot.
Fun fact: the creator of CoreAnimation is one of the creators of SwiftUI! The decision to run animations in the app process rather than the render server (as CoreAnimation does) was one of the earliest and most fundamental decisions we made when designing SwiftUI. Some of the most distinctive experiences of using an iPhone, like UIScrollView rubber banding and SpringBoard app switching are only possible as client-side animations. But these experiences aren’t easy to build with UIKit! This is because if you want a UI to be fully interactive and interruptible by the user while it’s animating, it has to be running in the same process as the event handling. In fact, in iOS 18 we added new APIs to AppKit and UIKit to adopt the SwiftUI client-side animation model. There are a lot of valid critiques of SwiftUI. The fact that SwiftUI doesn’t use CoreAnimation for its animations is not one of them.
显示更多