How Bluesky draws its logo on screenshots
摘要
作者发现截图时 Bluesky 帖子右下角会出现 logo,而正常使用时该位置是 “Follow” 按钮,于是翻阅开源的 Bluesky 代码,找到答案:一个名为 GrowthHack.tsx 的文件(2026 年 1 月由 mozzius 引入)依赖 expo-privacy-sensitive 包,该包在 iOS 上创建一个设置了 isSecureTextEntry 的 UITextField,把真实内容渲染进其 layer,截图时 iOS 会清空该 layer,露出底下的 logo;其他平台则直接渲染。作者猜测应用切换时截图不生效是因为 iOS 在手势开始时拍了快照、没有触发遮蔽。文中还提到 Telegram 和 Signal 用过类似技巧,并引用了社区对该做法(滥用隐私 API 还是巧妙技巧)的争议。
荐读理由
文中揭示的用 UITextField 的 isSecureTextEntry 隐藏 UI 元素的技巧可直接抄进你的 iOS 项目,实现截图时替换界面内容
原文
Sometimes I take a screenshot of a post I like, either to send it to friends/meme channel or to save a “durable” copy. Like this one (I’ve cropped out the rest of the interface):

Original, if you want to reskeet it
I noticed the Bluesky logo in the right corner and thought that it was weird that the logo doesn’t bother me when I use the app. Then I looked at the post in the app again—logo wasn’t there, replaced by the “Follow” button.
I remembered that a few apps hide their logo where the iPhone notch is, so that it doesn’t stick out, unless you take a screenshot. But here the logo is placed in the open, so how do they do it?
I tried to take another screenshot, this time mid-switching to the other app:

The “Follow” button is visible when I take the screenshot mid-switch.
Did they somehow set up a listener for two buttons I’m pressing to take a screenshot and do a switcheroo at the last moment? I’m not an iOS developer, so I’m not sure what’s possible and what is not over there.
At this point I was mildly intrigued. Thankfully, I remembered that Bluesky app is open source (or at least the code is available to look at).
The answer was in the file literally called GrowthHack.tsx , introduced in January 2026 by mozzius. But it merely used a dependency, so to understand I looked into package expo-privacy-sensitive, also by them.
The package creates UITextField with isSecureTextEntry property set to true and renders the actual content (the button) into that field’s .layer. When I take the screenshot, iOS hides this UITextField by blanking the layer, allowing the Bluesky logo to flutter its wings through (it was here the whooole time). For other platforms it simply renders content as-is, without masking.
Why doesn’t it work when I switch between the apps? I suppose that iOS takes a snapshot itself at the start of the gesture (without triggering blanking), and when I do a screenshot, there is no live UITextField instance to react to that, only the inert snapshot. But once again, I’m not an iOS developer.
Nifty trick or an abuse of API meant for privacy? The people in the thread adding the behavior mostly didn’t like it, before the thread got locked. I think it’s cute.
I googled a bit, and the trick is well-known. Telegram implemented similar thing for its "secret" chats, as did Signal, so I don’t expect it to be patched by Apple any time soon.
这条对你有帮助吗?