13 報

Share this post

開發者週報 #153 Apple Pencil Tips

www.ethanhuang13.com

開發者週報 #153 Apple Pencil Tips

Apple/iOS 開發者的一週大小事 2022/08/15-2022/08/21

13
Aug 21, 2022
3
Share this post

開發者週報 #153 Apple Pencil Tips

www.ethanhuang13.com

13的話

本週的「素材」比平常少。藉機提醒一下讀者,如果你有寫什麼東西,想要在週報刊登、分享,請直接與我聯絡。

請大家多多支持我寫作。我想要累積到 100 位支持的讀者,目前的進度為 27%,請訂閱我的 Patreon!

(看前一期 · 回首頁)


🧪Beta 6

  • macOS 13 Ventura Beta 6

  • iOS 16 Beta 6

  • watchOS 9 Beta 6

  • tvOS 16 Beta 6

  • Xcode 14 Beta 5 沒更新到 Beta 6

🗝Process injection: breaking all macOS security layers with a single vulnerability

We reported this vulnerability to Apple, along with methods to use this vulnerability to escape the sandbox, elevate privileges to root and bypass the filesystem restrictions of SIP.

簡單來說,開發者能做的事情是在自己 Mac app 的 AppDelegate 中加上:

func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
  true
}

💪在 SwiftUI 中用 Text 实现图文混排──fatbobman

對我來說,解題式的文章,比介紹原理更有趣。

然後這邊有「下一題」的預告:

Twitter avatar for @fatbobman
fatbobman (东坡肘子) @fatbobman
在 Text 中实现基于关键字的搜索和定位 一个朋友在聊天室咨询如何在 SwiftUI 中实现上述需求。下周的博文,我们将探讨实现该功能的思路和方法。 有兴趣的朋友,可以先自行尝试一下。
12:04 AM ∙ Aug 19, 2022
34Likes1Retweet

🙈ScreenshotPreventing──yoxisem544

iOS 沒有內建阻止截圖的 API,以前常見的 workaround 之一是用播放 FairPlay DRM 的影片,據說 ScreenShieldKit 是用這個方式。

現在沒這麼麻煩了。

Twitter avatar for @yoxisem544
David Lin @yoxisem544
如果要 iOS 如果要擋 screenshot,可以把 view 丟到 textfield 上然後把 secure text entry 設成 true,然後就會發現該 view 在 screenshot 時會消失 在 github 上有發現一個 library 有做這件事,但問題有點多於是我就自己做一個了
github.comGitHub - yoxisem544/ScreenshotPreventing-iOS: prevent screenshot from iOS devicesprevent screenshot from iOS devices. Contribute to yoxisem544/ScreenshotPreventing-iOS development by creating an account on GitHub.
5:35 AM ∙ Aug 17, 2022
113Likes20Retweets

🍞小麥輸入法組字區無上限

推文串有點長,但有趣。

Twitter avatar for @McBopomofo
小麥注音輸入法 @McBopomofo
小麥注音 2.4 版取消了組字區字數上限。這是怎麼做到的?我們很少談論小麥的技術細節, 這次利用 Twitter 分享一下… <🧵> 1/15
1:47 AM ∙ Aug 16, 2022
191Likes44Retweets

(中間略)

Twitter avatar for @McBopomofo
小麥注音輸入法 @McBopomofo
於是我們重寫了這部份的程式。因為這是個 Θ(V + E) 演算法 (V 是節點數,E 是邊數),組字區就算放了幾百字,普通筆電也能在千分之一秒內計算完成。13/15
1:50 AM ∙ Aug 16, 2022
13Likes1Retweet

🎶chart-de-lune:用 Swift Charts 放音樂

其實是因為 Voice Over 支援用不同音高來表示線圖走勢。

同場加映:用 Swift Charts 來做展示排序演算法的動畫。

🤪Random Tweets

Twitter avatar for @VishalMalvi_
Vishal  @VishalMalvi_
Client + BA + Developer + Code = final product
12:03 PM ∙ Aug 17, 2022
768Likes187Retweets
Twitter avatar for @TheoShantonas
Theo @TheoShantonas
Teamwork 💪😂
2:19 PM ∙ Aug 17, 2022
10,858Likes1,794Retweets
Twitter avatar for @sarunw
Sarun W. @sarunw
Auto Layout in a nutshell.
1. Create a view.
2. Add it to a parent view and define all constraints.
3. Translates Auto resizing Mask Into Constraints = false
6:51 PM ∙ Aug 17, 2022
499Likes51Retweets
Twitter avatar for @ChristianSelig
Christian Selig @ChristianSelig
Wow that must be new. If you want to get better at using your Apple Pencil the Apple Store sells a little thing of handy tips!
A small white Apple box with an Apple Pencil depicted on it with the title “Apple Pencil Tips”
7:38 PM ∙ Aug 20, 2022
224Likes4Retweets

💼職缺/履歷交流區

  • Readmoo iOS Developer。以 Swift 為主

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


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

Share this post

開發者週報 #153 Apple Pencil Tips

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