Skip to content

Commit

Permalink
Make QRScannerView protocol @mainactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ubfelix committed Oct 4, 2024
1 parent 7593c63 commit 4f75984
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/UBQRScanner/QRScannerViewDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Foundation

/// Protocol for a delegate that receives events from the `QRScannerView`,
/// like successfully scanned codes or errors
@MainActor
public protocol QRScannerViewDelegate: AnyObject {
func qrScanningDidFailWithError(_ error: QRScannerError)
// if true is returned no more codes will be passed to this delegate from the current frame
Expand Down

0 comments on commit 4f75984

Please sign in to comment.