Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public struct PaymentReviewStrings {
public let closeButtonAccessibilityHint: String
public let sheetGrabberAccessibilityLabel: String
public let sheetGrabberAccessibilityHint: String
public let paymentReviewScreenTitle: String

public init(alertOkButtonTitle: String,
infoBarMessage: String,
Expand All @@ -75,7 +76,8 @@ public struct PaymentReviewStrings {
closeButtonAccessibilityLabel: String,
closeButtonAccessibilityHint: String,
sheetGrabberAccessibilityLabel: String,
sheetGrabberAccessibilityHint: String) {
sheetGrabberAccessibilityHint: String,
paymentReviewScreenTitle: String) {
self.alertOkButtonTitle = alertOkButtonTitle
self.infoBarMessage = infoBarMessage
self.defaultErrorMessage = defaultErrorMessage
Expand All @@ -85,5 +87,6 @@ public struct PaymentReviewStrings {
self.closeButtonAccessibilityHint = closeButtonAccessibilityHint
self.sheetGrabberAccessibilityLabel = sheetGrabberAccessibilityLabel
self.sheetGrabberAccessibilityHint = sheetGrabberAccessibilityHint
self.paymentReviewScreenTitle = paymentReviewScreenTitle
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,19 @@ public final class PaymentReviewViewController: UIHostingController<PaymentRevie
}

private func setupNavigationBar() {
guard model.showPaymentReviewCloseButton,
model.displayMode == .documentCollection else { return }

guard model.displayMode == .documentCollection else { return }

navigationItem.title = model.strings.paymentReviewScreenTitle

guard model.showPaymentReviewCloseButton else { return }

let closeImage = model.configuration.paymentReviewClose.withRenderingMode(.alwaysTemplate)
let closeButton = UIBarButtonItem(image: closeImage,
style: .plain,
target: self,
action: #selector(closeButtonTapped))

closeButton.accessibilityLabel = model.strings.closeButtonAccessibilityLabel
closeButton.accessibilityHint = model.strings.closeButtonAccessibilityHint
closeButton.accessibilityHint = model.strings.closeButtonAccessibilityHint
navigationItem.rightBarButtonItem = closeButton
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ extension GiniHealth: PaymentComponentsStringsProvider {
sheetGrabberAccessibilityLabel: NSLocalizedStringPreferredFormat("gini.health.bottomSheet.grabber.accessibility.label",
comment: "Sheet grabber accessibility label"),
sheetGrabberAccessibilityHint: NSLocalizedStringPreferredFormat("gini.health.bottomSheet.grabber.accessibility.hint",
comment: "Sheet grabber accessibility hint text")
comment: "Sheet grabber accessibility hint text"),
paymentReviewScreenTitle: NSLocalizedStringPreferredFormat("gini.health.reviewscreen.title",
comment: "navigation bar title for payment review screen")
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2024 Gini GmbH. All rights reserved.

*/
"gini.health.reviewscreen.title" = "";
"gini.health.alert.ok.title" = "OK";
"gini.health.close.button.accessibility.label" = "Schließen";
"gini.health.close.button.accessibility.hint" = "Tippen zum Schließen";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2024 Gini GmbH. All rights reserved.

*/
"gini.health.reviewscreen.title" = "";
"gini.health.reviewscreen.recipient.placeholder" = "Recipient";
"gini.health.reviewscreen.iban.placeholder" = "IBAN";
"gini.health.reviewscreen.amount.placeholder" = "Amount";
Expand Down
Loading