查看原文
其他

WWDC 2022 第二天 - Keynote 笔记和 WWDC.playground 直播活动

戴铭 starming 2022-06-07


昨天我发了个指南,WWDC 2022 第一天 - 指南 。今天继续。

今天最让我印象深刻是 M2、Lock screen widgets、Stage manager、Swift Charts、WeatherKit、SwiftUI Navigation API、只要一个 1024x1024 App Icon、Sticky headers on Xcode scrolling、Xcode View Debugger 可以用于 SwiftUI 了,还有 iOS 16 原生的支持 Nintendo Switch Pro 手柄了。

后面我将更多内容使用点对点的分发,可以用 Planet 关注,我的 IPNS 是:k51qzi5uqu5dlorvgrleqaphsd1suegn8w40xwhxl0bgsyxw3zerivt59xbk74

Keynote 要点:

  • • iOS 16

    • • introduce matter as new standard

    • • redesign of app

    • • quickly remove access for others

    • • widgets

    • • more personalization

    • • multi-screen

    • • tap to pay on iPhone

    • • order tracking

    • • edit messages

    • • delete messages

    • • mark as unread

    • • share play

    • • multistop routing

    • • transit(add card to wallet)

    • • new details

    • • lookaround api

    • • new lock screen

    • • live activities

    • • extend focus to lock screen

    • • forcus filter for apps

    • • dictation improvements

    • • live text in video

    • • visual lookup

    • • maps

    • • iCloud shared photo library

    • • persanalized spatial audio

    • • quick notes on iPhone

    • • fitness app without watch

    • • messages

    • • pay

    • • carplay

    • • safety check

    • • home

  • • M2

    • • 15.8 trillion operations per seconds

    • • 10-core GPU

    • • macbook air and macbook pro 13"

    • • better and faster

    • • silent design

    • • fast charge

    • • new colors

    • • magsafe

    • • audio jack

  • • macOS Ventura

    • • improved spotlight

    • • undo send and more

    • • shared tab groups

    • • passkeys

    • • desk view

    • • stage manager

    • • continuity for facetime

    • • use iPhone as camera on macbook

  • • iPadOS 16

    • • weather app

    • • WeatherKit

    • • collaborations api

    • • freeform board

    • • stage manager

  • • WatchOS 9

    • • four new watch faces

    • • new ShareKit api

    • • improved metrics for running

    • • heart rate zones

    • • create custom workouts

重要的几个信息:

  • • Platforms State of the Union (https://developer.apple.com/videos/play/wwdc2022/102/) 汇总 WWDC22 技术的 Session,必看。

  • • iOS 16 新 API 和功能 (https://developer.apple.com/ios/) Apple 的整理。

  • • New Technologies WWDC22 (https://developer.apple.com/documentation/New-Technologies-WWDC22) Apple 整理的 WWDC22 上的新技术。

  • • WWDC22 Sample Code (https://developer.apple.com/sample-code/wwdc/2022/)

  • • iOS and iPadOS 16 release notes (https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-16-release-notes) 系统接口更新说明,包括 SwiftUI 更新了啥。

  • • 下载 Xcode 14 beta (https://developer.apple.com/download/applications/) 直接在开发者官方下载地方下。7个G,这次做了裁剪,手表和电视都做成了可选。

  • • Webkit 大量更新 (https://webkit.org/blog/12824/news-from-wwdc-webkit-features-in-safari-16-beta/)

大赞的库:

  • • SwiftUI 更新介绍 (https://developer.apple.com/xcode/swiftui/)

  • • Swift Charts (https://developer.apple.com/documentation/Charts) 今年 WWDC 的惊喜。Swifty Rush 的文章介绍 Swift Charts with SwiftUI (https://www.swiftlyrush.com/swift-charts-with-swiftui/)

  • • Navigation API 又一个惊喜。从以前的 Navigation 迁移到新 API 的文档说明 Migrating to New Navigation Types (https://developer.apple.com/documentation/swiftui/migrating-to-new-navigation-types?changes=latest_minor)。可以看 NavigationStack (https://developer.apple.com/documentation/swiftui/navigationstack?changes=latest_minor) 、NavigationSplitView (https://developer.apple.com/documentation/swiftui/navigationsplitview)。相关 Session 是 The SwiftUI cookbook for navigation (https://developer.apple.com/videos/play/wwdc2022/10054/)。Natalia Panferova 的文章的介绍 Overview of the New SwiftUI Navigation APIs (https://nilcoalescing.com/blog/SwiftUINavigation2022/)

  • • macOS Window 支持,等到了。参看这个示例 Bringing multiple windows to your SwiftUI app (https://developer.apple.com/documentation/swiftui/bringing_multiple_windows_to_your_swiftui_app)

  • • RegexBuilder (https://developer.apple.com/documentation/RegexBuilder) 构建正则表达式的 DSL

  • • Live Text API

  • • Weatherkit 指南 (https://developer.apple.com/weatherkit/get-started/) 每月在 500k 次调用内是免费。

  • • RoomPlan 接口文档 (https://developer.apple.com/documentation/RoomPlan) 用摄像头扫描物理环境,创建房间的 3D 模型。Introducing RoomPlan (https://developer.apple.com/augmented-reality/roomplan/) 介绍 RoomPlan。

  • • [Spatial](https://developer.apple.com/documentation/spatial) 轻量 3D 数学库。

  • • Passkey (FIDO) 原理和 Web3 钱包核心逻辑差不多。

  • • DriverKit 安全的 USB 和 PCI 硬件设备连接到 iPad 的库。

好用的功能和组件:

  • • UICalendarView (https://developer.apple.com/documentation/uikit/uicalendarview) 日历视图

  • • BADownloadManager (https://developer.apple.com/documentation/backgroundassets/badownloadmanager) 下载队列管理器。

  • • backgroundTask(_:action:) (https://developer.apple.com/documentation/swiftui/scene/backgroundtask(_:action:)?changes=latest_minor)

  • • ImageRenderer 将 View 生成图片。

  • • presentationDetents 优秀。示例 Using Presentation Detents in SwiftUI (https://www.swiftlyrush.com/using-presentation-detents-in-swiftui/)

  • • String Index 升级 (https://github.com/apple/swift-evolution/blob/main/proposals/0180-string-index-overhaul.md)

一些方便上手的例子:

  • • Configuring a multiplatform app (https://developer.apple.com/documentation/Xcode/configuring-a-multiplatform-app-target) 单代码,多平台 in Xcode 14。

  • • Food Truck: Building a SwiftUI multiplatform app (https://developer.apple.com/documentation/swiftui/food_truck_building_a_swiftui_multiplatform_app/) 示例了 NavigationSplitView、Layout、Chart 和 WeatherKit 的运用。

一些感兴趣的 Session:

  • • Session 按主题分类 (https://developer.apple.com/wwdc22/topics/)

  • • What's new in Swift (https://developer.apple.com/videos/play/wwdc2022/110354/)

  • • Swift Session、Lab 和 Digital Lounges 合集 (https://developer.apple.com/wwdc22/topics/swift/) Apple 专门为 Swift 制作的 WWDC22 页面。

  • • Visualize and optimize Swift concurrency (https://developer.apple.com/videos/play/wwdc2022/110350/)

  • • Link fast: Improve build and launch times (https://developer.apple.com/videos/play/wwdc2022/110362/) 构建和启动加快

  • • Demystify parallelization in Xcode builds (https://developer.apple.com/videos/play/wwdc2022/110364/)

  • • Create macOS or Linux virtual machines (https://developer.apple.com/videos/play/wwdc2022/10002/)

今天晚上 8:00(北京时间 6 月 7 日),WWDC.playground 邀请了 Apple 社区内活跃的设计师、产品经理、开发者,以他们的视角聊聊这次的 WWDC22 开发者大会,让你最快了解本届 WWDC 的最新技术动态,以及他们对新的系统、技术甚至是硬件的独家观点。同时,我们也会在直播中抽取不少礼品,欢迎大家来捧场

Bilibili 预约(预约有奖:Apple AirPods 3 * 1 份)






视频号预约(直播现场好礼送不停~)

直播详情

和昨天一样。礼物是「objccn.io 电子书任意一本」* 1+ 「WWDC22 内参」* 4,留言就有机会,大家留言吧,每篇都有这些礼物,好的留言,我就会送出。

您可能也对以下帖子感兴趣

文章有问题?点此查看未经处理的缓存