Weekly Comment
Impressions on WWDC 2024
WWDC 2024 has successfully concluded. Throughout this week, Apple showcased a series of new features and functionalities that will significantly impact the future. I will share my thoughts and feelings about several aspects that particularly resonated with me, reflecting on the highlights of this WWDC.
AI
Despite pre-event leaks and extensive pre-rendering that gave many an early insight into the impending AI transformations by Apple, the live demonstrations during the Keynotes remained thrilling and inspiring. Apple demonstrated its understanding of AI: avoiding flashy but superficial tech displays, prioritizing privacy, seamlessly integrating AI into daily operations, and leveraging the close relationship between devices and users with enriched contextual information to provide a more personalized AI experience.
Overall, Apple's AI technology may not have felt like a revolutionary leap to attendees, but it is subtly integrating into everyday life, making the convenience of the AI era increasingly accessible to more people without them even realizing it.
Swift
Time flies, and Swift has reached its tenth anniversary. With the official launch of Swift 6, this milestone signifies Swift's mature phase. Starting with Swift 6, the Swift community has clearly demonstrated its determination to make Swift a mainstream development language across multiple platforms. At this WWDC, Apple continued to show enthusiastic and open support for Swift. The introduction of new official frameworks and applications significantly broadened Swift's application scope. These measures will undoubtedly invigorate the community and strengthen developers' confidence in using Swift.
SwiftData
The latest version of SwiftData was surprisingly impactful. Although it might seem that few features were added on the surface, the substantial underlying adjustments were revolutionary. Considering that SwiftData was only founded a year ago, such changes were particularly unexpected. Stability remains a challenge, as seen in the first test version, which may disappoint many developers who had high expectations for SwiftData. However, after in-depth analysis, I believe there is sound reasoning behind these significant adjustments. The new version of SwiftData has almost achieved decoupling from the Apple ecosystem, and once it adds an independent default storage implementation, it will have all the makings of a cross-platform open-source framework. While this is just my personal hope, given Apple's increasingly open approach to the community, the potential for this transformation is significant. If realized, the current waiting and effort will undoubtedly be worthwhile.
SwiftUI
Upon first encountering this year's new features in SwiftUI, I wasn't particularly excited. However, after further research, I realized that this update would be very significant in the history of SwiftUI. Starting with this version, the SwiftUI development team appears to have found the right path to rapidly evolve SwiftUI, exploring ways to enhance its capabilities while maintaining the characteristics of a declarative framework.
In this update, the SwiftUI team changed its previous API design strategy—from highly encapsulated and less flexible designs to providing developers with greater lower-level control. This includes integrating UIKit gestures, introducing more functional custom containers, custom rendering of Text and providing precise scroll control. These improvements have significantly raised the upper limits of SwiftUI, opening up broader technical possibilities for advanced developers.
As SwiftUI shares mechanisms for animations, transitions, and gestures with the UIKit framework, it is gradually transitioning from a framework built on UIKit/AppKit to a more equal partner within Apple's UI framework ecosystem. It is no longer just drawing features from other frameworks but is starting to give back by contributing new features to them.
The new version of the SwiftUI framework also underwent code-level stratification, carving out a separate SwiftUICore framework. This was likely done to facilitate better collaboration with UIKit and AppKit, but it also opens up exciting possibilities for future developments.
Conclusion
I am undoubtedly very satisfied with WWDC 2024, a sentiment that has grown as I have progressively learned and experienced the new features and capabilities. This level of satisfaction is relatively rare in recent WWDC events.
I am aware that many developers are indifferent to the new features introduced at WWDC, believing they are irrelevant in the short term. However, understanding these new features and trends is not only about facing future market needs. Learning about new APIs allows us to absorb innovative ideas and techniques, which we can apply to our current development practices.
Therefore, WWDC is not just a window into future trends; it is also a vital platform for facilitating communication, driving progress, and fostering self-improvement.
Previous Issue|Newsletter Archive
If you appreciate my work and want to promote your product to the Swift and iOS developer community, sponsoring my platform could be an excellent opportunity for you.
Your support through Patreon, or Buy Me a Coffee helps keep this newsletter and blog running. Thank you for finding this content helpful!
Articles on the New Features of WWDC 2024
SwiftData
SwiftUI
Customizing Gestures in SwiftUI ( Adding new gesture features introduced at WWDC 2024 ) by Fatbobman
@Previewable: Dynamic SwiftUI Previews Made Easy by Antoine van der Lee
Building a stretchy header view with SwiftUI on iOS 18 by Donny Wals
Enhanced replace transition for SF Symbols in iOS 18 by Natalia Panferova
How to create a SwiftUI floating window in macOS 15 by Pol Piella
Responding to keyboard modifiers on macOS in SwiftUI by Matthaus Woolard
What’s New in SwiftUI - Xcode 16 - iOS 18 (Video) by Kavsoft
Swift Charts
Swift
New GitHub Organization for the Swift Project by Ted Kremenek
Getting Started with Swift Testing in iOS 18 and Xcode 16 by Chase
Design
Others
肘子的话
WWDC 2024 观后感
WWDC 2024 已圆满落幕。在这一周里,苹果向开发者们展示了一系列对未来将产生深远意义的新特性和功能。我将对几个感触较深的方面分享一下看法和感受,回顾这次 WWDC 的亮点。
AI
尽管因为信息提前泄漏和长时间的预渲染,许多人在 WWDC 之前已对苹果即将带来的 AI 领域变革有所预知,但在亲眼见到 Keynotes 上的演示后,依然令人振奋和鼓舞。苹果在演示中展现了其对 AI 的理解:避免华而不实的技术炫耀,重视隐私保护,让 AI 技术自然融入日常操作中,并利用设备与用户之间的紧密联系,借助更丰富的上下文信息,提供更为个性化的 AI 体验。
总的来说,苹果的 AI 技术并不会让与会者感受到跨时代的革命性创新,但其将渗透到用户日常生活中的细微之处,让越来越多的人在不经意间享受到 AI 时代的便捷。
Swift
时间飞逝,Swift 已迎来其十周年。随着 Swift 6 的正式推出,这一里程碑标志着 Swift 迈向成熟的重要一步。从 Swift 6 开始,Swift 社区更加明确地展示了将 Swift 打造为跨平台主流开发语言的决心。在此次 WWDC 中,苹果一如既往地展现了对 Swift 的热情和更开放的态度。除了继续加大对社区的支持,苹果推出的新官方框架和应用显著提升了 Swift 的应用广度。这些措施无疑将进一步激发社区的活力,增强开发者对使用 Swift 的信心。
SwiftData
SwiftData 的最新版本带来了意外的震撼。虽然表面上新增的功能似乎并不多,但底层的大幅调整却是颠覆性的。考虑到 SwiftData 仅成立一年,这样的变化尤为出人意料。从首个测试版本的表现来看,稳定性目前仍是主要挑战。这可能会让许多对 SwiftData 抱有高期望的开发者感到失望,然而,深入研究后,我认为这些重大调整背后有其合理之处。新版本的 SwiftData 几乎实现了与苹果生态系统的解耦,并且一旦其增加了一个独立于苹果生态的默认存储实现,它将具备成为一个跨平台开源框架的所有条件。虽然这只是我的个人期望,但鉴于苹果对社区展示出的日益开放的态度,这一变革的可能性不容小觑。如果这成为现实,那么当前的一切等待和努力都将是值得的。
SwiftUI
初次接触 SwiftUI 今年的新特性时,我并未感到特别兴奋。然而,做了更多的研究后,我意识到此次更新在 SwiftUI 的发展史上将具有十分重要的意义。从这个版本开始,SwiftUI 开发团队似乎找到了快速发展 SwiftUI 的正确路径,探索出了在保持声明式框架特性的同时,有效提升其表现力的方法。
在这次更新中,SwiftUI 团队转变了其以往的 API 设计策略——过往的设计高度封装且调整空间较小,现在则为开发者提供了更多的底层控制能力。例如,集成了 UIKit 的手势系统,引入了功能更丰富的自定义容器,以及提供了精确的滚动控制等。这些改进显著提升了 SwiftUI 的能力上限,为高级开发者开辟了更广阔的技术实现空间。
随着 SwiftUI 与 UIKit 框架之间动画、转场和手势等机制的共享,SwiftUI 正逐渐从仅基于 UIKit/AppKit 的框架,转变为与苹果生态中其他 UI 框架更平等的合作伙伴。它不再仅是汲取其他框架的功能,而是开始具备了反哺其他框架新特性的能力。
新版本的 SwiftUI 框架还在代码层面进行了分层处理,单独划分出了 SwiftUICore 框架。这可能主要是为了更好地与 UIKit 和 AppKit 平等合作,但这也给了我对其它可能性的充分遐想空间。
最后
我对 WWDC 2024 的满意程度无疑非常高,这种满意是随着我对新功能和新特性的逐步了解与深入体验而逐渐增强的。这种情况在最近几届 WWDC 中相对罕见。
我也清楚,许多开发者对 WWDC 推出的新功能不甚关心,认为这些新功能短期内与他们无关。然而,了解这些新功能和趋势不仅仅是为了应对未来市场的需求,通过学习新的 API,我们能够吸收许多创新思维和技巧,并将它们应用于当前的开发实践。
因此,WWDC 不只是观察未来趋势的窗口,它同样是一个促进交流、推动进步和自我提升的重要平台。
如果您发现这份周报或我的博客对您有所帮助,可以考虑通过 爱发电,Buy Me a Coffee 支持我的创作。
与 WWDC 2024 新功能有关的文章
SwiftData
SwiftUI
Customizing Gestures in SwiftUI ( Adding new gesture features introduced at WWDC 2024 ) by Fatbobman( 东坡肘子 )
@Previewable: Dynamic SwiftUI Previews Made Easy by Antoine van der Lee
Building a stretchy header view with SwiftUI on iOS 18 by Donny Wals
Enhanced replace transition for SF Symbols in iOS 18 by Natalia Panferova
How to create a SwiftUI floating window in macOS 15 by Pol Piella
Responding to keyboard modifiers on macOS in SwiftUI by Matthaus Woolard
What’s New in SwiftUI - Xcode 16 - iOS 18 (Video) by Kavsoft
Swift Charts
Swift
New GitHub Organization for the Swift Project by Ted Kremenek
Getting Started with Swift Testing in iOS 18 and Xcode 16 by Chase
Design
Others
活动
探索 WWDC24 上公布的重大更新
苹果将在 2024 年 7 月 2 日 上午 9:30 – 下午 5:30 (GMT+8) 举办视频讲座。与广大开发者一起深入了解 WWDC24 上公布的重大更新。将探索主题演讲和 Platforms State of the Union 的关键时刻,探索视频讲座,深入探究新的资源和文档,并展示各项指南将如何帮助你了解所有重大发布。活动语言为简体中文。
请在 7 月 1 日晚上 11:45 (GMT+8) 之前 注册。
AdventureX「指引者」预告
在 AdventureX 2024 你可以在所有的「指引者」上看到你的影子,他们不再是身着西装,似乎遥不可及的“成功人士”。你会与他们面对面交流,在他们的故事中,你会看见曾经的那个热血男孩,艺术青年……如同今天的你一般,或许迷茫过,失意过,但从未变的是对热爱事物的坚定和初心。
更多「指引者」将在稍后发布。
👉 如果你是 16-26 岁的超级青年,欢迎报名 ADVX:adventure-x.org(免费&我们将会提供三餐和住宿)
🌍 游客注册链接:https://nexus.adventure-x.org(🆓)
⏰ 时间:2024.7.15 - 7.19
📍 地点:湖畔创研中心