weak self

90: 動態尋找成員


Listen Later

{ 完整節目筆記 https://weakself.dev/episodes/90 } 簡短介紹一個超實用的 Swift 冷門技巧。寫 SwiftUI 很有機會用到。 👋開場 & 節目回顧 再補充一下 weak self Discord 的玩法。請按我加入(每集更新連結)。 ⭐️@dynamicMemberLookup 本段程式碼請見官網 https://weakself.dev/episodes/90 常用情境:model 需要被拓展,但不能或不想用繼承的方式 或者做成 generic 的版本 要支援寫入則需要用到WritableKeyPath 13 提到的 generic id wrapper,看請況可用在 SwiftUI 的 ForEach 使用 Generic id wrapper 的 @dynamicMemberLookup 的版本 嵌套的 @dynamicMemberLookup 是可行的 property name 相同的話,會取上層的 💸勸敗話題 預告:Swift Playgrounds 4 還來不及深入研究,有機會再聊 13:腦航員2 中文化連署 Pofat:地獄之刃 兩款都在 XGP 裡,充分發揮低成本試錯的優點 擁有選擇權 👋收尾 & 預告 預告:喬喬回歸 更多 weak self 聽眾信箱 [email protected] 官網 https://weakself.dev 主持人 一三波肥 Twitter @weak_self 提問箱 贊助 weak self



This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit weakself.substack.com
...more
View all episodesView all episodes
Download on the App Store

weak selfBy 一三、波肥、喬喬

  • 4.9
  • 4.9
  • 4.9
  • 4.9
  • 4.9

4.9

10 ratings