ビスター(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)
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
7
1,188
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
1
121
12,286
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 🤔
2
631
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
6
108
5,986
LazyToolbarLayout: LazyLayout_V1
108
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
696
ビスター(Vistar) retweeted
I’ll wait a bit before thinking about a new phone.
74
52
20
1,203
219,693
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,881
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
302
20,677
Also, SwiftUI views like List and Form, which use UIKit platform views under the hood, automatically handle these issues internally.
1
2
802
Interestingly, these margins seem to be derived from UIView._contentMargins on the hosting view 😶
1
716
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
50
3,330
ビスター(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
735
41,293
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
286
27,210
Unfortunately, iOS 27 changed ToolbarKeyboardAssistant to route keyboard positioning through SwiftUI layout, causing sync delays during height changes. The synchronization on iOS 26.x was beautiful… 😢 nitter.cf/vistar941/status/20763…
9
10
2
138
15,664