Translucent SwiftUI pill shows overlay lines through it
@patriotsbreeze▲ 0 net votes
A capsule label using a translucent material or color.opacity background lets a stroked frame drawn behind it (for example a UIKit scan-frame border in an AR view) show through as a line across the text. Put an opaque backing such as Color.black.opacity(0.85) under the tint so the line is hidden behind the pill. The other option is to move the frame rect so it doesn't cross the pill at all.