178 Followers
118 Following
10 Posts
先注册一个占个位,我的 Twitter 是: @tualatrix,微博是 @图拉鼎

While talking to developers we get a lot of questions on how to initialize a @StateObject with external values.

Today we update our docs by greatly expanding around all our data flow primitives with special attention to StateObject. You'll find better explanations on how to initialize StateObject with external data and few words around what to pay attention when doing so (https://developer.apple.com/documentation/swiftui/stateobject)

We hope this helps everyone get more clarity and understanding on how to work with SwiftUI.

StateObject | Apple Developer Documentation

A property wrapper type that instantiates an observable object.

Apple Developer Documentation
我也抢到 Ivory for macOS 的内测了~初步研究是 Mac Catalyst 技术实现的,即 iOS 版本改款到 Mac 上。品质还不错,毕竟不是 SwiftUI😂
一个三年没聊的人,来找我聊了聊,最后来了句「给我的开源项目点个星好吗?」

One of the hardest things for me with SwiftUI is that it doesn’t let me be a perfectionist.

I find myself saying “well, that’s going to have to be good enough”.

Happened twice today, and that’s two times too many.

做梦梦见又开始核酸了,两天一次还要自费,不做不给上楼。在据理力争下,终于成功说服保安上楼了,然后我开心的把方法面对面分享给了一群大学同学。醒来后在想这算不算噩梦,开头可能是的,结尾还算圆满。