13 報

Share this post

開發者週報 #27 連編導都嫌爛的鍵盤

www.ethanhuang13.com

開發者週報 #27 連編導都嫌爛的鍵盤

Apple/iOS 開發者的一週大小事 2020/02/10-2020/02/16

13
Feb 16, 2020
2
Share this post

開發者週報 #27 連編導都嫌爛的鍵盤

www.ethanhuang13.com

13 的話

感謝開發者週報的 700 位訂閱者。你們每週都創造了 60% 以上的超高開信率。希望這期也對你同樣實用。更希望每個人都健健康康。


「蘋果的鍵盤太爛了,美國編劇工會應該採取行動」

本週奧斯卡頒獎典禮現場,獲得最佳改編劇本獎的泰卡.瓦提提針對記者提問該給編劇什麼,毫不猶豫地回答說:

Twitter avatar for @Variety
Variety @Variety
Taika Waititi jokes about what writers should be asking for in the next round of talks with producers: “Apple needs to fix those keyboards. They are impossible to write on. They’ve gotten worse. It makes me want to go back to PCs” #Oscars
Image
3:33 AM ∙ Feb 10, 2020
25,802Likes5,282Retweets

因為獨具一格的幽默感,他是我個人十分欣賞的導演(雷神索爾三就是出自他之手)。但這次,我覺得他不是在搞笑🤦‍♂️

再補充:MBP16 的鍵盤好多了。希望 Apple 可以下放到全產品線。

Control Room

Paul Hudson 寫了一個模擬器設定的控制介面。他已經開源在 GitHub 上。

Twitter avatar for @twostraws
Paul Hudson @twostraws
simctl is a great tool for controlling the iOS simulator, but I find it a little hard to use. So, I wrote Control Room: a SwiftUI macOS that lets you manipulate simulator settings easily. I'd be happy to post the code on GitHub if other folks would find it useful.
Image
3:44 PM ∙ Feb 12, 2020
3,632Likes704Retweets

Swift Playgrounds for Mac

基本上是把 iPad 版移植到 Mac 上。我個人認為這對於 Swift 這個語言是重要的里程碑。許多對 Swift 有興趣的軟體工程師、對程式語言有興趣的一般 Mac 使用者,不用下載越來越肥大的 Xcode,就可以接觸到 Swift 甚至 SwiftUI。

我也會拿它來存放一些程式碼片段。不用 commit 到 git 就能跨裝置玩一些程式碼,還是滿方便的。

Twitter avatar for @LouisDhauwe
Louis D'hauwe @LouisDhauwe
This has been a very fun project to work on. Congrats to the entire team! 🎉 apps.apple.com/be/app/swift-p…
apps.apple.com‎Swift Playgrounds‎Swift Playgrounds is a revolutionary app for Mac and iPad that makes it fun to learn and experiment with code. You solve interactive puzzles in the guided “Learn to Code” lessons to master the basics of coding, or experiment with a wide range of challenges that let you explore many unique coding ex…
6:48 PM ∙ Feb 11, 2020
388Likes73Retweets

Apple Design Resources Updated

有新的 Sign In with Apple logos 等一堆東西。HIG 也有更新。

下載頁面。

Twitter avatar for @themikestern
Mike Stern @themikestern
Updated and expanded guidelines for Sign in with Apple in the HIG including new content about collecting and displaying data and creating left-aligned and logo-only buttons. developer.apple.com/design/human-i…
Image
6:33 PM ∙ Feb 14, 2020
97Likes30Retweets

Static and Dynamic Callable Types in Swift

NSHipster 的文章,我一般來說是不太願意放在週報裡的。原因是我認為每一篇都是 iOS 工程師必讀,都轉的話會太常出現。

但是這篇又是另一個高度。Mattt 切入的角度讓我們很清楚地可以把 Swift 最近幾個版本新增的「好像用不到的語法糖」功能放到明確的知識結構當中,分門別類。

callAsFunction、@dynamicCallable、@dynamicMemberLookup 這幾個動態呼叫方式,在開發 app 時你可能還是用不上他們,但是可以清楚對應到熟悉的靜態方式,幫助理解。也許哪一天就派上用場也不一定。

至於「語法糖」與「語言的功能」模糊的界線,也是作者拋給 Swift 使用者使用者思考的一個問題。

Twitter avatar for @NSHipster
NSHipster @NSHipster
Static and Dynamic Callable Types in Swift:
nshipster.comStatic and Dynamic Callable Types in SwiftIf like most of us, you aren’t tuned into the comings-and-goings of Swift Evolution, Xcode 11.4 is your first exposure to two new additions to the language: key path expressions as functions and callable values of user-defined nominal types.
8:00 PM ∙ Feb 12, 2020
70Likes8Retweets

雖然我把文中精華的表格附在這裡,還是強烈建議讀過原文。

Swift 還支援 QuickDraw

whatever:

Twitter avatar for @uliwitness
Not a Kitteh @uliwitness
TIL that Swift still supports QuickDraw: developer.apple.com/documentation/… ... 👀
developer.apple.cominit(whatever:) - GrafPort | Apple Developer DocumentationNo overview available.
10:37 AM ∙ Feb 13, 2020
50Likes5Retweets
Twitter avatar for @steipete
Peter Steinberger @steipete
Image
Twitter avatar for @uliwitness
Not a Kitteh @uliwitness
TIL that Swift still supports QuickDraw: https://t.co/PkOU6MQ8hQ ... 👀
3:36 PM ∙ Feb 13, 2020
101Likes20Retweets

You call library, frameworks call you.

這是我最近學到的一句話,提供給你參考。

Twitter avatar for @ethanhuang13
13.4 @ethanhuang13
最近讀到 "you call library, frameworks call you" 這句話,才在想這兩者的差異。 stackoverflow.com/a/233765 以 iOS 開發來說,原生的 API、RN、Flutter 是 frameworks。第三方套件工具,基本上都是 libraries。 不知道這樣理解是否到位。至少 UIKit 常常用 delegates 來 "call" 我是很有感覺啦🤣
stackoverflow.comWhat is the difference between a framework and a library?What is the difference between a framework and a library? I always thought of a library as a set of objects and functions that focuses on solving a particular problem or a specific area of applic...
5:32 AM ∙ Feb 13, 2020
29Likes5Retweets

try! Swift Tokyo 公告

最晚一週前會公告是否如期舉行,不過許多本來要去的台灣參加者都紛紛表示退票了(包括我)。

Twitter avatar for @tryswiftconf
try! Swift Tokyo @tryswiftconf
Announcement of Policy for Novel Coronavirus Infection - try! Swift Tokyo tryswifttokyo.hatenablog.com/entry/2020/02/… #tryswiftconf
tryswifttokyo.hatenablog.comAnnouncement of Policy for Novel Coronavirus Infection - try! Swift TokyoFeb. 14th Update: Who Refused to Entry Due to Novel Coronavirus Infection Following restrictions on entry into Japan by the Ministry of Foreign Affairs, the following conditions have been added. For the health management of all attendees, the following people are refused to entry the venue, regardle…
6:00 AM ∙ Feb 13, 2020
13Likes11Retweets

Library Evolution

Swift 官方 blog 最近有篇新文章談 library evolution。為了達到可以直接抽換掉 library,編譯器必須做很多不同的設定。

這個功能,一般 app 或是 app SDK 開發者是用不到的。

Twitter avatar for @SwiftLang
Swift Language @SwiftLang
The Swift.org blog has a new post on Swift 5.1 features that take binary stability even further.
swift.orgLibrary Evolution in SwiftSwift 5.0 introduced a stable binary interface on Apple platforms. This meant that apps built with the Swift 5.0 compiler can use the Swift runtime and standard library built into the operating system, and that existing apps will remain compatible with new versions of the Swift runtime in future ope…
10:14 PM ∙ Feb 13, 2020
118Likes37Retweets
Twitter avatar for @Cyberbeni
Benedek Kozma @Cyberbeni
@ethicalpaul @SwiftLang For example if you are making a kernel extension and a library that provides an API for it then your kernel extension and library will be updated separately from the apps that might use your library. That's when you need to enable library evolution support.
10:42 PM ∙ Feb 13, 2020
2Likes1Retweet

Xcode Keyboard Shortcuts

這個檔案可以印出來貼在螢幕旁邊之類的。

剛好最近也在整理類似的資料,它還少了幾個我覺得也很實用的快速鍵:

  • ⌃ + ⌘ + Click 跳到定義

  • ⌃ + ⌘ + [ or ] 切換 Scheme

  • ⌃ + ⌥ + ⌘ + [ or ] 切換執行裝置

  • ⌃ + ⌘ + R 跳過編譯直接執行

  • ⌃ + ⌥ + ⌘ + U 只跑目前游標所在測試項目

  • ⌃ + ⌥ + ⌘ + G 重跑上次範圍測試(TDD 時很好用)

  • ⌘ + . 停止執行

  • ⌘ + T 開新分頁

  • ⌃ + ⌘ + ← or → 上一頁、下一頁

  • ⌘ + ⇧ + [ or ] 左右切換分頁

  • ⌃ + ⌥ + ⌘ + F 全部修復

  • ⌃ + ⇧ + ↑ or ↓ or Click 多重遊標選取

  • ⌃ + \ 循環切換游標到編輯中的位置

  • ⌃ + A 跳到一行的開頭

  • ⌃ + K 刪掉這行游標之後的部分

  • ⌘ + ⌥ + P SwiftUI Preview 繼續執行

這樣列一列也不少了。等整理好我再一次分享吧。

HLS SDK 更新

有需要可上官網下載。

Twitter avatar for @hokilaJ
Hokila Jan @hokilaJ
原本只是要抓 11.4,不小心看到 FairPlay 放出來了,還有 low latency tool,今年 HLS 要爆發了嗎
Image
5:31 AM ∙ Feb 14, 2020
12Likes1Retweet

Xcode 11.4 可用模擬器測試 Push Notifications

上一期週報就有提到,不過看個 demo 印象比較深刻。

Twitter avatar for @airkai
Kai @airkai
Testing remote push notifications used to be a pain. With Xcode 11.4 you can just drag the payload into the simulator 👏d
Image
6:42 AM ∙ Feb 13, 2020
2,945Likes649Retweets

weak self podcast 25: 難道公司發大財了!?App Launch Time 加速面面觀

這集由波肥與喬喬聊聊:

  • 為什麼要加速 App Launch Time?

  • 什麼時候做?

  • 以及怎麼做?

  • 庫存已久的題目一次補完


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

Share this post

開發者週報 #27 連編導都嫌爛的鍵盤

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