Léo Natan 🇮🇱
banner
leonatan.bsky.social
Léo Natan 🇮🇱
@leonatan.bsky.social
macOS & iOS engineer • grumpy young man, yelling at clouds • disillusioned, burned-out cynic • not politically correct • https://twitter.com/LeoNatanhttps://mastodon.social/@LeoNatan

Ramat HaSharon, Israel
Can’t wait for you to meet the real world and all the “nazis” in it. 🤡
November 3, 2025 at 1:34 AM
Why is this private? 🙄🤡

So much of the glass is private voodoo, it feels like the heydays of iOS 7 blurs.
October 13, 2025 at 3:28 PM
So to enable and disable the effect, in my case, I need to track which header is pinned to the top, and call _setActive: on the interactions of the header views to only enable for the top one. I extended UICollectionViewLayoutAttributes with a fields for this.

And it works.
October 13, 2025 at 3:28 PM
If you create an _UIScrollPocketContainerInteraction instance and add it to the view, it actually works. But it creates an amusing effect where all glass effects are synchronized.
October 13, 2025 at 3:27 PM
Turns out there is a host of new, private, "interactions", one of which is _UIScrollPocketContainerInteraction, which manages the view's trait environment so that is adjusts child visual effects (using another "interaction").

What if you wanted the same behavior in your code?
October 13, 2025 at 3:25 PM
View hierarchy inspector doesn't reveal much. The two hierarchies are the same, but notice the header view is positioned under the scroll pocket in the custom layout "for some reason".
October 13, 2025 at 3:24 PM
The check for _isPhotosApp is just as retarded as you might expect; there is a hard-coded string of the Photos app bundle identifier and it's checked against the main bundle identifier.

BTW, you can Swizzle that function to return true, and then call the previously mentioned methods.
September 26, 2025 at 12:56 AM
Turns out, there are UITabBar._isMinimized, UITabBar._setMinimized: and UITabBar._setMinimizedStateDidChangeHandler:, which provide this valuable information. But if you call one of these methods, your app will crash. Notice the check for _isPhotosApp, or else raise an exception.
September 26, 2025 at 12:56 AM
If only all the "revolutionary, thought-provoking, under-platformed ideas" weren't stuck in the BlueSky bubble, calling everyone nazis, fascists, homophobes and/or transphobes.
September 25, 2025 at 2:59 PM
This is basically what the Adobe Project Indigo camera app is doing, but it also does computational photography. Results are not bad at all.
September 20, 2025 at 3:19 AM
Yeah, but it did stop the CSAM on device stuff, for example. But I doubt feedback was that strong.
September 19, 2025 at 9:51 AM
Perhaps feedback wasn't very good for a desktop OS.
September 19, 2025 at 12:57 AM
The first hurdle will be the corporate-owned machine being forced to update haha. I did try it very briefly on my iPad, and downgraded after a day and a half. It's really terrible.
September 19, 2025 at 12:50 AM
Who is Leon?
September 14, 2025 at 2:22 PM
That's "Mr. Faux News" to you, madam.
September 14, 2025 at 1:59 PM
Go welcome more muslams in Europe, that will work out great for you.
September 14, 2025 at 1:50 PM
Case in point of my “opinion”:

bsky.app/profile/edwi...

🤣
A Nazi is killed by another Nazi who didn't think the neo-Nazi was Nazi enough, and a bunch of liberals are crying over the Nazi killed by another Nazi.

The same ones who turn a blind eye to the genocide perpetrated by the ethno-state of Israel.

Cut a fascist and a liberal bleeds. They have sides.
September 14, 2025 at 1:42 PM
Or they opened their eyes and figured that whatever social media calls nazi or fascist is often not that, while a brigade of “liberal” loons tries to silence and shame into cancellation anything and anyone they disagree with. The pendulum swings, often unjustly at both ends.
September 14, 2025 at 7:31 AM
* for all of iOS and macOS

Certainly not just for Xcode.
September 1, 2025 at 1:22 PM
Yeah, keep posting arabs or muslams. Europe loves those. That’s why the far right is on such a rise there. We’ll just have to wait and see.
August 31, 2025 at 4:37 PM
We’ll just extra-judiciously assassinate their leaders. 🤣
August 31, 2025 at 3:46 PM
I defend killing of terrorist group leaders, for sure. To remind you, this is a thread about Houthi “prime minister” being assassinated. What else have I defended? All it would take to stop the war in gaza is Hamas to disarm and release the hostages.
August 31, 2025 at 3:16 AM
Yeah, dawg, you got me, I’m the one setting policy for Israel. I’m the prime minister, the chief of stuff and the minister of defense. After our heart to heart banter on Blasky, I will for sure make a change in the way the war is going.
August 31, 2025 at 2:19 AM