diff --git a/Sources/MobileSdk/ui/QRCodeScanner.swift b/Sources/MobileSdk/ui/QRCodeScanner.swift index 69cb744..d482223 100644 --- a/Sources/MobileSdk/ui/QRCodeScanner.swift +++ b/Sources/MobileSdk/ui/QRCodeScanner.swift @@ -83,7 +83,8 @@ public struct QRCodeScanner: View { @State private var qrOutput: AVCaptureMetadataOutput = .init() /// Camera QR Output delegate - @StateObject private var qrDelegate = QRScannerDelegate() + //@StateObject private var qrDelegate = QRScannerDelegate() // Requires iOS 14. + @ObservedObject private var qrDelegate = QRScannerDelegate() /// Scanned code @State private var scannedCode: String = "" diff --git a/Tests/MobileSdkTests/DataConversions.swift b/Tests/MobileSdkTests/DataConversions.swift index 5a29707..a348e64 100644 --- a/Tests/MobileSdkTests/DataConversions.swift +++ b/Tests/MobileSdkTests/DataConversions.swift @@ -6,7 +6,7 @@ // import XCTest -@testable import SpruceIDMobileSdk +@testable import MobileSdk final class DataConversions: XCTestCase { diff --git a/Tests/MobileSdkTests/StorageManager.swift b/Tests/MobileSdkTests/StorageManager.swift index 9eb4435..a68a6e5 100644 --- a/Tests/MobileSdkTests/StorageManager.swift +++ b/Tests/MobileSdkTests/StorageManager.swift @@ -1,8 +1,8 @@ -@testable import SpruceIDMobileSdk import XCTest +@testable import MobileSdk -final class StorageManager: XCTestCase { - func storage_test() throws { +final class StorageManagerTest: XCTestCase { + func testStorage() throws { let sm = StorageManager() let key = "test_key" let value = Data("Some random string of text. 😎".utf8) diff --git a/Tests/MobileSdkTests/lib.swift b/Tests/MobileSdkTests/lib.swift index 534ab79..72c39fa 100644 --- a/Tests/MobileSdkTests/lib.swift +++ b/Tests/MobileSdkTests/lib.swift @@ -1,2 +1,2 @@ import XCTest -@testable import SpruceIDMobileSdk +@testable import MobileSdk