13的話
天氣冷到不知道要說什麼了🌚
🧪iOS 15.4 Beta 3 & Xcode 13.3 Beta
Release notes 建議要讀。
🤔Apple SSD 速度之謎
推文串還滿長的。你需要知道的是,斷電的時候,資料有可能還未寫入。有電池的電腦像是 MacBook Air / Pro 不太需要擔心。但 Mac mini / iMac 就...
![Twitter avatar for @marcan42](https://substackcdn.com/image/twitter_name/w_96/marcan42.jpg)
Well, this is unfortunate. It turns out Apple's custom NVMe drives are amazingly fast - if you don't care about data integrity.
If you do, they drop down to HDD performance. Thread.
![Twitter avatar for @marcan42](https://substackcdn.com/image/twitter_name/w_96/marcan42.jpg)
Uh, guys? I'm not saying "the machines are only fast because they cheat on data durability". I'm saying there's a stupid, unfortunate performance bug when you *do* want durability that most people won't notice because macOS gives you poor durability by default.
🤪Random Tweets
2/14 這個節日是
SwiftUI 火力展示
![Twitter avatar for @johnsundell](https://substackcdn.com/image/twitter_name/w_96/johnsundell.jpg)
This entire game scene is actually one big SwiftUI view hierarchy! 😀
Hundreds of views, many of them animated, all rendering at a smooth 60 FPS on Mac, iPad and iPhone (even on my iPhone X), with 90+% code sharing across platforms! 🚀
Love how versatile and fast SwiftUI is 👍
![Screenshot of a game scene built using SwiftUI](https://substackcdn.com/image/fetch/w_600,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fpbs.substack.com%2Fmedia%2FFLfVIhBXEAgn_Xb.jpg)
![Twitter avatar for @johnsundell](https://substackcdn.com/image/twitter_name/w_96/johnsundell.jpg)
Here's a quick video showing the game running on an iPhone X. Really smooth overall, and this is on a 4+ year old device, and I haven't done almost any performance optimization work yet 😀 SwiftUI continues to impress me!
Live Text 在 Safari 的實作
![Twitter avatar for @WildCat_io](https://substackcdn.com/image/twitter_name/w_96/WildCat_io.jpg)
How #LiveText is implemented in Safari? Besides Apple's OCR algorithms, the text is basically implemented using #ShadowDOM and CSS Transform.
github.com/WebKit/WebKit/…
Front-end tech still rocks, even for #APPL.
![Image](https://substackcdn.com/image/fetch/w_600,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fpbs.substack.com%2Fmedia%2FFLkOZcuakAEiYA0.jpg)
上週的讀者回應(不是)
iOS 15 的新 .background
modifier 可設定 ShapeStyle
![Twitter avatar for @tgrapperon](https://substackcdn.com/image/twitter_name/w_96/tgrapperon.jpg)
PSA: If you want to get "automatic" vibrancy when setting `.foregroundStyle` to `.secondary` over a `Material` in SwiftUI, you *need* to use the new `.background` modifiers from iOS 15 to draw the background.
Otherwise, you'll only get a flat color.
#SwiftUI
![Screen capture of a SwiftUI preview showing that new iOS 15 API's for background should be used to make the overlaid content vibrant.](https://substackcdn.com/image/fetch/w_600,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fpbs.substack.com%2Fmedia%2FFLwvFpoWQAkvBcb.jpg)
我覺得這知識挺實用的呀。這樣就知道為何 SwiftUI 的 state 不需要 Equatable
。
![Twitter avatar for @PofatTseng](https://substackcdn.com/image/twitter_name/w_96/PofatTseng.jpg)
#TIL: SwiftUI 比較 view 時首先嘗試比較 memory
#不知道也無妨的知識
![Twitter avatar for @jckarter](https://substackcdn.com/image/twitter_name/w_40/jckarter.jpg)
Joe Groff @jckarter
🤝社群活動
💼職缺/履歷交流區
Ubiquiti Inc. (UI) Android Developer
如果你有 iOS 相關職缺或是求職履歷想要刊登在開發者週報,請見關於。