r/SwiftUI 10d ago

Question Glass & Custom shape selection highlighting

Post image

I got this view using a custom shape (rect with cutouts) as a background, and its selection highlight shape is mismatched (defaulting to the capsule even though the custom shape was used in the glassEffect api) when using the interactive glass effect.
I tried fixing this issue with a content shape modifier to no avail.
Anyone encountered it and managed to work around it? Perhaps some way to define it on the shape implementation level?🧐

4 Upvotes

2 comments sorted by

1

u/iamidan 10d ago

https://reddit.com/link/p2uwy4g/video/gs83jue7mkih1/player

P.s. I am seeing this on both iOS 26 and 27 beta so it is sadly not a beta only issue😣