我的要求是在4个角线内显示二维码,扫描二维码完成。目前.overlay( RoundedRectangle 显示完整边框,但我需要在下面画一个,有什么想法吗?
CodeScannerView(codeTypes: [.qr], simulatedData: "Some simulated data", completion: self.handleScan)
.padding(.horizontal, 40)
.cornerRadius(35)
.overlay(
RoundedRectangle(cornerRadius: 20)
.stroke(Color.yellow, lineWidth: 5)
)
.frame(width: 350, height: 250)
.padding(.bottom , 50)```
Run Code Online (Sandbox Code Playgroud)