
▲ 3 r/SwiftUI
Hi everyone! Now that iOS 26 is the standard, I’m trying to nail the specific "Liquid Glass" look for a custom project. I’m focusing on the floating navigation dock and the timeline slider seen in the native Photos app.
I have two main challenges I’m hoping the community can help with:
- Refractive Depth: In Screenshot 2026-04-27 at 06.22.22.png, you can see the way the background content distorts slightly behind the pill. I'm using the new
.tabViewBottomAccessorywith.glassBackgroundEffect(), but it doesn't quite capture that "optical lens" feel. Does anyone have the rightrefractionIndexparameters? - The Dock Transition: When switching views as shown in Screenshot 2026-04-27 at 21.36.27.png, the dock expands and contracts with a very specific elastic curve. I’m trying to use the
Spring.smooth(duration: 0.5)preset, but it feels a bit "stiff" compared to the system animation. - Adaptive Haptics: How are you guys linking the
sensoryFeedbackto the newLiquidSlidercomponent to get that "magnetic" click when the thumb snaps to "Years" or "Months"?
I’ve attached my current screenshots for reference. If anyone has managed to deconstruct the exact layer.compositingFilterApple is using for the inner glow, I’d be forever grateful!
Thanks!
u/Le_Chicotbabet — 15 days ago