ビスター(Vistar)
@Lmssync
Followers
729
Following
4K
Media
208
Statuses
1K
UIKit SwiftUI Exploring Internals
Apple Ecosystem
Joined February 2024
If you simply want this effect, SUI List should achieve it. Recreating the animation precisely from scratch with a custom SUI component is likely difficult, it is considered.
1
0
5
In iOS 26, UICollectionView now animates its selection changes with a refined draw-on effect, using different animation APIs before and after selection. Pure SwiftUI can’t fully replicate this animation when implemented from scratch, but it’s achievable via UIKit.
2
2
131
Hey SwiftUI folks 👀 Why does strokeBorder() insist on using the full width, unlike stroke()? Kinda curious why they behave so differently
6
2
41
I figured out the cause. These new haptics are supported only on visionOS.
0
0
0
SensoryFeedback on iOS generally builds on UIFeedbackGenerator, but the types using the newly added structs do not appear to call any UIFeedbackGenerator init. Maybe the underlying implementation changed quite a bit.
2
0
2
SwiftUI SensoryFeedback on OS 26 gains ten new options not exposed in UIKit. Some are niche and useful for custom components like .release(.slider). Three new structs appear: PressFeedback, ReleaseFeedback, SelectionFeedback. https://t.co/Jp6X2cIz1O
developer.apple.com
Represents a type of haptic and/or audio feedback that can be played.
3
10
100
When using list footers, this will likely be needed… [UITextView setSelectable:YES] [UITextView _setInteractiveTextSelectionDisabled:YES]
0
0
3
Although _UIOverlayEffect is a private type of UIVisualEffect, a similar effect might be achievable using only public APIs by applying .blendMode(.plusLighter) in SwiftUI.
0
0
9
Apple’s Journal app adds a CAFilter to the background of EntryCollectionView cells in Dark Mode. Internally, it uses _UIOverlayEffect to apply a plusLighter filter with 5% opacity white, allowing the background to achieve optimal brightness even when gradients are present.
2
2
85
SectionIndexLabel abstracts the Text for index labels, and SectionIndexLabelKey stores them as ViewGraph traits. These types exist from iOS 18+. To inject them manually, you must change their access levels in the swiftinterface. Public API:
developer.apple.com
Sets the label that is used in a section index to point to this section, typically only a single character long.
0
1
9
iOS 26+ adds native Section Index support to SwiftUI List. Labels use “SectionIndexLabel” and are stored via “SectionIndexLabelKey” as ViewGraph traits. You can manually inject this on iOS 18+, but long labels aren’t fully supported.
5
3
123
Apps in categories like health, fitness, AI assistants, outdoor, and productivity—not just emergency support or messaging—will be able to support hygiene data communication starting with iOS 26 by adding a new entitlement. This is a major step forward! https://t.co/nZGqDGzPHd
developer.apple.com
Prepare to deliver data over resource-limited data networks.
1
3
91
If you don’t mind using Private API, set "showsMenuFromSource" to true via KVC on UIButton. 👈 false (default) true 👉
Hey @SebJVidal , was having a hard time recreating this effect in UIKit, when setting a menu and showsMenuAsPrimaryAction to a UIButton the button morphs into the menu, and I couldn't find any API to disable that. Can you help?
2
7
84
Noticed that "_CircleLayout", present since the early SwiftUI days, is gone 🤔 Seems it disappeared around iOS 17 (still there in iOS 16).
0
1
24
在 SwiftUI 的众多 API 中,`.ignoredByLayout()` 像一位“沉默的高手”。资料稀缺,用途不显眼。但它究竟何时出场?又究竟“忽略”了哪些秘密?本文将为你揭开这个 SwiftUI 布局机制中微妙 API 的神秘面纱。 https://t.co/6da4D0tlkv
0
0
1
The distortion likely results from a bug in the Glass implementation. You can fix it by preventing the Glass from receiving geometry information — just use .ignoredByLayout().
I have no idea why the height of these buttons are increasing when using .glass or .glassProminent and I haven't figured out how to stop it. Using .fixedSize() doesnt help, and setting a frame doesnt help either. ❌Video 1: Glass buttons ✅Video 2: Bordered buttons ❌Video 3:
3
5
116
I’m kind of intrigued by the new Tinted look, but the Notification Center feels disappointing… It looks a bit outdated. https://t.co/huP6FF7gnR
0
0
3