WWDC 2020會話說明
謝謝 ?
去年,WWDC會議說明非常成功,以至於我決定繼續這種形式的WWDC會話摘要。我想花點時間感謝大家的貢獻,反饋,支持和閱讀我的會議筆記
簡介
通常,閱讀某些彈力要點而不是觀看50分鐘的會話視頻要快得多。然後,如果您發現一些有趣的東西,您仍然可以觀看它。
使用★強調了異常提及的會話。
這是在進行中的工作,因為我自己觀看所有視頻都是付出了很多努力。因此,要么要耐心等待,要么就打開一個問題,以提出建議您想看的會話筆記::)
貢獻
如果我弄錯了問題,或者您有改進的建議,請隨時提交公關。如果您想貢獻,也請查看貢獻。 md。
非常感謝所有貢獻並提高了筆記的總體質量以及在列表中添加完整筆記的人。
提及
該倉庫已經在Twitter上多次提及,除此之外,在以下位置:
- iOS開發周刊第409號
- iOS糖果問題287
- Swift Developments問題189
- wwdcnotes
有趣的與WWDC相關的鏈接
- @Apple的Apple開發人員文檔
- XCode發行說明
- iOS和iPados發行說明
目錄
- (待辦事項)使用App Store Connect API擴展自動化
- (待辦事項)評估的新功能
- 引入汽車鑰匙
- (待辦事項)優化視頻應用程序的核心圖像管道
- (待辦事項)編輯並播放帶有Avfoundation的HDR視頻
- (待辦事項)在您的應用中導出HDR媒體,並具有AvFoundation
- (待辦事項)作者與avassetwriter碎片的mpeg-4內容
- (待辦事項)用金屬發現射線跟踪
- (待辦事項)了解金屬功能指針
- (待辦事項)核心數據:雜物和格言
- (待辦事項)開關控制的應用程序可訪問性
- (待辦事項)使您的應用在視覺上訪問
- (待辦事項)用Xcode構建基於金屬的核心圖像內核
- (待辦事項)在您的應用程序中創建無縫的語音體驗
- uicollectionView中的列表
- 現代細胞配置
- 認識widgetkit
- (待辦事項)在Swiftui中的堆棧,網格和輪廓
- (待辦事項)為小部件構建Swiftui視圖
- (待辦事項)小部件代碼,第1部分:冒險開始
- (待辦事項)小部件代碼,第2部分:替代時間表
- (待辦事項)小部件代碼,第3部分:推進時間表
- (待辦事項) Swiftui中的應用要素
- (待辦事項)在Swiftui中構建基於文檔的應用程序
- Swiftui中的數據必需品
- Swiftui的新功能
- (待辦事項)為TVOS構建Swiftui應用程序
- (待辦事項)用創建ML構建一個動作分類器
- (待辦事項)可擴展數據源的進步
- (待辦事項)為Apple Watch創建並發症
- (待辦事項)啟用加密的DNS
- (待辦事項)在Swiftui中建立並發症
- (待辦事項)使您的並發症保持最新狀態
- 與iOS採摘機,菜單和動作一起建造
- (待辦事項)優化MAC Catalyst應用的界面
- (待辦事項)用功率和性能API確定趨勢
- (待辦事項)設計高質量的Siri媒體互動
- (待辦事項)將您的Sirikit媒體意見擴展到更多平台
- (待辦事項)背景執行神秘
- (待辦事項) Sirikit和快捷方式的新功能
- (待辦事項)評估和優化應用程序的語音交互
- (待辦事項)賦予您的意圖
- (待辦事項)破譯並處理常見的Siri錯誤
- (待辦事項) Xcode組織者診斷性能問題
- 用xctest消除動畫鏈
- 為什麼我的應用被殺死?
- (待辦事項)
- (待辦事項)將您的應用程序與WAND集成
- (待辦事項)在快捷方式應用程序中介紹您的動作
- 智力設計:應用程序進化
- (待辦事項)智力設計:與“系統”結交朋友
- 智力設計:發現新機會
- (待辦事項)發現核心圖像調試技術
- (待辦事項)用avfoundation和videotoolbox解碼prores
- (待辦事項)寫測試以失敗
- (待辦事項)為iPados指針構建
- (待辦事項)處理觸控板和鼠標輸入
- (待辦事項)推送通知底漆
- (待辦事項)探索XCode Playgrounds的軟件包和項目
- UicollectionView的進步
- 通用鏈接中的新功能
- (待辦事項)探索動作與願景應用程序
- 主題演講★
- (待辦事項)見表面分享
- (待辦事項)設計出色的小部件
- (待辦事項)採用MacOS的新外觀
- (待辦事項)為iPad構建
- (待辦事項)見iPad的塗鴉
- (待辦事項)鉛筆kit的新功能
- (待辦事項)支持應用程序中的硬件鍵盤
- (待辦事項)支持您應用中的本地網絡隱私
- (待辦事項)通過現代網絡提高性能和安全性
- (待辦事項)建立限製網絡的本地推送連接
- (待辦事項) iPad和Apple Silicon Mac上的iPhone應用程序
- (待辦事項)到處都是汽車
- (待辦事項)用自定義轉子的配音效率
- (待辦事項) MAC催化劑的可訪問性設計
- (待辦事項)為其他業務創建應用程序剪輯
- (待辦事項) Swiftui簡介
- 簡化您的應用程序剪輯
- (待辦事項) Discove for IT和託管軟件更新
- (待辦事項)利用企業身份和身份驗證
- (待辦事項)構建位置感知企業應用
- (待辦事項)構建可擴展企業應用套件
- (待辦事項) MAC Catalyst中的新功能
- (待辦事項)遊戲中心的設計
- 配置並鏈接您的應用程序剪輯
- 將二進制框架作為快速軟件包分發
- (待辦事項)檢查,修改和構造鉛筆套圖
- (待辦事項)為SwiftUi預覽構建您的應用程序
- (待辦事項) Carekit的新功能
- (待辦事項)使用核心ML使用模型部署和安全性
- (待辦事項)使用Core ML轉換器在設備上獲取模型
- (待辦事項)與Swift創建ML的控制培訓
- (待辦事項)提供更好的HLS音頻體驗
- (待辦事項)構建端點安全應用程序
- (待辦事項)格式化:使數據對人類友好
- 位置隱私設計
- (待辦事項)在Objective-C運行時的進步
- XCTSKIP您的測試
- 擁抱Swift類型推理
- (待辦事項)安全地管理指針
- (待辦事項)探索在Swift中登錄
- (待辦事項) Swift軟件包:資源和本地化
- Swift的新功能
- (待辦事項) WatchOS設計中的新功能
- (待辦事項)設計出色的應用程序剪輯
- (待辦事項)
- 探索應用程序剪輯
- (待辦事項) UI排版的細節
- (待辦事項) TVOS圖片中的主圖
- Healthkit的新功能
- (待辦事項)將健康數據與HealthKit同步
- (待辦事項)視覺上編輯Swiftui視圖
- (待辦事項) Discover Wkwebview增強功能
- (待辦事項)確保您的應用程序:威脅建模和反模式
- (待辦事項)與WatchOS上的快捷方式創建快速互動
- (待辦事項)將配置和智能添加到小部件
- (待辦事項)通過Siri事件建議擴大您的影響力
- 平台國聯盟★
- (待辦事項)智力設計:結識他們所在的人
- (待辦事項)創建出色的企業應用程序:與Box的Aaron Levie聊天
- (待辦事項)與iOS採摘器,菜單和動作一起設計
- (待辦事項) iPad的設計
- (待辦事) SF符號2
- (待辦事項)核心NFC中的新功能
- (待辦事項)與DriverKit現代化PCI和SCSI驅動程序
- (待辦事項)將Mac應用程序移植到Apple Silicon
- (待辦事項) ResearchKit中的新功能
- (待辦事項)在Swift中探索數值計算
- (待辦事項)使用Xcode構建對本地化友好的佈局
- (待辦事項)處理UI測試中的中斷和警報
- 更快地獲得測試結果
- (待辦事項)為員工創建自定義應用程序
- (待辦事項)使用零觸摸部署Apple設備
- (待辦事項)滿足音頻工作組
- (待辦事項)通過HLS工具改善流創作
- (待辦事項)與AvauioSession記錄立體聲音頻
- 低延遲HLS中有什麼新功能
- (待辦事項)發現HLS阻塞預緊提示
- (待辦事項)使用HLS播放列表三角洲更新優化實時流
- (待辦事項)減少HLS阻止播放列表重新加載的延遲
- (待辦事項)將廣告插入適應低延遲HLS
- (待辦事項)藝術家的AR工具包
- (待辦事項)用金屬線束蘋果GPU
- (待辦事項)用GPU計數器優化金屬應用程序和遊戲
- (待辦事項)與AR快速外觀在線購物
- (待辦事項)用Xcode 12獲得對金屬應用的見解
- 探索Arkit 4
- (待辦事項) Reality Kit中的新功能
- (待辦事項) USD的新功能
- (待辦事項)遊戲控制器的進步
- (待辦事項)用金屬構建GPU二進制
- (待辦事項)金屬的調試GPU側錯誤
- (待辦事項)將鍵盤和鼠標遊戲帶到iPad
- (待辦事項)點擊遊戲中心:儀表板,訪問點和個人資料
- (待辦事項)點擊遊戲中心:排行榜,成就和多人遊戲
- (待辦事項)支持性能密集型應用程序和遊戲
- (待辦事項)將您的金屬應用程序帶到蘋果矽Macs
- (待辦事項)優化蘋果矽Mac的金屬性能
- (待辦事項)用replayKit捕獲和流式傳輸應用程序
- (待辦事項)發現Apple TV的搜索建議
- 加速您的應用程序
- (待辦事項) Apple Watch流式傳輸音頻的新功能
- (待辦事項)管理Apple設備的新功能
- (待辦事項) iPados指針的設計
- (待辦事項)處理應用程序中有限的照片庫
- (待辦事項)在創建ML中構建圖像和視頻樣式傳輸模型
- (待辦事項)
- (待辦事項)使用Xcode上的AWS lambda上使用Swift
- (待辦事項)在您的TVOS應用中支持多個用戶
- (待辦事項) Web檢查員中有什麼新功能
- (待辦事項)成為模擬器專家
- (待辦事項)不安全的迅速
- (待辦事項)將自定義視圖和修飾符添加到Xcode庫
- (待辦事項)將核心數據存儲與CloudKit公共數據庫同步
- App Store Connect中有什麼新功能
- 認識新照片選擇器
- (待辦事項)檢測身體和姿勢
- (待辦事項)為iPad和Mac創建Swift Playgrounds內容
- (待辦事項)發現如何下載和播放HLS離線
- (待辦事項)超越計數步驟
- (待辦事項)用自然語言使應用程序更聰明
- (待辦事項)
- (待辦事項)在Xcode中引入Storekit測試
- (待辦事項)位置的新功能
- (待辦事項)應用程序內購買的新功能
- 錢包和蘋果工資的新功能
- (待辦事項) Web開發人員的新功能
- (待辦事項)開始使用HealthKit
- (待辦事項)滿足Safari Web擴展
- (待辦事項)一tap帳戶安全升級
- (待辦事項)與Apple Business Manager的自定義應用程序分銷
- (待辦事項)見附近的互動
- (待辦事項)處理FHIR而不會被燒毀
- (待辦事項)符合臉部ID並觸摸網絡ID
- (待辦事項)用於訂閱的架構
- (待辦事項) Classkit中的新功能
- (待辦事項)探索計算機視覺API
- (待辦事項)通過更好的隱私建立信任
- (待辦事項)使用金屬性能著色器圖構建自定義的ML模型
- (待辦事項)精煉appocend-c框架
- (待辦事項)探索Apple Silicon Mac的新系統體系結構
- (待辦事項)與xctissue的分類測試失敗
使用App Store Connect API擴展自動化
https://developer.apple.com/wwdc20/10004
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
評估的新功能
https://developer.apple.com/wwdc20/10005
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
引入汽車鑰匙
https://developer.apple.com/wwdc20/10006
主持人: Matthias Lerch
- 人們可以解鎖,鎖定和啟動汽車(iPhone或Apple Watch)
- 牢固地存儲在設備上,可以通過iCloud刪除
- 鑰匙可以與家人或朋友共享
- 無線電技術不可知(到目前為止支持NFC )
- 離線有能力
- 汽車需要支持:
- 所有者配對(如果iPhone和汽車,關聯)
- 證明汽車的所有權
- 啟動配對
- 將iPhone放在汽車的NFC閱讀器附近
- 汽車鑰匙出現在錢包中
- 交易(解鎖,鎖,啟動汽車)
- NFC讀取器在門把手和儀表板上(發動機啟動)
- 針對安全性和性能進行了優化
- Express Mode允許功能無面部ID或密碼工作(默認打開)
- iPhone和汽車可以離線
- 蘋果不知道你什麼時候使用汽車
- 服務器接口(密鑰共享,密鑰管理)
- 通過消息共享鑰匙
- 共享時汽車可能會離線
- 蘋果不知道您與誰共享您的汽車鑰匙
- 可選訪問級別(例如“解鎖和驅動器”,“訪問和驅動到65英里 /小時”)
- 這取決於每個汽車製造商來定義訪問級別
- 密鑰管理
- 管理iPhone或Car的所有者和共享鑰匙
- 從設備停止工作的鍵立即工作(即使設備離線)
- 易於更改所有者設備(例如購買新iPhone時)
- 系統體系結構
- 完全整合到本地iOS中
- 鍵創建並存儲在安全元素中,從不導出
- 所有功能都使用AES和Eliptic-Curve密碼學
- 基於PKI的離線設計
- 簡單服務器集成不需要汽車製造商TSM(受信任的服務管理器)
- 什麼是數字汽車鑰匙?
- 借給用戶的設備,而不是蘋果或汽車製造商
- 私鑰(SK)永遠不會離開SE(安全元素)
- 公共密鑰在X.509證書中導出
- 小程序
- 在安全元件中實現汽車鑰匙
- 存儲密鑰對,汽車公鑰,安全郵箱
- 所有在單個小程序實例中託管的汽車鍵
- 所有者配對流(在線)
- Pake驗證者
- 配對密碼
- 配對
- 加密鏈接
- 密鑰激活/註冊
- 關鍵證明
- 密鑰共享流
- 所有者使用消息發送邀請
- 新的鑰匙在
- 身份證書鏈
- 所有者驗證
- 證明返回
- 離線註冊
- 汽車鑰匙的生命週期
- 證書和交易
- 所有者共享,密鑰共享,快速和標準交易
- 在11:30更深入地了解所呈現的流程和計劃
- 無線電技術
- NFC
- 基於標準的NFC閱讀器
- 增強的非接觸式協議(ECP)
- 啟用全自動NFC體驗
- 交易開始之前可用的標識符(讀者類型,汽車製造商)
- 有效的讀者投票
- 超寬帶
- 帶U1芯片的iPhone
- 與iPhone一起在袋子或口袋中使用
- 通用密鑰管理體系結構
- 目前正在開發規範
- 服務器集成
- 遠程密鑰管理所需
- Auto Maker Server需要建立與Apple後端的連接(對於每個環境,例如測試和生產)
- 交換證書
- 實現和測試服務器接口(註冊新密鑰,撤銷密鑰,發送通知)
- 提供藝術品
- 連接到汽車製造商應用程序
- 汽車製造商應用程序
- 使用存儲在錢包中的鍵提供自定義功能
- 開始所有者配對
- 可用於汽車製造商
- 需要權利
- 使用Passkit API
- 如何入門(對於汽車製造商)
- 汽車連通聯盟
- 數字密鑰規範2.0
- 數字密鑰規範3.0(在開發中,將支持超寬帶)
- carconnectivity.org
- Apple MFI程序的Entroll
優化視頻應用程序的核心圖像管道
https://developer.apple.com/wwdc20/10008
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
編輯和播放使用Avfoundation的HDR視頻
https://developer.apple.com/wwdc20/10009
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
帶有Avoundation的應用中的HDR媒體導出HDR媒體
https://developer.apple.com/wwdc20/10010
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
作者與AvassetWriter的碎片MPEG-4內容
https://developer.apple.com/wwdc20/10011
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
發現射線用金屬跟踪
https://developer.apple.com/wwdc20/10012
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
了解金屬功能指針
https://developer.apple.com/wwdc20/10013
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
核心數據:雜物和格言
https://developer.apple.com/wwdc20/10017
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
開關控制的應用程序可訪問性
https://developer.apple.com/wwdc20/10019
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
使您的應用在視覺上訪問
https://developer.apple.com/wwdc20/10020
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
用Xcode構建基於金屬的核心圖像內核
https://developer.apple.com/wwdc20/10021
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
在您的應用程序中創建無縫的語音體驗
https://developer.apple.com/wwdc20/10022
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
uicollectionView中的列表
https://developer.apple.com/wwdc20/10026
主持人:邁克爾·奧奇(Michael Ochs)
- iOS中的列表14個收集視圖顯示
UITableView - 類似於UICollectionView中的外觀 - 改進的自我規模支持:現在使用
UICollectionView中的列表時默認- 用自動劃分構建單元格,讓收集視圖接管
- Override
preferredLayoutAttributesFittingAttributes:在細胞子類上進行手冊大小
- UICollectionLayoutListConfiguration
- 佈局側唯一需要在集合視圖中構建列表的新類型
- 建立在
NSCollectionLayoutSection和UICollectionViewCompositionalLayout上:查看收集的進步查看佈局 - 添加了兩種列表專有風格:
.sidebar和.sidebarPlain用於在iPados上構建多列應用程序14 - 顯示/隱藏分離器和配置列表標頭/頁腳的選項
- 創建列表
- 簡單的方法
- 創建一個
UICollectionLayoutListConfiguration - 使用配置創建一個
UICollectionViewCompositionalLayout
- 每節設置
- 創建一個
UICollectionLayoutListConfiguration - 使用配置創建
NSCollectionLayoutSection - 將上述代碼放入現有部分提供商初始化器中的組成佈局
- 根據每節自定義佈局
- 配置列表部分標題/頁腳
- 必須明確啟用標題/頁腳
- 註冊標題/頁腳作為補充觀點
- 將標題/頁腳配置模式設置為“補充”
- 在屏幕上呈現標頭/頁腳時提供補充視圖
- 將
headerMode為firstItemInSection (僅標題)- 配置第一個集合視圖單元格看起來像標頭
- 建議用於層次數據結構和快照API:查看可擴展數據源的進步
- 數據源需要意識到第一個單元格是標題
- UICollectionViewListCell
-
UICollectionViewCell的子類可互換使用 - 更好地支持配置分離器插圖和手機內容凹痕
- 功能滑動動作
- 更好的配件API
- 授予訪問默認系統內容/背景配置:查看現代單元格配置
- 分離器佈局指南
- 分離器應該與主要單元格內容對齊
- 將此佈局指南限制為內容:Uikit佈局指南的對面
- 配置單元格的佈局
- 將“分離器佈局指南的領先錨”限制為Cell的主要內容的領先錨
- 使用系統提供的內容配置時會自動處理
- 滑動動作
- 僅在使用列表配置配置的單元內渲染單元格時才支持
- 覆蓋領先/尾隨的滑動操作的配置getter要配置
- 注意:切勿捕獲在操作處理程序中配置的單元格的索引路徑(不穩定)
- 直接捕獲數據模型
- 捕獲細胞的穩定標識符:
- 擴展數據源及其穩定項目標識符
- iOS 14中的新單元格註冊類型:uicollectionviewListCell
- 列表單元格的配件API
- 配置單元格和後側的選項
- 在同一側配置多個配件
- 列表單元格配件上的功能
- 重新訂購附件:竊聽時,單元將自動處於重新訓練模式
- 刪除附件:單元將自動揭示敲擊時配置的落後滑動操作
- 輪廓披露配件
- 細胞自動與數據源通信,並在竊聽時擴展/崩潰
- 需要新的部分快照API:查看可擴展數據源的進步
- 在保留自定義功能的同時,提供了大量的系統默認
現代細胞配置
https://developer.apple.com/wwdc20/10027
主持人:泰勒狐狸
- 開始配置
- 在iOS 13中,我們使用
UITableViewCell上的內置imageView和TextLabel屬性來顯示圖像和一些文本。 - 在iOS 14中,我們使用內容配置來描述特定狀態的單元格外觀
- 這就是您使用內容配置配置單元格的方式:
-
var content = cell.defaultContentConfiguration()這總是返回新的配置,而沒有設置任何內容。根本不需要考慮舊狀態。 - 在內容配置上設置圖像和文本。
-
cell.contentConfiguration = content ,一旦我們稱之為content,該單元格會更新以顯示我們指定的圖像和文本。
- 相同的代碼以配置任何單元格和任何支持內容配置的視圖。
- 可綜合,輕巧,非常便宜,可為性能創建和建造
- 配置類型
- 背景配置
- 讓您設置諸如背景顏色,視覺效果,中風,插圖,角落半徑和自定義視圖之類的東西
- 列出內容配置
- 讓您設置諸如圖像,文本,次要文本,佈局指標和行為之類的內容
- 配置狀態
- 配置狀態表示您用於配置單元格和視圖的各種輸入。
- 每個單元格,標頭和頁腳都有自己的配置狀態。
- 兩種類型
- 查看配置狀態
- 特質收集
- 4個州:突出顯示,選擇,殘疾和專注
- 自定義狀態:這是鍵值存儲,可添加用於配置視圖的任何額外狀態或數據。
- 單元格配置狀態
- 當
automaticallyUpdatesContentConfiguration為True時,該單元將自動調用updated(for:)當單元格的配置state更改時,在其contentConfiguration上更新,並將更新的配置應用回單元格。默認值是正確的。 - 當
automaticallyUpdatesBackgroundConfiguration為True時,該單元將自動調用updated(for:)在單元格的配置state更改時,在其後台configuration上更新,並將更新的配置應用回單元格。默認值是正確的。 - 您可以覆蓋
updateConfiguration(using:)來手動更新和自定義內容配置,通過將此屬性設置為False禁用自動更新。此方法在您的單元格第一次顯示之前被調用,並將在配置狀態更改時被調用。
認識widgetkit
https://developer.apple.com/wwdc20/10028
主持人:納希爾·汗(Nahir Khan),尼爾·德賽(Neil Desai)
- 現在在所有平台上使用小部件
- 偉大的小部件是可聽的,相關和個性化的
- 智能堆棧是小部件的集合,並使用裝置智能自動顯示正確的堆棧
- 小部件通過敲擊配置支持配置- 這是使用類似於Sirikit的意圖實現的
- 例如,在天氣應用中選擇城市
- UI完全在Swiftui中建造
- 韋德吉特的工作原理
- WidgetKit擴展是背景擴展
- 他們返回一系列時間表的視圖層次結構
- 時間線發送到主屏幕,該屏幕在正確的時間顯示正確的視圖
- 由於視圖已“準備就緒”
- 時間表從主應用程序刷新,並按擴展計劃進行更新
- 想像一下當天的日曆時間線。一個事件是從日曆中更新的,然後喚醒擴展名並提供新的時間表。
- 建造一個小部件
- 單小部件擴展名支持不同平台上的多種小部件
- 可能的配置:
Static (鍛煉小部件)或Intent-Based (可以個性化的提醒小部件) - 受支持的家庭:小部件可以啟用以下一個或許多家庭:
systemSmall , systemMedium , systemLarge - 小部件結構必須符合
Widget及其身體,以WidgetConfiguration - 如何建立可透徹的體驗
- 小部件不是迷你應用程序,他們寧願在主屏幕上項目內容
- 沒有滾動
- 沒有視頻或動畫圖像
- 將交互作用以深度鏈接到主要應用程序。使用widgeturl api與URL鏈接相關聯的小部件(使用Swiftui的新鏈接API)
- 重要的新視圖類型:
-
Placeholder- 不應包含用戶數據
- 出色的佔位符UI表示您的數據是什麼樣的代表
Snapshot- 代表單個條目
- 應該盡快返回視圖
- 用於在畫廊中顯示您的小部件
- 將其用作時間表中的第一個條目,以便用戶在畫廊中看到他們看到的東西
Time line- 觀點和日期的結合
- 輸出如果將WidgetKit擴展程序序列化為磁盤,該磁盤啟用了單個條目的渲染
- 重新加載
- 通過結構提供商獲取
TimelineProvider struct Provider: TimelineProvider- 實施
func snapshot(...)和func timeline(...)以返回相應的數據 - 在時間行時提供重新加載政策,以確定應何時重新加載時間線:
atEnd , after(date: Date) , never
- 系統確定重新加載小部件的最佳時間,例如:
- 背景通知
- 大幅度變化
- 用戶進行的應用程序更改,例如新日曆條目
- 使用
WidgetCenter.[reloadTimelines(ofKind:), reloadAllTimelined] - 使用
WidgetCenter.getCurrentConfigurations(completion:) - 使用
onBackgroundURLSessionEvents修飾符啟動網絡任務,該任務可將結果傳遞給您的擴展 - 個性化
- 使用Siri已知的
Intents框架來自定義小部件行為 - 使用新的應用內意圖處理來回答小部件的請求
IntentConfiguration用於為基於意圖的小部件配置提供動力IntentTimelineProvider用於生成特定的時間線
- 智力
- 小部件通過設備智能顯示在主屏幕上
- 您的應用程序可以捐贈快捷方式
- 小部件擴展可以使用
TimelineEntryRelevance分數和持續時間屬性來註釋時間線條目
Swiftui中的堆棧,網格和輪廓
https://developer.apple.com/wwdc20/10031
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
為小部件構建Swiftui視圖
https://developer.apple.com/wwdc20/10033
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
小部件代碼,第1部分:冒險開始
https://developer.apple.com/wwdc20/10034
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
小部件代碼,第2部分:替代時間表
https://developer.apple.com/wwdc20/10035
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
小部件代碼,第3部分:前進時間表
https://developer.apple.com/wwdc20/10036
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
Swiftui的應用必需品
https://developer.apple.com/wwdc20/10037
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
在Swiftui中構建基於文檔的應用程序
https://developer.apple.com/wwdc20/10039
主持人:榜樣,另一個人
待辦事項!您可以為本屆會議做出貢獻,請參閱parduting.md
Swiftui中的數據必需品
https://developer.apple.com/wwdc20/10040
主持人: Curt Clifton,Luca Bernardi,Raj Ramamurthy
- 入門
- 始終問您以下問題:
- 我的觀點需要什麼數據?
- 視圖將如何操縱這個日期?
- 數據將來自哪裡?
- 不變的視圖(僅顯示數據)僅包含讓屬性
- 在自己的配置對象中拉出多個屬性
- 配置對象可以包含函數以突變其狀態
- 使用
@State private var config: ConfigObject()來重新渲染您的視圖,之後config後 - 讓父和sub視圖通過使用
@Binding var config通過單個配置對象進行通信 - 通過將IT標記為參考使用美元符號:
SubView(config: $config)通過標記為參考來傳遞config
- 使用可觀察的對象進行建模數據
- 班級受限協議(僅通過參考類型採用)
- 可用於實現超級定制行為,例如通過服務或服務器備份數據
- 通過實現
var objectWillChange: Self.ObjectWillChangePublisher { get } - 用於管理數據生命週期,處理副作用,與現有組件集成
- 將是您的真理之源
- 不需要是您的完整數據模型 - 如果您的模型複雜,則分為多個可觀察的對象
- 如果您的數據模型很簡單,請對所有視圖使用單個可觀察的對象
- 您的觀察值的標記屬性,您的視圖對
@Published var progress: Double - 如何創建可觀察的對象依賴性?
-
@ObservedObject-
@ObservedObject var config: Configuration - 您需要在視圖之外管理對象所有權
- 創建與可觀察視圖的任何值屬性的綁定,以將其傳遞到
$config.isFinished Toggle 。
-
@StateObject- Swiftui擁有可觀察的對象
- 創造/破壞與查看的生命週期有關
- 在身體運行之前實例化
- 使用它來實現一個
ImageLoader: ObservableObject帶有@published var image: Image屬性 - 每當
@StateObject更改時,視圖都會重新渲染,因此填充了圖像
EnvironmentObject- 在Swiftui中,您通常具有許多模塊化子視圖的層次結構
- 為了避免大量的樣板,通過觀察對象將其傳遞給
.environmentObject(...) - 從層次結構中的任何視圖中,對其進行更改都將在任何其他視圖中反映
- SwiftUI性能考慮
- 避免使用緩慢的查看更新
- 使查看初始化器便宜,例如無派遣
- 使身體成為純粹的功能
- 避免假設
- 新事件來源:
onChange , onOpenURL , onContinueUserActivity在主線程上運行
- 誰擁有數據?
- 共同祖先共享數據
- 利用
@StateObject - 考慮將全局數據放入
App中,並將其傳遞到視圖層次結構。更改它將重新渲染應用程序的所有場景(實例/窗口) - 新2020年:在應用程序重新啟動之間提供數據持久性的房地產包裝器,可以用作真理的來源
@SceneStorage- 由Swiftui管理的用於閱讀/寫作數據的人均屬性包裝器
- 視圖數據的輕量級存儲
- 用它來填充您的收集視圖
@AppStorage- 使用
UserDefaults ,在任何地方可用(應用/視圖) - 非常適合存儲設置
@AppStorage("amountOfGold") private var amountOfGold = 5000- 每當屬性更改時,都會自動讀取/寫入/到UserDefaults
Swiftui的新功能
https://developer.apple.com/wwdc20/10041
主持人:馬特·里克森(Matt Ricketson),泰勒·凱利(Taylor Kelly)
- 應用
- 使用Swiftui鍵化整個應用程序:
struct BookClubApp: App - 應用可以聲明數據依賴性
- 使用
WindowGroup獨立管理Windows平台。支持MacOS和iPados上的多個Windows。 - 使用
Settings免費獲取優先窗格•MacOS上可用 - 使用
DocumentGroup場景類型自動處理打開,保存和編輯文檔•MACOS,iOS,iPados - 使用
CommandMenu命令將其他菜單添加到菜單欄中,包括鍵盤快捷鍵 - 專門針對Swiftui應用的新的多平台模板
LaunchScreen info.plist鍵配置啟動屏幕•故事板的簡單替代方案
- 小部件
- iOS,iPados,MacOS專門使用Swiftui構建
- 由
struct YourWidget: Widget和var body: some WidgetConfiguration - 使用Swiftui為WatchOS構建自定義並發症
- 列表和收藏
- 列表現在接收大綱以快速訪問列表內容•減少對推/彈出導航模式的需求
- Lazy loading grid layouts (
Lazy[V|H]Stack ) to reduce memory footprint and preserve smooth scrolling for large amounts of data - View Builder for switch statements to show eg different image styles in a list of images
- Toolbars and Controls
-
.toolbar modifier for unified display of toolbars - Use
ToolbarItem(placement: .principal) to make an item prominent - Use
ToolbarItem(placement: .bottomBar) to place an item in the bottom bar - When using
Label("Title", systemImage: "sf.symbol.name") SwiftUI automatically display icon and/or text depending on where the label is displayed: toolbar, list, ... -
.keyboardShortcut modifier can now be used for additional controls like Button - New default focus support in tvOS
- New controls:
-
ProgressView("Downloading", value: progress) - horizontal bar -
ProgressView("Downloading", value: progress).progressViewStyle(CircularViewStyle()) - circular progress indicator -
ProgressView() - spinner -
Gauge to indicate the level of value • can contain value labels and min/max value labels
- New effects and styling
- New control center UI with beautiful transitions
-
.matchedGeometryEffect to provide smooth animations inside of a grid of UI elements -
.clipShape(ContainerRelativeShape()) to automatically apply a super views shape to the subview - custom fonts automatically scaled with dynamic type changes
- Custom accent color directly form the AssetCatalog on all platforms
- Many controls can now be tinted
- 系統集成
- New
Link control to display URLs in link style and open them with the default browser • also supports url schemes to open other apps -
@Environment(.openURL) private var openURL to programmatically open urls via openURL(url) in your views -
onDrag {} and onDrop {} to support drag & drop -
UniformTypeIdentifers framework for eg introspection of file types -
Sign in with Apple as first class component in SwiftUI • available on every platform - Other Frameworks: AuthenticationServices , AVKit , MapKit , SceneKit , SpriteKit
Build SwiftUI apps for tvOS
https://developer.apple.com/wwdc20/10042
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build an Action Classifier with Create ML
https://developer.apple.com/wwdc20/10043
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Advances in diffable data sources
https://developer.apple.com/wwdc20/10045
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create complications for Apple Watch
https://developer.apple.com/wwdc20/10046
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Enable encrypted DNS
https://developer.apple.com/wwdc20/10047
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build complications in SwiftUI
https://developer.apple.com/wwdc20/10048
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Keep your complications up to date
https://developer.apple.com/wwdc20/10049
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build with iOS pickers, menus and actions
https://developer.apple.com/wwdc20/10052
Presenters: Eric Dudiac, David Duncan
- UISlider and UIProgressView: More consistent across platforms now
- UIActivityIndicatorView: New simpler design, Use color API and modern styles, Updates "pull-to-refresh"
- UIPickerView: Updated styling
- UIPageControl
- New interactions (scrubbing, scrolling)
- Unlimited pages
- Optional custom indicator icons:
.preferredIndicatorImage(UIImage()) to set all or .setIndicatorImage(UIImage(), forPage: 0) for a specific image - Multiple styles:
.backgroundStyle = .prominent to highlight the background
- UIColorPickerViewController
- New view controller for picking colors
- Eyedropper, Favorites, Hex specification
- UIDatePicker
- New compact style to select date and time
- In-line style on iOS - great for iPad or if date picking is primary UI (matches modal presentation)
- Useful when you have space constraints
- Full modal calendar when selecting dates
- Keyboard for selecting times
- New macOS style (10.15.4)
- Compact, modal calendar presentation
- Supported in Catalyst apps
- 菜單
- Provided on
UIControl - Directly supported by UIButton and UIBarButtonItem by
button.menu = UIMenu(...) - Triggered via long-press by default
- Show the menu by a simple tap by setting
button.showsMenuAsPrimaryAction = true and don't provide a primary action - Back buttons implement menus to quickly jump back in navigation stack
- Take action when the menu action is recognized, register for
UIControl.Event.menuActionTriggered -
UIDeferredMenuElement to async provide menu items -
UIContextMenuInteraction to modify or replace provided menu updateVisibleMenu(_ block menu: (UIMenu) -> UIMenu)- Use
UIContextMenuInteraction.rich to display previews and .compact to only show a menu
- New
UIBarButtonItem initializers init(systemItem:primaryAction:menu:) , init(title:image:primaryAction:menu:) - New
UIBarButtonItem .fixedSpace() and .flexibleSpace -
UIButton can finally be initialized using an UIAction : init(type:primaryAction:) -> native block based API -
UISegmentedControls can now finally be initialized using UIActions -> native block based API
Optimize the interface of your Mac Catalyst app
https://developer.apple.com/wwdc20/10056
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Identify trends with the Power and Performance API
https://developer.apple.com/wwdc20/10057
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design high quality Siri media interactions
https://developer.apple.com/wwdc20/10060
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Expand your SiriKit Media Intents to more platforms
https://developer.apple.com/wwdc20/10061
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Background execution demystified
https://developer.apple.com/wwdc20/10063
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in SiriKit and Shortcuts
https://developer.apple.com/wwdc20/10068
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Evaluate and optimize voice interaction for your app
https://developer.apple.com/wwdc20/10071
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Empower your intents
https://developer.apple.com/wwdc20/10073
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Decipher and deal with common Siri errors
https://developer.apple.com/wwdc20/10074
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Diagnose performance issues with the Xcode Organizer
https://developer.apple.com/wwdc20/10076
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Eliminate animation hitches with XCTest
https://developer.apple.com/wwdc20/10077
Presenter: Tanuja Mohan
- Hitch: A frame appears on screen later than expected
- VSYNC: Time the screen swaps the frame onto the display
- Hitch time: Time in ms that a frame is late to display
- Hitch ratio: Hitch time in ms per second for a given duration
- Apple doesn't use frames per second (fps) since:
- 60 or 120 fps is not always the desired target
- Display may intentionally not be updated
- Target frame rate may intentionally be lower than possible
- Hitch ratio is always comparable across tests, following ratios are recommended:
- Good: < 5ms/s
- Warning: 5..10ms/s - users will start recognizing hitches
- Critical: >10ms/s
- Can be measured using
XCTestMetrics and unit tests or for production apps using MetricsKit and Xcode Organizer -
XCTOSSignpostMetric gives you the following when using an animation os_signpost interval:- 期間
- Total count of hitches
- Total duration of hitches
- Hitch time ratio
- Frame rate
- Frame count
- Specify an animation os_signpost interval by:
-
os_signpost(.animationBegin, log: logHandle, name: "performanceAnimationInterval") -
os_signpost(.end, log: logHandle, name: "performanceAnimationInterval")
- UIKit has pre-defined metrics:
-
XCTOSSignpostMetric.navigationTransitionMetric -
XCTOSSignpostMetric.customNavigationTransitionMetric -
XCTOSSignpostMetric.scrollDecelerationMetric -
XCTOSSignpostMetric.scrollDraggingMetric
- Application state can be reset to avoid tests influencing themselves:
XCTMeasureOptions().invocationOptions = [.manualStop] - Listen to a live testing session at 8:15
Why is my app getting killed?
https://developer.apple.com/wwdc20/10078
Presenter: Andy Aude
- Most common reasons why apps can be terminated in the background
- 碰撞
- Segmentation fault
- Illegal instruction
- Asserts and uncaught exceptions
- CPU resource limit
- High sustained CPU load in background
- Energy Exception Report
- Xcode Organizer
-
MXCPUExceptionDiagnostic
- Reports contain call stack points out hotspots in code
- Consider moving work into
BGProcessingTask
- 看門狗
- Long hang during key app transitions
-
application(_:didFinishLaunchingWithOptions:) -
applicationDidEnterBackground(_:) -
applicationWillEnterForeground(_:)
- These transitions have a time limit on the order of 20 seconds
- Terminations are disabled in Simulator and in the Debugger
- Eliminate deadlocks, infinite loops, synchronous work
- Report available via
MXCrashDiagnostic
- Memory limit exceeded
- App using too much memory
- Same limit for foreground and background
- Use Instruments and Memory Debugger
- Keep in mind older devices
- Memory pressure exit (jetsam)
- Not a bug with your app
- Most common termination
- System freeing up memory for active applications
- Reducing jetsame rate
- Aim for less than 50MB in background
- Upon background flush state to disk, clear out image views, drop caches
- Recovering from jetsame
- Save state upon entering background
- Adopt UIKit State Restoration
- User should not realize app was terminated
- Background task timeout
-
UIApplication.beginBackgroundTask(expirationHandler:) -
UIApplication.endBackgroundTask(_:) - Failure to end the task explicitly result in termination
- Counts exposed via
MXBackgroundExitData - Preventable
- Use the named variant of the UIKit API
beginBackgroundTask(withName:expirationHandler:) - Terminations do not occur in Debugger
- New console message in iOS 13.4 ( Background Task DatabaseTransaction was created over 30 seconds ago. In Applications running in the background, this creates a risk of termination. Remember to call
endBackgroundTask for your task in a timely manner to avoid this. )
- Expiration handler
- Implement an
expirationHandler - Call
endBackgroundTask(_:) inside the handler - Do not begin new work
- Do not rely on it exclusively
- Add telemetry at the start and end of each expiration handler
- Inspect
MXMetricPayload
- Check
backgroundTimeRemaining- Only start work if plenty of time remains
- Unsafe to begin tasks with < 5 seconds remaining
- Avoid leaking
UIBackgroundTaskIdentifier
- New MetricKit API (iOS 14)
-
MXBackgroundExitData shows how often these terminations happen providing counts of each termination type-
cumulativeBadAccessExitCount -
cumulativeIllegalInstructionExitCount -
cumulativeAbnormalExitCount -
cumulativeMemoryResourceLimitExitCount -
cumulativeMemoryPressureExitCount -
cumulativeSuspendedWithLockedFileExitCount -
cumulativeAppWatchdogExitCount -
cumulativeBackgroundTaskAssertionTimeoutExitCount -
cumulativeNormalExitCount
- Crash reporting via MetricKit
- Diagnostics on a per-device basis
- Ability to get crash info programmatically directly from the device
-
MXCrashDiagnostic- Stack trace
- 訊號
- Exception code
- Termination reason
- Check out What's New in MetricKit to get detailed information
- How to improve multi-tasking experience?
- Identify and fix terminations
- Reduce memory usage
- Implement state restoration
What's new in MetricKit
https://developer.apple.com/wwdc20/10081
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Integrate your app with Wind Down
https://developer.apple.com/wwdc20/10083
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Feature your actions in the Shortcuts app
https://developer.apple.com/wwdc20/10084
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for intelligence: Apps, evolved
https://developer.apple.com/wwdc20/10086
Presenter: Mark Mikin
- This is one of those "why" sessions. Why we should build something?
- Intelligent System Experience
- The main idea is to be proactive
- Intelligence is how the OS works with the apps that people use every day to make the "every day" easier for people
- Intelligence is design (it should be viewed as a design practice)
- Living design .那是什麼?
- The core job of the designer is to help people accomplish something
- One of the key ways a designer can leverage this is by using elements familiar to the user
- People use a signifier or a symbol
- For example, "Share" button. In the case of iOS, almost everyone can easily recognize the "default" share symbol because it consistently gets used across a lot of apps
- Intelligence is a platform convention, it's in a static glyph or icon, like the share button. It's live
- Intelligence manifests itself by adapting to how the system, the platform, conforms to how people use their devices
- Intelligence is expected (people expect their devices and apps to be smart)
- 可擴展性
- Intelligence is powered by an app through extensibility
- Apps have actually been evolving over time
- A lot of the technologies built by Apple that are foundational to the intelligence system (starting from App Extensions debuted at WWDC 2014 and ending with App Clips so far)
- It's built to help growing ecosystem of devices and apps
- Intelligence system is built from a foundation of respecting users privacy
- In the next sessions about system intelligence, Apple's team will try to cover it from a few different angles
Design for intelligence: Make friends with "The System"
https://developer.apple.com/wwdc20/10087
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for intelligence: Discover new opportunities
https://developer.apple.com/wwdc20/10088
Presenters: JP Lacerda
- 智力
- Goal to make your Apple products knowing/understanding you
- Achieve and Discover more, Less tedium, Fewer distraction
- System helps you through suggestions from Siri , Shortcuts , Suggestions , Widgets
- Siri / Shortcuts
- Helps you getting things done by a single tap or asking Siri
- Helps you setting up simple and complex operations ran, eg just by your voice
- View shortcuts through the new Siri suggestion Widget displayed just at the right time to you using the new smart stack and on-device intelligence
- Siri suggestions automatically appear at the right place and time, eg restaurant reservations are added automatically to the calendar
- Siri can remind you when it's time to leave right on your lock screen
- Get Siri suggestions in Maps to eg conveniently find your way to the Airport
- Privacy / Analytics
- Apple chose opt-in to enable analytics on your device to help improve their intelligence services
- 例子
- 82% of all notification-based check-ins come from suggestions (data from some Airline apps)
- Apps are visible on average 5x more per day via lock screen, sharing suggestion, search or other entry points
- Give your app superpowers
- Think about which entry points are suitable for your app
- Consider how you can measure the impact of intelligence on your app
- Understand intelligence from the users perspective
Discover Core Image debugging techniques
https://developer.apple.com/wwdc20/10089
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Decode ProRes with AVFoundation and VideoToolbox
https://developer.apple.com/wwdc20/10090
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Write tests to fail
https://developer.apple.com/wwdc20/10091
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build for the iPadOS pointer
https://developer.apple.com/wwdc20/10093
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Handle trackpad and mouse input
https://developer.apple.com/wwdc20/10094
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
The Push Notifications primer
https://developer.apple.com/wwdc20/10095
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore Packages and Projects with Xcode Playgrounds
https://developer.apple.com/wwdc20/10096
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Advances in UICollectionView
https://developer.apple.com/wwdc20/10097
Presenters: Steve Breen
- Diffable Data Source
- 回顧
UICollectionView was first released in iOS 6-
UICollectionView was built on the separation of concerns between the data, or the "what"; from the layout, the "where" content is being rendered. - For layout, an abstract class is
UICollectionViewLayout , and a concrete subclass is UICollectionViewFlowLayout . - For the presentation, there are
UICollectionViewCell and UICollectionReusableView . - In iOS 13, there are two new components for Data and Layout respectively with Diffable Data Source and Compositional Layout.
- Section snapshot [New in iOS 14]
- Allow data sources to be more composable into section-sized chunks of data.
- Allow modeling of hierarchical data, which is needed to support rendering outline-style UIs.
- Compositional Layout
- 回顧
- Compositional Layout was introduced in iOS 13
- Allows us to build rich, complex layouts by composing smaller, easy-to-reason bits of layout together.
- Describes what the layout to look like instead of how the layout ought to work.
- Section-specific layouts to help you build more sophisticated UIs
- Support for orthogonal scrolling sections.
- Lists [New in iOS 14]
-
UITableView -like sections right in to any UICollectionView . - Rich with features you've come to expect from
UITableView , like swipe actions and many common cell layouts. - Easily mix and match Lists with other kinds of layout on a per-section basis.
- Concrete
UICollectionViewListCell , header and footer support - New Sidebar appearance we see in many iPadOS system apps.
- Modern Cells
- Cell registrations
- Simple, reusable way to set up a cell from a view model.
- Eliminate the extra step of registering a cell class or nib to associate it with a reuse identifier.
- Use a generic registration type which incorporates a configuration closure for setting up a new cell from a view model.
- Cell content configurations.
- Standardized layouts for cells similar to what is seen in
UITableView standard cell types. - Can be used with any cell, or even a generic UIView.
- Background configurations.
- Similar to content configurations but apply to any cell's background with the ability to adjust properties such as color, border styles and more.
What's new in Universal Links
https://developer.apple.com/wwdc20/10098
Presenter: Christopher Linn
- Universal Links
- HTTPS URLs that represent your content both on the web and in your app
- Allow to open your app instead of browser
- Enable by adding an entitlement to your app and a JSON file to your web server - creates secure association between both
- Custom URL schemes not recommended anymore - switch as soon as possible
- Support for watchOS
- Same functionalities like on iOS, tvOS and macOS
- Apply entitlement to your WatchKit extension - not your WatchKit App
- Use
[WKExtensionDelegate.handle(_ userActivity: NSUserActivity) -> Void](https://developer.apple.com/documentation/watchkit/wkextensiondelegate/2798966-handle) to handle Universal Links - Use
[WKExtension.shared().openSystemURL(url)](https://developer.apple.com/documentation/watchkit/wkextension/1628224-opensystemurl) to open Universal Links in other apps - Different API on iOS (UIKit) and macOS (AppKit)
- Universal Links in SwiftUI
- Now it is possible to handle Universal Links equally on all platforms
- Handle Universal Links using
.onOpenURL { url in /* ... */ } - Open Universal Links in other apps using
@Environment (.openURL) var openURL; let url = /* ... */; openURL(url)
- Enhanced Pattern Matching
-
* matches zero or more characters greedily -
? matches any one character -
*? matches at least one character -
"components": [{ "/": "/sourdough/?*", "caseSensitive": false }] for case-insensitive pattern matching (macOS Catalina 10.15.5 and iOS 13.5) -
"components": [{ "/": "/中國哲學書電子化計劃/?*", "percentEncoded": false }] for Unicode pattern matching (macOS Big Sur and iOS 14) -
"defaults": { "percentEncoded": false, "caseSensitive": false } to specify defaults for all components (macOS Big Sur and iOS 14)- Apply
defaults to "details" (includes app IDs and components) or only to "components" to match all elements of the respective arrays
- Substitution Variables
- Named lists of substrings to match against
- Names can contain anything but
$ , ( , ) - Names are always case sensitive in patterns
- Values can contain
? and * but no other substitution variables - Values are case-sensitive by default
- Available today in macOS Catalina 10.15.6 and iOS 13.5
- Predefined Substitution Variables
-
$(alpha)* - match upper and lower case letters -
$(upper),$(lower)* - match either upper or lower case letters -
$(alnum)* - match upper and lower case letters including digits -
$(digit),$(xdigit)* - match either digits or hexadecimal digits -
$(region)** - match every ISO region code defined by Foundation: Locale.isoRegionCodes -
$(lang)** - match every ISO language code defined by Foundation: Locale.isoLanguageCodes - Use
"exclude": true to exclude specific patterns - Substitution variables can be used to form different combinations of patterns, eg show different menus for different countries
- 例子
{
"appLinks" : {
"substitutionVariables" : {
"food" : [ " burrito " , " sushi " ],
"Canadian food" : [ " burrito " , " poutine " , " tête-de-violon " ]
},
"details" : [{
"appIDs" : [ " ABCDEF.com..example.restaurant " ],
"components" : [
{ "/" : " $(lang)_CA/$(Canadian food)/ " , "percentEncoded" : false }
{ "/" : " $(lang)_CA/$(food)/ " , "exclude" : true }
{ "/" : " $(lang)_$(region)/$(food)/ " }
]
}]
}
}
- Universal Links Workflow
- After download of an app the system checks its entitlements to see if it needs any app-association files, and downloads them
- App association files can now be downloaded in parallel by connecting to an Apple CDN instead of opening one connection per downloaded app
- CDN is dedicated to associated domains
- CDN uses single HTTP/2 connection for all associated domains on a device
- CDN Reduces load on your server
- CDN routes devices to a known-good, known-fast connection
- Alternate Modes for internal domains not reachable from an Apple CDN
- Managed Mode when distributing within your organization (see What's New in Managing Apple Devices (WWDC20))
- System trusted root certificate
- MDN admin must opt-in
- Works using any profile
- Developer Mode when building your app
- Use any SSL certificate
- User must opt-in from
iOS Settings > Developer > Associated Domains Development or for macOS using the command swcutil developer-mode -e true - Only works using a development profile
- Server path for all modes:
https://example.com/.well-known/apple-app-site-association - Specify domains for different modes in the entitlements as
<string>applinks:testing.example.com?mode=developer</string> (or ?mode=managed or ?mode=developer+managed ) in an array under the key com.apple.developer.associated-domains
Explore the Action & Vision app
https://developer.apple.com/wwdc20/10099
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Keynote ★
https://developer.apple.com/wwdc20/101/
- App Library
- Automatically created at the end of your app pages on the Home Screen
- Makes it easier than ever to get to your apps
- Widgets on Home Screen
- Richer UI - more possibilities
- Different sizes to choose one that best fits your needs
- Droppable on the home screen
- Widget gallery to explore all widgets
- SmartStack as intelligent assistant which enables you to scroll through your widgets
- Picture in Picture on iPhone
- Swipe to the side, out of the screen, and audio keeps playing
- Video keeps playing when switching apps
- 西里
- Got smarter and has a new interface which doesn't block your UI anymore
- Can now send audio messages using the messages app - completely hands free
- Translate as new app of offline conversation translate
- Conversation mode when switching to landscape mode in the app
- 消息
- Pinning messages to the top of the screen
- Memoji gets hundreds of new options to customize your avatar, including masts, fist-pumps and more
- Group conversations got some ❤️ by adding inline replies and most-active member widget
- 地圖
- More countries like UK, Ireland and Canada
- It gets easier to find places you love and how you get there in an ecological way
- Maps offers Guides that help you discover great new places
- Brand new cycling option to reduce your carbon footprint
- EV-Routing option to optimize your route for electric cars - eg by selecting routes with charging station on your way
- CARPLAY
- New wallpaper option
- New categories for CarPlay apps: Parking, EV-Charging, and Quick-Food ordering
- Car Key API - first supported by BMW - enable open/close/start your car
- App Clips as small, fast parts of an app, designed for speed
- A way to discover what the App Store has to offer
- Launchable from the web, by NFC tags, QR codes or the brand new Apple designed tags
- Needs to be smaller than 10 MB
- Use Sign in With Apple to provide the most seamless app experience
- Use Apply Pay to allow quick payments
- Option to download the full app
- iPados
- Photos app gets an all new side bar - new way to navigate and organize your photos
- Incoming calls become unobtrusive using notification style UI (available for all apps: WhatsApp, Skype, ...) • available for iOS too
- New searching experience
- 蘋果鉛筆
- Scribble lets you hand-write in any text field. iOS converts your writing then to text
- Smart Selection lets you select single words / characters you've written using your pencil using iOS text recognition features
- DataDetectors are used to automatically detect eg phone numbers, email addresses
- airpods
- are now able to automatically switch to new incoming audio sources
- Spatial Audio for AirPods Pro (AirPods Motion API) to emulate movie theatre experience using AirPods gyroscope to sync the sound to your head position/orientation
- watchOS 7
- Configure your own watch faces styled by your current living style
- Watch faces can now be shared on Websites or via the usual sharing features of watchOS
- Workout app adds dance, cooldown, functional training and more workouts plus it is renamed to Fitness
- Sleep Tracking is a new app that helps you to get to bed at time using
Wind Down which dims all distractions (also available in iPhone) - Handwashing detection to make sure you wash as long as you're supposed to (20 seconds shown in demo)
- Privacy Improvements
- Location only share rough location
- 相機...
- Tracking Control require apps to ask before tracking
- App Privacy makes data tracked by developers visible to the users before they download the app
- 家
- Alliance among different manufacturers to make smart home devices even better
- Adaptive lighting to auto-adjust color temperature throughout the day
- Cameras get activity zones, richer notifications
- Face recognition extends to Home Pod
- Camera content can be displayed on TV via your Apple TV
- Apple TV
- 圖片中的圖片
- Better Airplay in full 4K
- Apple TV+ already on over 1 billion devices
- Foundation as newest production only available on Apple TV+
- macOS Big Sur
- use of a lot of translucency
- Design refresh for all system apps
- New side and compact, space efficient toolbars
- Control center now on the mac
- 通知中心
- Notification grouping
- iOS widgets also available on the mac
- Messages with new search, photo picker, messages effects, pin conversations, inline replies and more
- Maps with indoor-maps, favorites, ETA from friends and all of it implemented using Catalyst
- Safari with 50% faster page loading, Privacy Report via toolbar button, Web Extensions API, built-in translation
- 蘋果
- Processor-transition to Apple Silicon - Apple's own processor line - bye bye Intel
- Universal 2 is the new universal binary type that contains binaries compiled for both architectures
- Rosetta 2 lets existing app run on new architectures from day one by making them compatible at installation time
- Supports iPhone and iPad apps directly
Meet Watch Face Sharing
https://developer.apple.com/wwdc20/10100
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design great widgets
https://developer.apple.com/wwdc20/10103
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Adopt the new look of macOS
https://developer.apple.com/wwdc20/10104
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build for iPad
https://developer.apple.com/wwdc20/10105
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Scribble for iPad
https://developer.apple.com/wwdc20/10106
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in PencilKit
https://developer.apple.com/wwdc20/10107
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Support hardware keyboards in your app
https://developer.apple.com/wwdc20/10109
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Support local network privacy in your app
https://developer.apple.com/wwdc20/10110
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Boost performance and security with modern networking
https://developer.apple.com/wwdc20/10111
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build local push connectivity for restricted networks
https://developer.apple.com/wwdc20/10113
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
iPad and iPhone apps on Apple Silicon Macs
https://developer.apple.com/wwdc20/10114
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
AutoFill everywhere
https://developer.apple.com/wwdc20/10115
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
VoiceOver efficiency with custom rotors
https://developer.apple.com/wwdc20/10116
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Accessibility design for Mac Catalyst
https://developer.apple.com/wwdc20/10117
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create app clips for other businesses
https://developer.apple.com/wwdc20/10118
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Introduction to SwiftUI
https://developer.apple.com/wwdc20/10119
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Streamline your app clip
https://developer.apple.com/wwdc20/10120
Presenters: Yongjun Zhang, Luming Yin
- 最佳實踐
- Focus on essential tasks
- Limit the features. Reserve complex features for your app
- Require all assets for initial experience
- Do not include splash screens
- Avoid requiring people to sign up before finishing their task
- Only ask for location and notification permissions if needed (more on this below)
- Make sure your App Clip has the same name and icon as your app
- Put shared assets in a shared asset catalog
- 驗證
- Support Sign in with Apple
- Use
ASWebAuthenticationSession for other federated login - Offer username and password login for existing users
- Offer "Sign In With Apple" upgrade in the app
- For privacy reasons, and because App Clips are ephemeral, some contents are not available to App Clips, such as HealthKit info
- App Clips can request permission to use Bluetooth, the camera, and microphone
- Streamlining Transactions
- 2 new types of ephemeral permissions: Location and Notification
- Allows App Clips to check if the user is within a region, without prompting for location permission
- Add
NSAppClipRequestLocationConfirmation with value true in your Info.plist to enable this - Supports checking a region with a radius of up to 500 meters
- Allows App Clips to send notifications for up to 8 hours after each launch, without prompting for notification permission .
- Add
NSAppClipRequestEphemeralUserNotification with value true in your Info.plist to enable this - Check the authorization status in the
NotificationSettings , under the new .ephemeral status
- Users can explicitly disable these permissions via App Clip settings panel
- App Clips can prompt the user for full Location and Notifications access, although discouraged
- Strongly suggest using ApplePay
- Strongly suggest using "Sign In With Apple"
- Use
AuthenticationServices API to sign your users in without showing a login screen (assuming they have already previously signed up in your website for instance)
- Transition users to your app
- iOS suggests downloading your app from App Clip experiences, banners and App Clip settings
- You can embed
StoreKit SKOverlay in a view- Suggestion: display this overlay only after the user finishes their task, eg after payment
- Transfer data on device with a secure App Group
- Only accessible between your App Clip and your app
- Once user downloads the app, the App Group will be transferred to the app after the App Clip is deleted
- Migrate your "Sign In With Apple" session from your App Clip by persisting the user ID in the secure App Group. Use
ASAuthorizationAppleIDProvider to verify the user's session without prompting UI
Discover AppleSeed for IT and Managed Software Updates
https://developer.apple.com/wwdc20/10138
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Leverage enterprise identity and authentication
https://developer.apple.com/wwdc20/10139
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build location-aware enterprise apps
https://developer.apple.com/wwdc20/10140
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build scalable enterprise app suites
https://developer.apple.com/wwdc20/10142
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Mac Catalyst
https://developer.apple.com/wwdc20/10143
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for Game Center
https://developer.apple.com/wwdc20/10145
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Configure and link your app clips
https://developer.apple.com/wwdc20/10146/
Presenters: Ada Chan, Luming Yin
- 簡介
- App Clips provide entry points to your users to experience your app with minimal friction.
- Use deep-linked navigation to present the App Clip
- User Quest
- User is in a smoothie shop. They see an NFC tag and tap it using the phone.
- An app clip shows up on the phone's lockscreen with summarized detail about that smoothie.
- User taps "open" and a single screen of your app shows up.
- User can then proceed to the payment via Apple Pay.
- 啟用設定
- Tapping NFC tags or scanning QR codes - they're just deep links after all (a URL)
- Maps and Siri Nearby Suggestions (for registered businesses)
- Smart app banner in your website (shown in Safari and Messages)
- Apple App Clip codes will be introduced later this year (it's a prettified QR code)
- If the user already has the your app installed, following an App Clip link will open the full app instead.
- 設定
- Configure web server and App Clip for link handling
- Web Server: Update the apple-app-site-association file
- App Clip: Add associated domains entitlement and handle NSUserActivity
- Configure App Clip default and advanced experiences on App Store Connect
- Layout requirements:
- Title: 18 chars limit
- Subtitle: 43 chars limit
- 圖像:
- Size: 3000 x 2000px
- Aspect Ratio: 3:2
- Format: png/jpg
- Transparency: No
- 最佳實踐
- URL mapping is based on most specific prefix match against registered App Clip experience URLs
- Your App Clip must be able to launch using an exact registered URL.例如:
- App registers https://bikesrental.com/rent instead of https://website.com/rent?bikeID=2
- When receiving https://website.com/rent?bikeID=2, it should be able to deliver the https://website.com/rent App Clip
- App is responsible for parsing the remaining arguments and presenting the specific bike with ID 2
- You can also register a more specific URL if you want to provide a different and more specific App Clip experience for it
- Configure the Smart App Banner to open App Clip (add this if the content of your web page can be delivered as a better and more streamlined app experience)
- Add/update your website's HTML to add the Smart App Banner meta tag
- 測試
- Specify an App Clip URL under the
_XCAppClipURL environment variable to launch App Clip from Xcode - TestFlight - new App Clips section in App Store Connect
Distribute binary frameworks as Swift packages
https://developer.apple.com/wwdc20/10147
Presenters: Boris Buegling
- Xcode 11
- Introduction of Swift Packages to distribute libraries as source code
- Introduction of XCFrameworks to distribute closed-source binary frameworks and libraries
- Xcode 12 adds support for binary dependencies
- Binary Dependencies (XCFrameworks)
- Used to distribute closed-source frameworks, static and dynamic libraries
- Contain a single module
- Easily addable via the
Xcode > File > Swift Packages > Add Package Dependency - Has sub directories corresponding to platform and target environment, each containing a framework
- Declare dependency in your Package.swift using
.package(url: "https://github.com/owner/package", from: "1.0.0")
- Distribute Binary Frameworks as a Swift Package
- New target type
.binaryTarget(name: "Emoji", url: https://example.com/Emoji/Emoji-1.0.0.xcframework.zip, checksum: "6d98....") - Binary targets can be offered to clients just like regular targets
- Binary Targets
- Use XCFrameworks
- Only supported on Apple platforms
- HTTPS or path based - paths can point to files inside your package
- Name corresponds to the module name
- Use semantic versioning
- Create your own Binary Dependency
- Create
File > New Swift Package - Replace template-added targets and add a binary target
- Compute the checksum using
swift package compute-checksum Emoji-1.0.0.xcframework.zip - Set
Build Libraries for Distribution build setting - Archive each variant
-
xcodebuild -create-xcframework - See 2019 session "Binary frameworks in Swift" or read the session notes which is way quicker
- Tradeoffs of Binary Dependencies
- Harder to debug since source code is missing
- You won't be able to compile for your specific platform if not included by the author
Inspect, modify, and construct PencilKit drawings
https://developer.apple.com/wwdc20/10148
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Structure your app for SwiftUI previews
https://developer.apple.com/wwdc20/10149
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in CareKit
https://developer.apple.com/wwdc20/10151
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Use model deployment and security with Core ML
https://developer.apple.com/wwdc20/10152
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Get models on device using Core ML Converters
https://developer.apple.com/wwdc20/10153
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Control training in Create ML with Swift
https://developer.apple.com/wwdc20/10156
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Deliver a better HLS audio experience
https://developer.apple.com/wwdc20/10158
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build an Endpoint Security app
https://developer.apple.com/wwdc20/10159
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Formatters: Make data human-friendly
https://developer.apple.com/wwdc20/10160
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for location privacy
https://developer.apple.com/wwdc20/10162
Presenter: Rachel Needle
- Today people share precise location data
- In iOS 14, Core Location allowing users to control and share their approximate location
- All kinds of apps will be impacted by this change (even Apple's apps)
- How to adapt the app to work without precise location?
- Prioritize user control
- Give everyone control over their location data they share and respect their preferences
- Don't require precise location
- Replace precise data with approximate where possible
- Identify where else you use precise location and remove non-essential uses of precise location
- Build trust through transparency
- Communicate with people about what data your app uses and how that data is used
- Make status easy to access
- Allow users to change their decision
- Offer proportional value
- Only ask for precise location when you really need it
- Request precise location in response to user action
- Position the request close to the value it provides
- Consider checking out these two sessions to get detailed information
- Build trust through better privacy
- What's new in location
Advancements in the Objective-C runtime
https://developer.apple.com/wwdc20/10163
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
XCTSkip your tests
https://developer.apple.com/wwdc20/10164
Presenters: Wil Addario-Turner
- Tests can pass or fail, or with
XCTSkip , be marked with an explicit "skip" result. - In Xcode 11.4,
XCTSkip , XCTSkipIf and XCTSkipUnless were introduced to allow skipping tests at runtime. - Call
throw XCTSkip("message") and the test will be skipped. -
XCTSkipIf skips when the expression is true. XCTSkipUnless skips when the expression is false. - Check the results from the test navigator and the test report with the line where the skip occurred, along with a reason explaining why.
Embrace Swift type inference
https://developer.apple.com/wwdc20/10165
Presenter: Holly Borla
- Leveraging type inference
- A type can be inferred by the compiler given the context surrounding a variable or function
- SwiftUI code relies on type inference for reusable views
- A demo is presented showing a SwiftUI component being built using generics
- How type inference works in compiler
- Think of type inference as a puzzle
- It resolves the puzzle by filling in the missing pieces using clues from the source code
- Solving one puzzle can give the compiler more clues on how to solve other puzzles
- Type inference errors
- If a puzzle can't be solved, there's an error in the source code
- During type inference, the compiler will record information about errors in source code
- Compiler uses heuristics to attempt to fix errors in order to continue type inference
- Once type inference is done, the compiler will provide actionable error messages based on collected information (some errors might have auto-fixes)
- Swift 5.3 and Xcode 12 improved error handling a lot, showing more meaningful and reliable error messages
- Using Swift and Xcode to fix compile errors
- The compiler will leave breadcrumbs about what the compiler was doing when it found an error
- This can help you connect the dots between the error you're seeing on the editor and other files in your project
- Hold ⌥ + ⇧ on an error breadcrumb and drag it to the right of the source editor, to open the source editor and the breadcrumbs details side by side
Safely manage pointers in Swift
https://developer.apple.com/wwdc20/10167
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore logging in Swift
https://developer.apple.com/wwdc20/10168
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Swift packages: Resources and localization
https://developer.apple.com/wwdc20/10169
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Swift
https://developer.apple.com/wwdc20/10170
Presenters: Ted Kremenek, Kyle Macomber
- Swift Releases
- Xcode 11.4 - Swift 5.2
- Xcode 12 (beta) - Swift 5.3
- Runtime Performance
- Code Size
- Code size is the part of the app that represents the machine code representation of the app's logic
- Swift 5.3 is below 1.5 times the code size of Objective-C version (based on app that ships with iOS)
- Size difference is inevitable because of Swift safety features
- SwiftUI app binary code size can be reduced by 40% (based on MoviesSwiftUI app)
- Memory Layout
- Comparing models with three properties in Obj-C (
NSUUID , NSString and float ) and Swift ( UUID , String , Float ) - In Obj-C, object variables are just pointers which then hold a pointer to their properties
- Swift's use of value types avoid the need to access values via pointers (UUID and Strings)
- Significant memory benefit because it is allocated directly within array storage (contiguous block of memory)
- Heap memory use comparison: 20kB in Swift 5.1 vs 35kB in Obj-C (400 models in array)
- Swift's Standard Library now is below Foundation in the stack which means it can be used to develop low-level frameworks for Objective-C frameworks where previously C has to be used!
- 診斷
- New diagnostics in the Swift compiler result in more precise and actionable errors
- Additional notes in error messages (SwiftUI as an example)
- More info on swift.org
- Code completion
- Much better code completion thanks to improvements in SourceKit
- Code completion for dictionary literals, ternary expressions and more dynamic features like key paths
- Code completion in Xcode 12.0 is 15x faster compared to Xcode 11.5
- Code Indentation
- Improved indentation formatting in chained methods calls, tuples, multiline
if and guards - Improved indentation in SwiftUI as well
- 偵錯
- Debugger now displays the reason for Swift runtime failure traps
- Cross-Platform Support
- Multiple platform support
- Apple Platforms
- Ubuntu 16.04, 18.04, 20.04
- CentOS 8
- Amazon Linux 2
- Windows (coming soon)
- Swift on AWS Lambda
- Runtime is open-source and is available on GitHub
- 語言
- Swift Evolution website
- Multiple trailing closure syntax SE-0279
- It's important to set the correct base name of the method that will indicate the first trailing closure that its label will be dropped
- Key Path Expressions as Functions SE-0249
-
@main : Type-Based Program Entry Points SE-0281- The standardized way to delegate a program's entry point
- Increased availability of implicit self in @escaping closures when reference cycles are unlikely to occur SE-0269
- Now it's possible to add
self to the capture list - In Swift 5.3, if self is a structure it can be omitted entirely from the closure
- Multi-Pattern Catch Clauses SE-0276
- Enum Enhancements
-
Comparable conformance is now synthesized automatically SE-0266 - Enum cases as protocol witnesses SE-0280
- Embedded DSL Enhancements
- Builder closures
- Swift 5.3 introduces pattern matching statements like
if let and switch - Builder inference (
@SceneBuilder is not longer needed)
- 庫
Float16 SE-0277- Half-width floating point type
- Performance gains but low precision and small range
- Apple Archive
- Modular archive format
- Fast compression
- Idiomatic Swift API
- Swift System
- Idiomatic Swift interface to system calls
- Low-level currency types
- Wraps Darwin APIs
- OSLog
- Unified logging API
- Faster and more expressive (formatting options)
- 軟件包
- Swift Numerics
- Support for complex numbers and basic math functions
- Swift ArgumentParser
- Swift Standard Library Preview
- Includes features that have not been included in the release yet
What's new in watchOS design
https://developer.apple.com/wwdc20/10171
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design great app clips
https://developer.apple.com/wwdc20/10172
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Get the most out of Sign in with Apple
https://developer.apple.com/wwdc20/10173
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore app clips
https://developer.apple.com/wwdc20/10174
Presenters: James Savage, Luming Yin
- What is an App Clip?
- App Clip Experience URL is required to run App Clips which are parts of your app
- On-demand app experiences
- App Clip Experiences
- App Clip URLs are similar to Universal Links
- Registered using App Store Connect
- Surfaced through user actions via NFC / QR codes / links in Safari or other apps / Apple App Clip codes combine the ease of NFC and visual codes so they can be tapped or scanned
- New App Clip Target in Xcode
- Contains all assets
- Needs to be submitted along with the app for review
- It gets downloaded separately if the app is not installed on user's device
- Should be as small as possible for quick downloads (less than 10MB but with enough assets to load UI quickly)
- Focused user flows - one at a time
- 演示
- Ordering smoothies
- New App Clip target embedded in the application
- Name and bundle ID for App Clip added
- It can build and run with boilerplate code right away
- Add code and resources
-
NutritionFacts dependency added - Create new Assets Catalog as shared assets
- Drag App Icon, Colors and other image assets required for app clip into the shared assets catalog
- Add the required model and view files to App Clip target
- Let go of unwanted Swift files like navigation
- Conditionally compile out the references to files not added to App Clip
- Build Settings > Swift Compiler custom flags > Active Compilation Conditions > Add APPCLIP condition for required schemes.
- Use #if !APPCLIP to compile out unwanted references in Swift code
- Write code for App Clip
- Add required models and views to the new AppClip
- Include existing views in the App Clip's content view
- Technology Overview
- App Clips are built using same UI components as an app
- When launched, it receives
NSUserActivity- Use the URL to identify the type of experience to be handled
- Unlike extensions, App Clip can make use of all iOS SDK APIs
- Note: Access to sensitive data is limited
- Always check if data is available
- New location confirmation API helps get the location quickly without requesting full access
- New API for migrating data from App Clip to main app using shared data container once installed
- App Clip and its local storage will be deleted after period of inactivity
- Can not be launched via Universal Links or custom URL schemes
- Can not include bundle extensions like content blockers
- Device states and transitions
- User scans QR code
- iOS locates, downloads and runs the App Clip
- If the App Clip is not revisited for a while, the App Clip and its data gets deleted
- Treat App Clip data as cache; which can be deleted
- If the App Clip is visited frequently, its lifespan will be extended and data may never be cleared
- When user downloads your app, iOS will automatically migrate the data container and the permissions that were already granted by the user
- iOS still deletes the App Clip and its container after copying the data container to the app
- Other technologies
- 蘋果工資
- 通知
- 斯威夫特
SKOverlay / AppStoreOverlayModifier (refer to What's new with in-app purchase session)-
ASAuthorizationController for sign in or sign up
The details of UI typography
https://developer.apple.com/wwdc20/10175
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Master Picture in Picture on tvOS
https://developer.apple.com/wwdc20/10176
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in HealthKit
https://developer.apple.com/wwdc20/10182
Presenter: Netra Kenkarey
- 症狀
- Developers can now track symptoms in HealthKit, read and write symptom samples
- HealthKit attempted to cover and track a wide range of symptoms (shortness of breath, sleep changes, appetite changes, fever, headache, etc.)
- There are 13 symptom data types in HealthKit
- Electrocardiogram (ECG)
- ECG samples will be available for reading in the latest version of iOS and watchOS
- An ECG sample can be read as an
HKElectrocardiogram (it represents a waveform as a series of voltage values) - ECG sample has important properties that describe the measurements
- classification (
HKElectrocardiogram.Classification )- Apple Watch will give the result of the recording in the form of a classification
- The classification is divided into 2 types
- Sinus Rhythm (heart is beating in a uniform pattern)
- Atrial fibrillation (form of irregular rhythm, user should probably go see their doctor)
- If Apple Watch is unable to determine the ECG result, either due to a low or a high heart rate or due to any other reason, the result is considered inconclusive
- symptomStatus (
HKElectrocardiogram.SymptomsStatus )- It tells if the user associated a symptom with this ECG (eg heartburn, tightness in the chest)
- The symptom experienced can be recorded along with the ECG
- averageHeartRage (
HKQuantity? ) - samplingFrequence (
HKQuantity? ) - numberOfVoltageMeasurements (
Int )- It refers to the individual voltage measurements that make up an ECG sample
-
HKElectrocardiogramQuery- To retrieve the individual measurements run the
HKElectrocardiogramQuery - Fetch the ECG samples with any of the HealthKit queries and then initialize the
HKElectrocardiogramQuery with the fetched sample - When this query is executed on the HealthStore, you get the individual voltage measurements back in the ECG and the data handler
- 機動性
- New set of mobility types (available for reading and writing on the latest iOS and watchOS)
- Walking speed and step length
- Walking assymetry and double support percentage
- Stair ascent and descent speed
- Six-minute walk test distance
Synchronize health data with HealthKit
https://developer.apple.com/wwdc20/10184
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Visually edit SwiftUI views
https://developer.apple.com/wwdc20/10185
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Discover WKWebView enhancements
https://developer.apple.com/wwdc20/10188
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Secure your app: threat modeling and anti-patterns
https://developer.apple.com/wwdc20/10189
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create quick interactions with Shortcuts on watchOS
https://developer.apple.com/wwdc20/10190
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Add configuration and intelligence to your widgets
https://developer.apple.com/wwdc20/10194
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Broaden your reach with Siri Event Suggestions
https://developer.apple.com/wwdc20/10197
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Platform State of the Union ★
https://developer.apple.com/wwdc20/102/
- Some new features: AirPods Motion API , SwiftPM resources , New Catalyst Controls , ARKit 4 , Widgets in SwiftUI , Depth API , TestFlight 100 Testers , SwiftUI Lifecycle , Catalyst Native Screen Resolution , Complications in SwiftUI , Xcode StoreKit Testing , HomePod Music Services , App Clips , New SwiftUI Controls , Xcode Tabs , ...
- Users can make your app the default app used for email and set a default web browser
- Developers can bring existing web-browser extensions to Safari using a new command line tool
- FindMy can now leverage all iPhones out there to locate your devices, even if they are not connected to the internet (applicable to all kinds of objects)
- Mac transition to Apple Silicon - Apple's own processor line - brings more security, better performance, longer battery life and amazing graphics
- 優勢
- Cached cloud content can be kept up to date for days, even if your mac goes to sleep
- Higher quality, hardware-supported 4:4:4 encoder for eg better image quality when connecting your Mac via SideCar
- Best-In-Class platform security
- Apple provides a Developer Transition Kit
- Mac mini enclosure + A12Z SoC
- 16GB memory, 512GB SSD
- macOS Big Sur Developer Beta + Xcode
- First Macs will appear by end of the year
- Universal 2 create universal apps that run on both Apple Silicon and older architectures
- Porting to Apple Silicon takes only a few days, even for grown projects. As a result, all Apple system apps are already converted in macOS Big Sur
- Rosetta 2 lets existing app run on new architectures from day one by making them compatible at installation time
- Supports iPhone and iPad apps directly
- iOS/iPad Apps natively on Mac
- Apps will run natively on the Mac
- Apps will automatically support features like resizing, Dark Mode, scrolling, multi-window, native share sheets, ...
- Apple plans to make iOS/iPadOS apps available on the App Store for macs running with Apple Silicon
- macOS Big Sur - macOS 11
- Rounded dock ?
- Control Center for mac
- New translucent look for notification center
- Refined layout for menus of the menu bar
- New sheet presentation - parent window is dimmed
- Completely re-designed toolbars with extending search fields and images provided by SF-Symbols
- App-specific accent color
- macOS Catalyst
- macOS-specific implementation of iOS API's
- Native resolution support
- Messages re-written in Catalyst
- SwiftPlaygrounds will support multiple windows
- iPados
- New sidebars can now expand from two-column layout to three-column layout - even available in portrait mode
- Recommended to use side bars instead of tab bars
- New inline emoji picker - also for custom apps
- New color picker UI - easy to adopt
- New Depth APIs give you access to precise distance info captured by the LiDAR scanner on iPad
- Dramatic improvement of people inclusion and motion detection - objects can be placed in front or behind real objects in the world
- 蘋果鉛筆
- New handwriting improvements will work in your apps without any additional work
- Hand-writing for any UITextField
- Automatic support for Scribble which converts any hand-written text to typed text
- Stroke API gives access to the strokes as the user draws
- Smart Selection lets you select single words / characters you've written using your pencil and iOS text recognition features
- iOS 14
- 小部件
- New widgets take UX to a whole new level
- Users can move them to the home screen
- Widgets are packed as SwiftUI archives which are optimized for performance
- Are rendered by the system at the right time, when the user needs them
- Can be smartly stacked to consume less space and let the user flip through them
- Stack automatically moves the right widget to the top at just the right time
- Configurable in the Widget Gallery
- App Clips
- Small part of the app which is light/fast and easy to discover
- Can use Apple Pay and Sign in With Apple to provide a seamless UX
- Easily discoverable in a variety of ways, like other apps or places in the real world via new Apple-designed (QR-like) codes which are basically NFC tags
- Introduce users to what your app offers
- 雜項。新功能
- Cycling directions, Guides and EV routing in Maps
- Translate app
- Messages inline replies
- 汽車鑰匙
- App Library
- On device dictation
- watchOS 7
- Xcode is now able to preview watchOS complications
- SwiftUI complications
- Watch-face sharing via any sharing capabilities, eg Messages, social media, etc
- Xcode 12
- Cleaner, more expressive UI
- Navigators realized using the new Side Bar
- Any kind of content is now openable in document tab
- Navigate through nested calls in compiler failure messages
- StoreKit test environment lets you unit test In-App Purchase and Subscriptions
- New StoreKit transaction manager shows details during debugging
- Faster code completion with simplified presentation
- 斯威夫特
- All SwiftUI apps will continue to compile without additional changes (Apple added no breaking changes - just extensions)
- Lazy statement makes large collections of views way less memory hungry and makes scrolling snappy again
- Now contains app-structure APIs for all Apple platforms, eg
@main , @SceneBuilder , Settings , ...
Design for intelligence: Meet people where they are
https://developer.apple.com/wwdc20/10200
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create great enterprise apps: A chat with Box's Aaron Levie
https://developer.apple.com/wwdc20/10204
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design with iOS pickers, menus and actions
https://developer.apple.com/wwdc20/10205
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for iPad
https://developer.apple.com/wwdc20/10206
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
SF Symbols 2
https://developer.apple.com/wwdc20/10207
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Core NFC
https://developer.apple.com/wwdc20/10209
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Modernize PCI and SCSI drivers with DriverKit
https://developer.apple.com/wwdc20/10210
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Port your Mac app to Apple Silicon
https://developer.apple.com/wwdc20/10214
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in ResearchKit
https://developer.apple.com/wwdc20/10216
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore numerical computing in Swift
https://developer.apple.com/wwdc20/10217
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build localization-friendly layouts using Xcode
https://developer.apple.com/wwdc20/10219
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Handle interruptions and alerts in UI tests
https://developer.apple.com/wwdc20/10220
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Get your test results faster
https://developer.apple.com/wwdc20/10221
Presenters: Sean Olszewski
- The Testing Feedback Loop
- Write tests > run tests > Interpret result >if sufficient confidence [ > Next task] else go back to write tests
- Short feedback loops is important because that means you get results from your tests faster, you can ship features to your users faster.
- Real world example: Result bundle from that CI job, which never finished. Due to dead lock, poorly chosen timeout.
- Execution Time Allowance [NEW in XCode 12]
- When enabled, Xcode enforces a limit on the amount of time each individual test can take. When a test exceeds this limit, Xcode will first capture spin dump, then kill the test that hung, restart the test runner, so that the rest of the suite can execute.
- A spin dump shows you which functions each thread is spending the most time in. It's also possible to manually capture spin dump from Terminal using the spin dump command or from within Activity Monitor.
- By default, each test gets 10 minutes. If you need to a specific test or test class, you can use the
executionTimeAllowance API to special case a particular test or subclass. For values under 60 seconds, they'll be rounded up to 60 seconds, the nearest whole minute. - Prevent a test requests unlimited time by enforcing a maximum allowance.
- You can customize the default time allowance and a maximum allowance either via a setting in the Test Plan or through an Xcodebuild option.
- Use
XCTest 's performance APIs to automate testing for regressions in the performance. Use Instruments to identify what parts of your code are slow,
- Parallel Distributed Testing
- Xcode build will distribute tests to each run destination by class. Each device runs a single test class at a time.
- If you're testing logic that is device or OS specific, this can lead to unexpected failures or skipped tests.
Create custom apps for employees
https://developer.apple.com/wwdc20/10222
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Deploy Apple devices using zero-touch
https://developer.apple.com/wwdc20/10223
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Audio Workgroups
https://developer.apple.com/wwdc20/10224
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Improve stream authoring with HLS Tools
https://developer.apple.com/wwdc20/10225
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Record stereo audio with AVAudioSession
https://developer.apple.com/wwdc20/10226
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Low-Latency HLS
https://developer.apple.com/wwdc20/10228
Presenter: Roger Pantos
- Comes out of beta this year
- Available in iOS 14, tvOS 14, watchOS 7 and this year's macOS
- Includes support for bit-rate switching, FairPlay Streaming, fMP4 CMAF, ad insertion, captioning
- Native app support, no entitlement necessary
- draft-pantos-hls-rfc8216bis07 and later now includes LL-HLS
- Includes Low-Latency Server Configuration Profile
- Includes CDN tune-in algorithm
- Updated informative articles on developer.apple.com
- Protocol Extension for Low-Latency HLS
- HLS Authoring Specification for Apple Devices
- Significant changes and improvements to the protocol
- Reducing segment delay
- Approach described last year using HTTP/2 Push to send segment with Playlist is not compatible with some delivery models
- Replaced Push with Blocking Preload Hints
- Client requests next part in advance
- Server will hold on to the request until it can send it
- Also triggers global CDN cache fill
- Discover HLS Blocking Preload Hints session for more information
- 其他改進
- Eliminated HLS report
- All Rendition Reports are provided unconditionally
- Defined EXT-X-DATERANGE handling for Playlist Delta Updates
- Optimize Live Streams with HLS Playlist Delta Updates session for more detailed information
- Added signaling of gaps in Parts and Rendition Reports
- New attributes: GAP=YES in EXT-X-PART and EXTT-X-RENDITION-REPORT
- This allowing clients to deal better with encoded outages in Low-Latency streams
- Low-Latency HLS Tools changes
- Reference implementation now produces fMP4/CMAF
- Added self-contained LL-HLS origin written in Go
- Incorporated Low-Latency HLS tools into the regular HLS tools package
- Find out more in Improve Stream Authoring with HLS Tools session
- Summary of important changes
- Replaced HTTP/2 Push with Preloading Hinting
- Simplified Delivery Directives
- Generate CMAF in reference tools
- Everything is included in the current HLS spec
Discover HLS Blocking Preload Hints
https://developer.apple.com/wwdc20/10229
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Optimize live streams with HLS Playlist Delta Updates
https://developer.apple.com/wwdc20/10230
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Reduce latency with HLS Blocking Playlist Reload
https://developer.apple.com/wwdc20/10231
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Adapt ad insertion to Low-Latency HLS
https://developer.apple.com/wwdc20/10232
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
The artist's AR toolkit
https://developer.apple.com/wwdc20/10601
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Harness Apple GPUs with Metal
https://developer.apple.com/wwdc20/10602
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Optimize Metal apps and games with GPU counters
https://developer.apple.com/wwdc20/10603
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Shop online with AR Quick Look
https://developer.apple.com/wwdc20/10604
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Gain insights into your Metal app with Xcode 12
https://developer.apple.com/wwdc20/10605
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore ARKit 4
https://developer.apple.com/wwdc20/10611
Presenters: Quinton Petty, Praveen Gowda
- Location Anchors
- Geo-referenced AR Content
- Uses "visual localization" from Maps
- No processing in the cloud
- No images sent back to Apple
- Pinned to a geo-location
- 3 main parts
-
ARGeoTrackingConfiguration -
ARGeoAnchor -
ARGeotrackingStatus
- Device support A12 Bionic or later + GPS support
- Requires availability checks for both device and location
-
ARGeotrackingStatus-
State -
StateReason -
accuracy : low, medium, high
- Methods for converting between local and latitude / longitude positions via
getGeoLocation(forPoint:) - Recommended to point towards buildings / static objects
- May struggle in wide open spaces (eg a field)
- Locations currently available: San Francisco Bay Area, Los Angeles, New York, Chicago and Miami
- Sample: Tracking Geographic Locations in AR
- Scene Geometry
- Topological map of environment
- Semantic classification
- Allowing for:
- Occlusion
- 物理
- Virtual lighting
- Based upon the Depth API
- Depth API
- Provides a dense depth image
- Use
sceneDepth under frame semantics - Runs at 60Hz, on every ARFrame
-
depthMap and confidenceMap provided - Depth map provided as
CVPixelBuffer -
ARConfidenceLevel : high, medium or low - Available on LiDAR devices
- Object Placement
- Improvements in Raycasting
- Quicker placement with LiDAR sensor
- Allows for placing on a white wall
- Raycasting is recommend over hit-testing
- 2 types of query:
- Face Tracking
- Support added for non-TrueDepth iPhones
- Requires A12 processor or later
- iPhone SE(2020)
What's new in RealityKit
https://developer.apple.com/wwdc20/10612
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in USD
https://developer.apple.com/wwdc20/10613
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Advancements in Game Controllers
https://developer.apple.com/wwdc20/10614
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build GPU binaries with Metal
https://developer.apple.com/wwdc20/10615
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Debug GPU-side errors in Metal
https://developer.apple.com/wwdc20/10616
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Bring keyboard and mouse gaming to iPad
https://developer.apple.com/wwdc20/10617
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Tap into Game Center: Dashboard, Access Point, and Profile
https://developer.apple.com/wwdc20/10618
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Tap into Game Center: Leaderboards, Achievements, and Multiplayer
https://developer.apple.com/wwdc20/10619
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Support performance-intensive apps and games
https://developer.apple.com/wwdc20/10621
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Bring your Metal app to Apple Silicon Macs
https://developer.apple.com/wwdc20/10631
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Optimize Metal Performance for Apple Silicon Macs
https://developer.apple.com/wwdc20/10632
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Capture and stream apps on the Mac with ReplayKit
https://developer.apple.com/wwdc20/10633
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Discover search suggestions for Apple TV
https://developer.apple.com/wwdc20/10634
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Accelerate your app with CarPlay
https://developer.apple.com/wwdc20/10635
Presenters: Jonathan Hersh, Allen Langmaier
- New CarPlay App Possibilites
- 電動汽車充電
- 停車處
- Quick food ordering
- Audio Apps
- Playable content template will be deprecated
- New audio template
- New Templates
- Communication Apps
-
CPMessageListItem - Contact template
- List template
- Tab bar template
- Now playing template
- Point of interest template
- Information template
- CarPlay Design Principles
- Design for the driver
- Streamline interactions
- Reuse app configuration
- Launch first in CarPlay
- CarPlay apps must adapt
UIScene
- Updates to development
- Dynamic updates to list elements
-
CPListItem -
CPListImageRowItem
What's new in streaming audio for Apple Watch
https://developer.apple.com/wwdc20/10636
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in managing Apple devices
https://developer.apple.com/wwdc20/10639
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for the iPadOS pointer
https://developer.apple.com/wwdc20/10640
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Handle the Limited Photos Library in your app
https://developer.apple.com/wwdc20/10641
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build Image and Video Style Transfer models in Create ML
https://developer.apple.com/wwdc20/10642
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build a SwiftUI view in Swift Playgrounds
https://developer.apple.com/wwdc20/10643
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Use Swift on AWS Lambda with Xcode
https://developer.apple.com/wwdc20/10644
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Support multiple users in your tvOS app
https://developer.apple.com/wwdc20/10645
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Web Inspector
https://developer.apple.com/wwdc20/10646
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Become a Simulator expert
https://developer.apple.com/wwdc20/10647
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Unsafe Swift
https://developer.apple.com/wwdc20/10648
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Add custom views and modifiers to the Xcode Library
https://developer.apple.com/wwdc20/10649
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Sync a Core Data store with the CloudKit public database
https://developer.apple.com/wwdc20/10650
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in App Store Connect
https://developer.apple.com/wwdc20/10651
Presenter: Daniel Miao
- App Clips
- Beta Testing
- Safari App Clip banner appears when a website is associated with an App Clip. Tapping brings up the
App Clip Card . Tapping the card opens the app itself. - App Clips can be invoked from Safari, Messages, Maps, NFC Tags, QR Code or Location
- Invocation URL from the website is used what to show on the App Clip Card and is passed to it upon tap of the banner
- App Clip is packaged with the app and delivered to ASC
- In the new
App Clip Invocation Section on ASC you can provide titles and along with invocation URLs used in the App Clip - Title-URL combinations are selectable in TestFlight and take you directly to the App Clip by passing the invocation URL (without showing the App Clip Card)
- App Clip Card Meta Data
- Header image, App Clip title, App Clip subtitle, call to action button
- Enter the default meta data on the apps version page on ASC
- Associate your website with the App Clip by including the meta-data tag
<meta name="apple-itunes-app", content:"app-id=123456", app-clip-bundle-id:=org.appname.clip> - Use Advanced App Clip Experiences to get customized meta data and association with eg location in Maps
- Advanced assistant on your app's version page on ASC to setup advanced experience
- You can select to promote
Your own business or Other Businesses (eg Yelp)
- You have to specify an Apple App Site Association file (like with universal links) that has to match the Associated Domains Entitlement in your app
- Manage / Debug your website association on ASC
- 遊戲中心
- Challenges other players to get achievement
- Recurring Leaderboards to collect scores for a certain period of time
- Reset after that time
- Configurable on ASC
- Family Sharing for Subscriptions
- Subscriptions can be shared among the family form fall 2020
- Auto-renewable subscriptions
- Non-consumables
- Automatic sharing for new customers
- Existing subscribers can opt-in
- Family-shared in-app purchase can be enabled on the ASC-In-App-Purchase section of your app
- Once turned on it cannot be tuned off again
- App Store Connect API
- Over 200 new endpoints will be added
- Add
App Meta Data API- Create new version
- Set app pricing
- Edit app and version metadata
- Associate build with version
- Submit app for review
- Add
Power and Performance Metrics and Diagnostics API
Meet the new Photos picker
https://developer.apple.com/wwdc20/10652
Presenters: Tobias Conradi, Justin Jia
- PHPicker
- Direct access to user's photo gallery
- Supports zoom in, multi-select, review
- Types are filterable
- Privacy built in by default
- It won't prompt the user for access
- It runs out of the app's process
- Separate process rendered on top of the app
- Only what user selects is passed back to the app
- 執行
PHPickerConfiguration (which can include type filters) is passed to PHPickerViewController , which has delegates to handle responses-
PHPickerConfiguration- Selection limit
- Image / Video type
- Initialize
PHPickerViewController by using the configuration - Set delegate and implement protocol functions
-
didFinishPicking -
NSItemProvider - representation of the item, async, requires error handling
- 演示
- Photo preview app
-
UIImageView with placeholder image - Plus button for image selection
- Present the new picker
- Create
PHPickerConfiguration with images filter and selection limit (set to zero for unlimited selection) - Initialize the
PHPickerViewController with this configuration - Present the new controller after setting delegate and following the protocol
- Implement
didFinishPicking- Dismiss the picker first
- Retrieve the image via item provider and use main queue to update your UI
- Use
IndexingIterator<[NSItemProvider]> to save array of item providers - Add touch event to iterate through the array of picked images
- 筆記
AssetsLibrary will go away; switch to PhotoKit-
UIImagePickerController is to be deprecated and replaced with PHPickerViewController
Detect Body and Hand Pose with Vision
https://developer.apple.com/wwdc20/10653
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create Swift Playgrounds content for iPad and Mac
https://developer.apple.com/wwdc20/10654
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Discover how to download and play HLS offline
https://developer.apple.com/wwdc20/10655
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Beyond counting steps
https://developer.apple.com/wwdc20/10656
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Make apps smarter with Natural Language
https://developer.apple.com/wwdc20/10657
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in education
https://developer.apple.com/wwdc20/10658
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Introducing StoreKit Testing in Xcode
https://developer.apple.com/wwdc20/10659
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in location
https://developer.apple.com/wwdc20/10660
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new with in-app purchase
https://developer.apple.com/wwdc20/10661
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Wallet and Apple Pay
https://developer.apple.com/wwdc20/10662
Presenter: Stacey Abrams
- Use Apple Pay to get into public transit and acadamic buildings
- API Enhancements
- PKSecureElementPass replaces PKPaymentPass fom now
- New Apple Pay Button types:
.reload , .addMoney , .topUp , .order , .rent , .support , .contribute , .tip - See how to declare a Apple Pay Button on a website at 2:16
- PKPaymentButton style
.automatic automatically switches between light and dark mode
- Apple Pay in App Clips
- Could revolutionize everydays payment experience when you can eg just tap an NFC tag on a gas station to pay your gas
- Guest checkouts using Apple Pay do not require to setup an account anymore and if it is necessary seamless Sign in with Apple is used.
- Enhancing Apple Pay experience across platforms
- Merchants can receive redacted billing address
- Lower risk of chargebacks for merchnts
- Price transparency leads to higher conversion rates
- Apple Pay for Catalyst
- Brings great payment experiences to more mac apps
- Brings the newly announced APIs, including the Apple Pay button, to the mac
- Improvements in WKWebView will allow more pages to allow Apple Pay transactions now
- Contacts Formatting Improvements to prevent invalid shipping addresses
- Street and city fields contain vaild characters only
- State is a two letter code
- US: Zip code is 5 or 9 digit code
- ISO country code is upper case two letter code
- Improved experience when correcting information
- Raise formatting errors earlier in the payment flow
- Users can correct information prior to authentication
- Error APIs improved and aligned to new formatting options
- Only rolles out in some Australia, Canada, UK, US for now
- Adding cards to Apple Pay
- Issuer Extensions to improve discoverability from within the Wallet app - needs installatioon of an Issuer app
- App requires non-UI extension
- Extension principal object must subclass
PKIssuerProvisioningExtensionHandler - Requires non-UI extension entitlement
- Added support for a UI extension
- Needs to handle re-authentications if required by conforming principal object to
PKIssuerProvisioningExtensionAuthorizationProviding - Requires UI extension entitlement
What's new for web developers
https://developer.apple.com/wwdc20/10663
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Getting started with HealthKit
https://developer.apple.com/wwdc20/10664
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Safari Web Extensions
https://developer.apple.com/wwdc20/10665
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
One-tap account security upgrades
https://developer.apple.com/wwdc20/10666
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Custom app distribution with Apple Business Manager
https://developer.apple.com/wwdc20/10667
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Nearby Interaction
https://developer.apple.com/wwdc20/10668
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Handling FHIR without getting burned
https://developer.apple.com/wwdc20/10669
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Face ID and Touch ID for the web
https://developer.apple.com/wwdc20/10670
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Architecting for subscriptions
https://developer.apple.com/wwdc20/10671
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in ClassKit
https://developer.apple.com/wwdc20/10672
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore Computer Vision APIs
https://developer.apple.com/wwdc20/10673
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build trust through better privacy
https://developer.apple.com/wwdc20/10676
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build customized ML models with the Metal Performance Shaders Graph
https://developer.apple.com/wwdc20/10677
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Refine Objective-C frameworks for Swift
https://developer.apple.com/wwdc20/10680
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore the new system architecture of Apple Silicon Macs
https://developer.apple.com/wwdc20/10686
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Triage test failures with XCTIssue
https://developer.apple.com/wwdc20/10687
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md