//
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//

import Foundation
import SignalUI
import UIKit

/// A generator producing unstyled QR codes for display in the app.
///
/// The QR codes are unscaled and have a dark foreground over a transparent
/// background.
class BasicDisplayQRCodeGenerator: QRCodeGenerator {
    func generateQRCode(data: Data) -> UIImage? {
        return generateQRCode(
            data: data,
            foregroundColor: Theme.lightThemePrimaryColor,
            backgroundColor: .clear,
            imageScale: nil
        )
    }
}
