ビスター(Vistar) (@vistar941) header
ビスター(Vistar) (@vistar941) profile picture

Exploring Cocoa Touch Internals

Joined February 2024
Photo by ビスター(Vistar) (@vistar941)Photo by ビスター(Vistar) (@vistar941)Photo by ビスター(Vistar) (@vistar941)Photo by ビスター(Vistar) (@vistar941)Photo by ビスター(Vistar) (@vistar941)Photo by ビスター(Vistar) (@vistar941)Photo by ビスター(Vistar) (@vistar941)Photo by ビスター(Vistar) (@vistar941)Photo by ビスター(Vistar) (@vistar941)Photo by ビスター(Vistar) (@vistar941)
New SwiftUI API in OS 27.3! Control whether scrolling locks to one axis per gesture in views that scroll both ways. Could be useful for spreadsheet apps? 🤔 developer.apple.com/document…
8
7
1
55
6,685
I’m not sure I like the idea of the user’s glass tint setting affecting the scroll edge effect, but switching to Soft Edge seems like a step in the right direction.
They heard the feedback: Apple is testing the return of iOS 26’s softer scroll-edge effect in navigation bars when glass tint is set to 25% or lower. Currently disabled behind UIKit/clear_glass_soft_pocket. Applies to the default/auto style.
1
1
73
5,821
Starting in iOS 27.3, the Siri app introduces a new design pattern with a tab bar between two buttons when Recaps is enabled The Compose button is not a prominent tab. This layout can be achieved by embedding a UITabBar in a toolbar and applying a few SPIs!
8
22
5
566
44,530
I guess I/O → External Displays still hasn’t been implemented in Device Hub, right? Why would they replace Simulator App with something that removes so much GUI functionality? 🙄
2
8
1,354
A new private SPI in SwiftUI! TextSelectionGroupModifier merges selection across multiple Text views. `.textSelection` can exclude parts, while other SPIs customize selection order and copied text.
6
8
2
121
13,358
The video shows the v2 behavior on iOS 27.2+. SwiftUI’s internal NSTextSelectionDataSource handles things like retrieving selection ranges. Wonder if we’ll see something about text selection at next year’s WWDC 🤔
3
751
The LazyLayout protocol is one of the features developers have been asking for, and it’s already being used in production by system apps. If it becomes public in the next major release, SwiftUI will definitely be moving in the right direction!
6
7
112
6,164
LazyToolbarLayout: LazyLayout_V1
1
1
344
When Face ID stopped working for me, I couldn’t open the Passwords app or access my passes in Wallet. Apparently, the private LAPolicy (LBDeviceOwnerAuthentication, 1025) allows fallback authentication in familiar locations when DTO is enabled.
5
770
ビスター(Vistar) retweeted
I’ll wait a bit before thinking about a new phone.
73
52
20
1,201
220,888
Apple has updated the CarPlay docs. HomeView supports two app categories: audio apps and video apps 👀 developer.apple.com/download…
Looks like Widgets and CarPlay are the 3rd party developer story for HomeView: developer.apple.com/support/…
3
5
2
77
8,956
On iPhone Duo, the layout margin on the side adjacent to the Vertical Bar is 0pt, resulting in asymmetric left and right margins. UIKit’s layoutMarginsGuide handles this automatically, but in SwiftUI, use .contentMargins(for: .container) on iOS 27.1+. More in the replies...
5
18
4
303
20,791
Also, SwiftUI views like List and Form, which use UIKit platform views under the hood, automatically handle these issues internally.
1
2
811
Interestingly, these margins seem to be derived from UIView._contentMargins on the hosting view 😶
1
725
If you’re prepared to build a custom Vertical Bar for iPhone Duo instead of using the system toolbar, Mobile Safari is a great reference. It handles its own layout and uses UIButtons, after all 😉
1
1
51
3,376
ビスター(Vistar) retweeted
some more iOS dev pro tips: - if a method is deprecated, that means apple finished working on it. it's actually more stable. - if the main thread becomes slow, create a second main thread. - if a view isn't appearing, set its zPosition to infinity. that's what infinity is for.
remember: if a method has a double underscore prefix, they cancel each other out and you can treat them as public API
12
26
3
733
41,322
It’s interesting how the physics of Liquid Glass differ between OS versions. There’s a pretty big difference when LensView moves from right to left🫧
10
5
1
288
27,256