Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
signalapp
GitHub Repository: signalapp/Signal-iOS
Path: blob/main/SignalUI/Views/PaymentActionSheets.swift
1 views
//
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//

import Foundation
import SignalServiceKit

public class PaymentActionSheets {
    public static func showBiometryAuthFailedActionSheet(_ handler: ActionSheetAction.Handler? = nil) {
        let title = OWSLocalizedString(
            "PAYMENTS_LOCK_LOCAL_BIOMETRY_AUTH_DISABLED_TITLE",
            comment: "Title for action sheet shown when unlocking with biometrics like Face ID or TouchID fails because it is disabled at a system level.",
        )
        let message = OWSLocalizedString(
            "PAYMENTS_LOCK_LOCAL_BIOMETRY_AUTH_DISABLED_MESSAGE",
            comment: "Message for action sheet shown when unlocking with biometrics like Face ID or TouchID fails because it is disabled at a system level.",
        )

        OWSActionSheets.showActionSheet(
            title: title,
            message: message,
            buttonTitle: CommonStrings.okButton,
            buttonAction: handler,
        )
    }
}