13 報

Share this post

開發者週報 #46 WWDC20

www.ethanhuang13.com

開發者週報 #46 WWDC20

Apple/iOS 開發者的一週大小事 2020/06/22-2020/06/28

13
Jun 28, 2020
Share this post

開發者週報 #46 WWDC20

www.ethanhuang13.com

13的話

WWDC 加上連假我吸收了不少東西,但是要怎麼整理出來在週報上卻變成一個問題🤔

五天的研討會有上百小時的影片,不可能榨成一篇電子報講完。所以我也不打算在週報放太多資訊。想看很細的 WWDC 小知識,請去看我的 Twitter 推文跟轉推。

原本考慮把 Apple Silicon、Big Sur、Widget、App Clips、SwiftUI、Privacy⋯⋯各種主題都寫一小段文字,說明一下——根據什麼資料,我認為這些變化對於開發者有什麼影響。

但是除了週報以外,我還有 weak self 這個 podcast 節目,作為給開發者吸收知識的管道。我覺得 WWDC 有那麼多主題,其實用 podcast 更能吸收。畢竟如果你看累了英文的 sessions,聽聽我們三位主持人用中文聊這些技術話題,可能更舒適。

所以週報不會專題討論各項技術,還是跟以前一樣放了一些懶人包連結、避免踩坑、趣事等等。

(看前一期 · 回首頁)


🎙weak self podcast 第三季弱勢回歸

受到 WWDC 今年出影片長度的啟發,我們想把節目保持在主持人跟聽眾都不會太有壓力的節奏。大概是每隔兩三天上架一個主題,每個主題小聊個十來分鐘。

每個人或團隊對於吸收 WWDC 新知的策略都不同,今年多了 weak self 這個前所未有的管道(該節目成立時間是在去年 WWDC 結束以後)。究竟會聊出什麼火花,我也很期待。

已經釋出的集數:

  • 39: 第三季弱勢回歸!先來聊聊 WWDC20 印象

  • 40: Apple Silicon

🤯WWDC 懶人包

WWDC20 全部的影片在這裡,也可以依照主題分類。不過我還是建議用 Developer app 來收看。這樣觀看進度跟喜愛狀態會同步(用的是裝置上的 iCloud 帳號,而不是 app 裡登入的 Apple ID)。

懶人包目前還沒有看到中文的:

  • 官方 Daily Recap 短片,每個都在一分半左右:週一、週二、週三、週四、週五

  • WWDC 2020 Session Notes https://github.com/Blackjacx/WWDC/

  • WWDC Notes https://www.wwdcnotes.com

🕳安全地安裝 macOS Big Sur beta

我本來以為安裝 beta 版的 macOS 可以像以往一樣,在磁碟工具程式用新增 APFS 卷宗的方式,就不會蓋掉原有的系統。用新增卷宗還有一個好處——同一個 APFS 容器裡卷宗的剩餘空間可以共用。

沒想到 Big Sur 改了 APFS 的一些東西,無法向上相容。例如,Catalina 會認不得 Big Sur 的卷宗,不能在系統偏好設定修改預設啟動磁碟為 Big Sur(開機時按著 Option 還是可以選擇)。

如果要在同一台 Mac 上安裝 Big Sur 的話,比較安全的方式是把 Big Sur 安裝在另一個「 APFS 容器」,需要用「分割」。

具體操作步驟請見標題連結。

‼️Widgets are not mini-apps

我覺得一定超多人誤會新的 widget,它跟舊版 widget 概念跟實作都完全不同。互動只有點按開啟 app、更新方式有限制像 Apple Watch 錶面。

還是自己看吧!相關議程:Meet WidgetKit。

Twitter avatar for @ethanhuang13
13 @ethanhuang13
‼️❗️ Widgets are not mini-apps. Widgets are not mini-apps. Widgets are not mini-apps. #很重要所以要說三遍 整個 session 真的講了三次耶🤣 developer.apple.com/videos/play/ww…
developer.apple.comMeet WidgetKit - WWDC 2020 - Videos - Apple DeveloperMeet WidgetKit: the best way to bring your app’s most useful information directly to the home screen. We’ll show you what makes a great...
3:16 AM ∙ Jun 24, 2020
17Likes2Retweets
Twitter avatar for @ethanhuang13
13 @ethanhuang13
⌚️Widget 不是迷你 apps,那到底是什麼?我越看越像 Apple Watch 的「複雜功能」(Complications),可以在錶面看到重要資訊、點下去可以打開 app 但沒有其他操作、隨著時間更新而不是動態顯示。 所以,簡單來說,Widget 就是「複雜功能複雜版」!🤣 #使用者應該會有許多錯誤的期待 #怕
Image
Twitter avatar for @ethanhuang13
13 @ethanhuang13
用過 watchOS ClockKit 再來看 Widget 更新機制,真的沒什麼障礙 #你永遠也不能預料學過的東西以後會在哪用上 https://t.co/IhrpqaAfTg
3:26 AM ∙ Jun 24, 2020

有人在 lab 問到 widget 的更新頻率限制:

Twitter avatar for @roczhang9673
Roc Zhang @roczhang9673
2, Is there any reload rate limitation exits in WidgetKit? Yes. For example, if you return one entry with timelineReloadPolicy.after, and you make the “after” date like 1 minute from now, 60 times in one hour, you will run out of reloads. ”You don't wanna do anything crazy.”
11:38 AM ∙ Jun 27, 2020
3Likes1Retweet

🤯一則推文寫完一個 App

SwiftUI 是來真的了。相關議程:App essentials in SwiftUI。

Twitter avatar for @johnsundell
John Sundell @johnsundell
This is a fully functioning SwiftUI plain text editor, with persistence, in a tweet! 🤯 #WWDC20 ﹫main struct EditorApp: App { ﹫AppStorage("text") var text = "" var body: some Scene { WindowGroup { TextEditor(text: $text).padding() } } }
3:00 PM ∙ Jun 24, 2020
1,321Likes249Retweets

🛠StoreKit Testing Improvements in iOS 14

在我看來,Xcode 12 等於是內建了整套 IAP mock server。相關議程:Introducing StoreKit Testing in Xcode。

🙈Nearby Interaction Demo

U1 晶片大發威!相關議程:Meet Nearby Interaction。

Twitter avatar for @daveisonthego
Dave Lyon @daveisonthego
There's a new framework using the U1 called NearbyInteraction, and the sample code with the new simulator is super slick. You can move the simulators on screen and they "move" relative to each other and get updates.
Image
10:47 PM ∙ Jun 22, 2020
1,394Likes296Retweets

🤔Mac App 要怎麼開發?

如果我沒有弄錯的話,未來一套 SwiftUI codebase 在 Mac 上可以有三種跑法:

  1. As a Mac app

  2. As a Catalyst app

  3. As an iOS app (Apple Silicon device only)

再加上既有的 AppKit、UIKit,選擇多到不行。

至於要用哪一種,我覺得這串推文寫得很好:

Twitter avatar for @stroughtonsmith
Steve Troughton-Smith @stroughtonsmith
Pretty confident after WWDC that UIKit is the best way to create consumer apps, AppKit is the best way to create pro apps, and SwiftUI is a great way to build new UI for the future on top of either. I think all of these technologies are going to be around for a very long time
1:51 PM ∙ Jun 27, 2020
367Likes51Retweets
Twitter avatar for @stroughtonsmith
Steve Troughton-Smith @stroughtonsmith
Apple's being pretty clear! Use AppKit. Also Catalyst. Also SwiftUI. As long as it's not Electron 😂
Twitter avatar for @bms2993
Brandon Sellers @bms2993
@stroughtonsmith So many questions as to why choose what and when...
2:15 AM ∙ Jun 28, 2020
121Likes16Retweets

🎵WWDC 歌單

每年 WWDC 現場都會放音樂。這次沒有現場,但還是有官方的歌單,而且分成 Power Up、Energy、Focus 三份。

😆WWDC 趣事

他到底有多愛湯🥣(相關議程:Design for intelligence: Make friends with "The System")

Twitter avatar for @maxweisel
Max Weisel @maxweisel
so I paid someone on fivrr to make a supercut of @mertdumenci's wwdc talk. best $5 I ever spent.
Image
9:34 PM ∙ Jun 25, 2020
2,387Likes400Retweets

他到底是有多愛三明治🥪(相關議程:Introduction to SwiftUI)

Twitter avatar for @CastIrony
Joel Bernstein @CastIrony
WWDC out of context
Image
6:28 PM ∙ Jun 23, 2020
4,077Likes557Retweets

一邊講一邊解魔術方塊,結果最後…(抱歉,我沒找到是哪個議程)

Twitter avatar for @nicolapps
Nicolas Ettlin ✨ @nicolapps
@CastIrony I wasn’t ready for that…
Image
10:21 PM ∙ Jun 24, 2020
5Likes2Retweets

自製 Bash(Bash 指的是 WWDC 官方 party)

Twitter avatar for @TravelingAnika
Traveling Anika @TravelingAnika
Virtual Bash Checklist: Drinks ✔️ Lights ✔️ Sound ✔️ Crowd ✔️ #WWDC20
Image
12:18 AM ∙ Jun 26, 2020
98Likes27Retweets

XCTissue(相關議程:Triage test failures with XCTIssue)

Twitter avatar for @qcoding
Jon Reid @qcoding
Is everyone ready to learn about XCTissue today? #WWDC20
Image
4:25 PM ∙ Jun 25, 2020
39Likes2Retweets

SF Symbols 2(相關議程:SF Symbols 2)

Twitter avatar for @_DavidSmith
David Smith @_DavidSmith
There are some really fun new symbols in SF Symbols 2.0 👀 developer.apple.com/sf-symbols/ind…
Image
7:52 PM ∙ Jun 24, 2020
206Likes19Retweets

小猴子登場!(相關議程:What's new in Low-Latency HLS)

Twitter avatar for @jnadeau
Jeff Nadeau @jnadeau
If you haven't watched “What’s new in Low-Latency HLS”, you've missed out on this slide being narrated by a monkey puppet
Image
10:42 PM ∙ Jun 24, 2020
507Likes105Retweets

以上就是本期的內容。歡迎轉寄或推薦給同事或開發者朋友。有問題或回饋請直接回覆即可。

Share this post

開發者週報 #46 WWDC20

www.ethanhuang13.com
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 ethanhuang13
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing