ScannerSection

@MainActor
struct ScannerSection : View

This view is related to QR scanner where it draws the square on top of the camera

  • Declaration

    Swift

    @MainActor
    var body: some View { get }
  • This function is used to draw the corners of the QR scanner

    Declaration

    Swift

    @MainActor
    private func createCornersPath(
        left: CGFloat,
        top: CGFloat,
        right: CGFloat,
        bottom: CGFloat,
        cornerRadius: CGFloat,
        cornerLength: CGFloat
    ) -> Path