13 Profile picture
13
iOS Developer. Co-host of @weak_self podcast. https://t.co/cyMOOl7oFA
Tank Lin Profile picture 1 subscribed
Mar 9, 2022 9 tweets 2 min read
最近在準備給新同事的 SwiftUI 訓練,有幾個想法(不一定對。順序不重要):
1. SwiftUI 的那些「坑」其實幾乎都是跟它底層呼叫 UIKit 有關
2. modifier 實際運作時,效果分成「往下傳遞資料」、「往上傳遞資料」、「不往上也不往下傳遞」。這部分只能靠記憶,算是初學者障礙 3. 除非資料非得用 reference type,不然 ObservedObject/StateObject 很少用
4. 善用 overlay 大法你就是排版高手,再加個 offset 就稱得上大師了(我亂扯)
5. 確保 Preview 運作正常是第一優先。這代表你要懂得拆分合適的注入方式
6. 每個 View 都有 id 這個觀念再重要不過了,只是 WWDC21 才明講
Sep 26, 2021 7 tweets 3 min read
⚠️PSA for All iOS Developers: Xcode 12 is not compatible with Monterey.

Don’t upgrade your Mac to Monterey unless you are 100% sure that you will only need to use Xcode 13+.

developer.apple.com/news/?id=ufox7… @daveverwer @mxcl @_inside @bzamayo @gruber
Tell you dev friends.
Jun 8, 2021 16 tweets 15 min read
13 看過的 #WWDC21 sessions,inspired by @YuTsungYu。格式重新整理,前推恕刪👇 1. What's new in Foundation #WWDC21
developer.apple.com/wwdc21/10109
新的 AttributedString 不只是用 Swift 重寫,還支援 markdown、Codable、custom attributes 等特性,還可以變成組合技。新的 Formatter syntax 也很爽
Sep 23, 2019 22 tweets 9 min read
#iPlayground 的工作人員都要求寫心得,我想說試著用推文串來寫好啦。如果你剛好有想寫心得,也可以試試看這個方式。

以下開始是 13 的 iPlayground 2019 心得,順序想到什麼就先寫什麼👇 很高興今年帶起了一些 Twitter 的使用風氣,甚至成為 Taiwan trending #iplayground 。這樣如果有什麼重要資訊,大家就能夠用更有效率地方式交流。Facebook 真的不行。國外的開發者都是用推特在互動。
Jan 18, 2019 5 tweets 1 min read
最近整個部門在開發新功能,由於實在受不了各種不能算是規格的規格文件,以及冗長的會議🤮。所以今早上班第一件事情,寫了一個「如何開規格的規格書」😂。以下摘錄幾個重點: 1/ 開頭應該寫商業目的或者 user story,聚焦商業價值所在。再來要告訴讀的人要怎麼使用這份文件🧐,包括加註的重點或顏色是什麼意思。你應該把文件設計成不用親自講解也能看得懂。👏2/
Jul 19, 2018 7 tweets 4 min read
This is how you duplicate a radar in 2018. Starring @tweetbot, Ladybug, and Brisk. @tweetbot Currently rdar:// link in a tweet is only tappable within Tweetbot. You can get Ladybug from the App Store itunes.apple.com/us/app/ladybug…. Brisk is on GitHub. github.com/br1sk/brisk-ios