13 報

Share this post

開發者週報 #64 使用 SwiftFormat 取代 Xcode 排版功能

www.ethanhuang13.com

開發者週報 #64 使用 SwiftFormat 取代 Xcode 排版功能

Apple/iOS 開發者的一週大小事 2020/10/26-2020/11/01

13
Nov 1, 2020
1
Share this post

開發者週報 #64 使用 SwiftFormat 取代 Xcode 排版功能

www.ethanhuang13.com

13的話

這週末 11/8 就是 iPlayground 了。還沒買票的同學這是最後機會。See you soon!

還有 11/6 iPhone 12 Pro Max 與12 mini 開始預購。

(看前一期 · 回首頁)


 Apple 2020 Q4財報

顯然 iPhone 延遲上市對 iPhone 的季度營收影響很大。

另外,哈佛商業評論最近有一篇罕見的 Apple 企業組織文化訪談頗值得一讀—How Apple Is Organized for Innovation。

 Apple One 正式推出

官網居然沒發新聞稿。實測了一下家庭方案不支援不同地區的帳號。另外 iCloud 容量會跟之前另外買的疊加,所以如果有另外買的記得取消。

Twitter avatar for @yipe
Michael Marghoulis @yipe
They grow up so fast!
Image
Image
Image
Image
2:16 PM ∙ Oct 31, 2020
112Likes8Retweets

iOS 14 全球使用者已超越 iOS 13

其實比往年慢,因為 iPhone 晚一點上市。

Twitter avatar for @ethanhuang13
13 @ethanhuang13
iOS 14 推出 40 天後終於死亡交叉了 mixpanel.com/trends/#report…
Image
7:41 AM ∙ Oct 26, 2020
32Likes4Retweets

🧪iOS 14.2 RC & Xcode 12.1.1 RC

Apple 把以前的 GM 改叫 Release Candidate。

The term “Release Candidate” (RC) replaces “GM seed” and indicates this version is near final.

  • iOS & iPadOS 14.2 RC 新功能滿多但只有之前的 release note,看影片比較快

  • macOS Big Sur 11.0.1 beta 正式版又被跳號了

  • Xcode 12.1.1 RC

另外有兩則開發者消息:

  • Upcoming tax and price changes for apps and in-app purchases

  • New subscription server notifications available in production

🤯Swift Concurrency Roadmap

份量很多,至少要分成四個 proposals:

  • async/await

  • Task API and Structured Concurrency

  • Actors & Actor Isolation

  • Concurrency Interoperability with Objective-C

  • Async handlers(還沒有 pitch)

這邊都還在講概念,沒到實作。有空再慢慢讀沒關係。用新語法表達發展過程自身的話,大概是這樣:

Twitter avatar for @ethanhuang13
13 @ethanhuang13
func addNewConcurrencyPower() async throws -> Swift { async let p1 = asyncAwait() async let p2 = structuredConcurrency() async let p3 = actors() async let p4 = objCInteroperability() let se = SE(review: await [p1, p2, p3, p4]) return try se.implement().release() }
4:09 AM ∙ Oct 31, 2020
11Likes1Retweet

🕳SwiftUI 把條件放在 if 跟 modifier 的差異

有在寫 SwiftUI 要注意一下這個坑。同場加映這篇文章。

Twitter avatar for @harlanhaskins
Harlan Haskins @harlanhaskins
I don't know who needs to hear this, but if you write if condition { SomeView() .someModifier() } else { SomeView() } then when the condition changes, the view is destroyed and a new one added in its place. This breaks animations and resets your @state/@stateObjects
12:36 AM ∙ Oct 29, 2020
231Likes32Retweets

🕳 Catalyst 的 Optimize for Mac 選項其實可以用在 10.15

Twitter avatar for @stroughtonsmith
Steve Troughton-Smith @stroughtonsmith
Über Catalyst / Optimized for Mac protip that I wish I knew over the summer: target 10.15, and then add 'Mac' in the Targeted Device Families dropdown in your Build Settings and you can build an Optimized for Mac Catalyst app that /also supports macOS 10.15 in scaled mode/ 🤯
Image
11:26 PM ∙ Oct 29, 2020
104Likes13Retweets

🌿香草與小麥注音升級

Twitter avatar for @OpenVanilla
OpenVanilla @OpenVanilla
很久沒發布消息了。我們發布了 1.6.0,支援新版 macOS 及硬體架構,修正了一些小問題,也更新了桌面上的鍵盤圖示。openvanilla.org
Image
2:55 AM ∙ Oct 30, 2020
48Likes16Retweets
Twitter avatar for @McBopomofo
小麥注音輸入法 @McBopomofo
我們發布了 1.0 版,支援新版 macOS 及硬體架構,可用大寫鎖定鍵切換輸入法,修正了一些小問題,也更新了桌面上的鍵盤圖示。mcbopomofo.openvanilla.org
Image
2:58 AM ∙ Oct 30, 2020
57Likes18Retweets

⌨️使用 SwiftFormat 取代 Xcode 排版功能

我最近在為了 iPlayground 寫一些資料。這是其中一篇文章。

Twitter avatar for @ethanhuang13
13 @ethanhuang13
為了準備 iPlayground 題目開始寫技術文章,這次試著用 Notion,沒想到一發不可收拾,三天寫了十幾篇。 Markdown、離線編輯、資料的長期保存跟可攜性等堅持先暫時放一邊了,好寫好編輯彈性高是真的。 目前僅開放單篇文章,有 follow 我的話就有機會讀到。全部篇章的目錄等 iPlayground 之後再打開。
12:27 PM ∙ Oct 28, 2020
50Likes1Retweet

還有以下幾篇:

  • 🔍5 GUIs—偵測 Mac App 用了哪些 UI 框架

  • ⚠️ 令人又愛又恨的 SwiftLint

  • ⏳追蹤從 Objective-C 轉換到 Swift 的進度—GoSwifty

  • ♟ Xcode 與 iOS 相容性測試策略分析

喜歡的話請留言,我以後會多寫一些。

😹會心一笑

本週內容不多(?),放貓跟笑話來墊檔。

Twitter avatar for @cat_or_die
ふれていいマーキュリー @cat_or_die
猫の呼吸に合わせて画面が切り替わるパソコン
Image
12:03 AM ∙ Oct 27, 2020
75,431Likes26,845Retweets
Twitter avatar for @OOBE
OOBE @OOBE
中華電信電銷:「先生你好,你所在的地區已經可以支援到500M頻寬,升級以後追劇會變快喔。」 我:「除非看的時候快轉,不然追劇為何會變快?」 ⋯⋯
8:34 AM ∙ Oct 27, 2020
476Likes46Retweets
Twitter avatar for @jckarter
Joe Groff @jckarter
Thank you Oreo for committing to native Mac app development
Image
Image
8:08 PM ∙ Oct 29, 2020
391Likes50Retweets

同時是 Swift 跟 Twitter 使用者才懂的梗:

Twitter avatar for @NeoNacho
clang -Boooooooooo @NeoNacho
Who called it “Swift.String” and not “don’t @ me”
12:07 AM ∙ Oct 31, 2020
109Likes15Retweets

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

Share this post

開發者週報 #64 使用 SwiftFormat 取代 Xcode 排版功能

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