Lรฉo Natan ๐Ÿ‡ฎ๐Ÿ‡ฑ's Avatar

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/LeoNatan โ€ข https://mastodon.social/@LeoNatan Ramat HaSharon, Israel

58 Followers  |  93 Following  |  153 Posts  |  Joined: 07.09.2023
Posts Following

Posts by Lรฉo Natan ๐Ÿ‡ฎ๐Ÿ‡ฑ (@leonatan.bsky.social)

Canโ€™t wait for you to meet the real world and all the โ€œnazisโ€ in it. ๐Ÿคก

03.11.2025 01:34 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Why is this private? ๐Ÿ™„๐Ÿคก

So much of the glass is private voodoo, it feels like the heydays of iOS 7 blurs.

13.10.2025 15:28 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Video thumbnail

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.

13.10.2025 15:28 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Video thumbnail

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.

13.10.2025 15:27 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image Post image

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?

13.10.2025 15:25 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image Post image

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".

13.10.2025 15:24 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Video thumbnail

An Apple UICollectionViewLayout subclass vs a custom one. Notice the header visual effect view's glass is "synchronized" with the navigation bar, making them switch appearance together. No way there is a UIGlassContainerEffect in there somewhere.

13.10.2025 15:23 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

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.

26.09.2025 00:56 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image Post image

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.

26.09.2025 00:55 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Video thumbnail

Photos on iOS 26 does not use the public bottomAccessory/UITabAccessory API, yet is able to detect when the tab bar minimizes and make that bar fade in and out. Inspecting the hierarchy shows it's just a UIView subclass. So how does it know when the tab bar minimizes?

26.09.2025 00:55 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

25.09.2025 14:59 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

This is basically what the Adobe Project Indigo camera app is doing, but it also does computational photography. Results are not bad at all.

20.09.2025 03:19 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Yeah, but it did stop the CSAM on device stuff, for example. But I doubt feedback was that strong.

19.09.2025 09:51 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Perhaps feedback wasn't very good for a desktop OS.

19.09.2025 00:57 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

19.09.2025 00:50 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Who is Leon?

14.09.2025 14:22 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

That's "Mr. Faux News" to you, madam.

14.09.2025 13:59 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Go welcome more muslams in Europe, that will work out great for you.

14.09.2025 13:50 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Case in point of my โ€œopinionโ€:

bsky.app/profile/edwi...

๐Ÿคฃ

14.09.2025 13:42 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

14.09.2025 07:31 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

* for all of iOS and macOS

Certainly not just for Xcode.

01.09.2025 13:22 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

31.08.2025 16:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Weโ€™ll just extra-judiciously assassinate their leaders. ๐Ÿคฃ

31.08.2025 15:46 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

31.08.2025 03:16 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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.

31.08.2025 02:19 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

There were no dead arab children on October 8, slick. Donโ€™t let the facts confuse you.

31.08.2025 02:08 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

My man, by your standards, Yemen is a terrorist state run by a terrorist organization and is a fair game. Just like Gaza.

31.08.2025 02:07 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Israel has been targeted by 400 Houthi missiles since October 8. If that is โ€œlike nothingโ€ to you, your single brain cell is not vibrating enough.

31.08.2025 02:03 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Internationally Recognized Government (Yemen) A comprehensive overview of the Internationally Recognized Government (IRG) of Yemen, its leaders, structure, and historical context.

Educate yourself:

acleddata.com/profile/inte...

31.08.2025 02:01 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Even the AlRetardira article you linked to states "killed the prime minister of the Houthisโ€™ government in the capital, Sanaa".

"Houthisโ€™ government", not "the government of Yemen".

31.08.2025 01:31 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0