13 報

Share this post

開發者週報 #146 那就表示…應該是你要去讀

www.ethanhuang13.com

開發者週報 #146 那就表示…應該是你要去讀

Apple/iOS 開發者的一週大小事 2022/06/20-2022/06/26

13
Jun 26, 2022
2
Share this post

開發者週報 #146 那就表示…應該是你要去讀

www.ethanhuang13.com

13的話

喜歡 13 的電子報,請訂閱我的 Patreon!我的目標是累積到 100 位支持者,目前進度來到 22%。

前陣子用讀者的捐款買了一些軟硬體,可以幫助我做出更好的內容。取之於讀者、用之於讀者,我很高興能有這樣的正向循環。有興趣了解的話,可以留言敲碗後設電子報。

(看前一期 · 回首頁)


😭App Store Connect Update

Apps that use iCloud can now be transferred to another developer in the Apple Developer Program.

上週我忘了貼這個,可以說是 WWDC22 宣布中,對 Apple 開發圈的最大消息也不為過。

在過去,app 如果有使用 iCloud,就無法移轉給其他開發者帳號。這導致幾乎不可能把 app 出售或轉讓給其他廠商、開發者進行維護,除非把整個公司賣掉。

我個人也有 app 被這個問題卡住所有權。幸好這已經是過去式了。

🧪Beta 2

每次新版本我都會列 release notes,但讀者很少點開來閱讀。當過幾年 iOS team lead 的我,還是想用這句話提醒它們的重要性(尤其是 Known Issues):

如果新版推出後,上班時你發現 iOS team 同事都沒有在讀 release notes,那就表示…應該是你要去讀😂

  • Xcode 14 Beta 2

  • macOS 13 Ventura Beta 2

  • iOS 16 Beta 2

  • watchOS 9 Beta 2

  • tvOS 16 Beta 2

📺iOS 16 beta - 350+ Features!

Jeff Benjamin 曾在 iDownloadBlog 與 9to5Mac 等 Apple 為主題的數位媒體任職,期間錄製過大量 iOS 操作影片,品質都很高。現在他出來開了自己的 YouTube 頻道 Cellular。

這個影片有接近 3 小時的時間,有完整的時間段落跟字幕。不管是 iOS 工程師、PM 或設計師,想要對 iOS 16 新功能有全面的理解,這應該是非常好的方式。

🧑‍💻Improving Developer Experience Through Tools and Techniques 2022

Krzysztof Zabłocki 是 Sourcery 等知名開源工具的作者,曾在紐約時報任職 iOS 工程師。

我很喜歡這份簡報,不光是因為我也很重視 developer experience,更是因為他的切入角度非常全面。

📑SwiftUI Index

不錯的 SwiftUI 文件索引,尤其是可以依照推出版本為順序。

🙅“Don’t conform a type you don’t own to a protocol you don’t own”

這是個滿容易踩到的坑。

Twitter avatar for @olebegemann
Ole Begemann @olebegemann
Swift’s rule for retroactive conformance: “Don’t conform a type you don’t own to a protocol you don’t own”. Sounds pretty abstract, but it can cause problems if the library later adds the same conformance. Here’s a real-world example:
forums.swift.orgCustom protocol conformance that supports older version, collides with new system conformanceThe problem is best described with an example: Up until recently, NSImage did not conform to NSItemProviderReading so I’ve written my own implementation: extension NSImage: NSItemProviderReading { public static var readableTypeIdentifiersForItemProvider: [String] { return [“public.ima…
2:47 PM ∙ Jun 20, 2022
103Likes14Retweets

解決辦法不難,包一層就好了:

Twitter avatar for @beccadax
Becca Royal-Gordon 🏳️‍⚧️🏳️‍🌈 @beccadax
Remember, you can always write a tiny little struct to wrap the type and conform that instead. Underrated pattern.
Twitter avatar for @akashivskyy
Adrian Kashivskyy @akashivskyy
This especially applies if you’re shipping a framework! Adding public conformances like `extension CGPoint: Comparable` might be tempting but it’s a bad idea. Creating a custom type or adding internal methods is always a better choice. (Same goes for operators.) https://t.co/7UadurIUR2
6:34 PM ∙ Jun 20, 2022
54Likes8Retweets

🧩兩個 Swift Package Plugin 範例

Xcode 14 支援 Swift Package Plugin,可以用 Swift 原生功能來協助 Swift 開發。手腳快的開發者已經弄出些花樣了,感覺 Swift 的生態系會瞬間豐富起來。

  • DoNilDisturb Swift Plugin 裝上去以後,在非上班時間或者假日時就無法編譯。是個強迫休息的玩意兒

  • SwiftLintPlugin 顧名思義是將 SwiftLint 整合進 Swift 專案裡。實作非常簡單,有興趣寫 Plugin 的可以參考

🤪Random Tweets

Twitter avatar for @hokilaJ
Hokila @hokilaJ
與同事 1-1 我:「既然你覺得寫程式已經沒什麼困難進入舒適圈了,那你要不要來些政治鬥爭啊」
9:13 AM ∙ Jun 20, 2022
147Likes11Retweets
Twitter avatar for @joe_trash_talk
通靈烤豬骨🦴 @joe_trash_talk
有時都會覺得做產品很有趣,你在內部太早提個漂漂亮亮的外觀,討論很容易就淪為「大一點小一點亮一點暗一點」 但是一個產品只有漂漂亮亮的外觀,它還是可以賺錢的。 妙哉妙哉,甚好甚好😌
2:51 AM ∙ Jun 21, 2022
Twitter avatar for @tufook
张土福 @tufook
Apple 设计师绘制初版冰淇淋 emoji 的时候直接复用了笑脸便便 emoji 的形状。不过从 iOS 10 开始这个设计被改掉了。
Image
Image
5:36 AM ∙ Jun 23, 2022
415Likes65Retweets
Twitter avatar for @lexrus
Lex Tang @lexrus
赌五元,你的 iOS 项目里只用过第一种😜
Image
2:02 PM ∙ Jun 26, 2022
17Likes1Retweet

💼職缺/履歷交流區

如果你有 iOS 相關職缺或是求職履歷想要刊登在開發者週報,請見關於。


🙏支持 13 寫作,請訂閱我的 Patreon(我的目標是累積到 100 位支持者,目前進度 22%)、按喜歡❤️、留言💬、回信✉️與我交流。

Share this post

開發者週報 #146 那就表示…應該是你要去讀

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