From efafd26c183c11224d3344b1254cdc9a37ae8c7c Mon Sep 17 00:00:00 2001 From: Ian Dundas Date: Thu, 22 Jul 2021 14:08:47 +0200 Subject: [PATCH] Delete CardFooterView Signed-off-by: Ian Dundas --- .../HolderDashboardViewController.swift | 8 ---- .../Dashboard/Views/CardFooterView.swift | 48 ------------------- 2 files changed, 56 deletions(-) delete mode 100644 Sources/CTR/Interface/Holder/Dashboard/Views/CardFooterView.swift diff --git a/Sources/CTR/Interface/Holder/Dashboard/HolderDashboardViewController.swift b/Sources/CTR/Interface/Holder/Dashboard/HolderDashboardViewController.swift index bbdda8b7e..f1fdbf831 100644 --- a/Sources/CTR/Interface/Holder/Dashboard/HolderDashboardViewController.swift +++ b/Sources/CTR/Interface/Holder/Dashboard/HolderDashboardViewController.swift @@ -27,8 +27,6 @@ class HolderDashboardViewController: BaseViewController { case europeanUnionQR(rows: [QRCardRow], isLoading: Bool, didTapViewQR: () -> Void, buttonEnabledEvaluator: (Date) -> Bool, expiryCountdownEvaluator: ((Date) -> String?)?) - case cardFooter(message: String) - case errorMessage(message: String, didTapTryAgain: () -> Void) } @@ -161,12 +159,6 @@ class HolderDashboardViewController: BaseViewController { return qrCard - case let .cardFooter(message): - - let cardFooterView = CardFooterView() - cardFooterView.title = message - return cardFooterView - case let .errorMessage(message, didTapTryAgain): let errorView = ErrorDashboardView() diff --git a/Sources/CTR/Interface/Holder/Dashboard/Views/CardFooterView.swift b/Sources/CTR/Interface/Holder/Dashboard/Views/CardFooterView.swift deleted file mode 100644 index 494ee2bb3..000000000 --- a/Sources/CTR/Interface/Holder/Dashboard/Views/CardFooterView.swift +++ /dev/null @@ -1,48 +0,0 @@ -/* -* Copyright (c) 2021 De Staat der Nederlanden, Ministerie van Volksgezondheid, Welzijn en Sport. -* Licensed under the EUROPEAN UNION PUBLIC LICENCE v. 1.2 -* -* SPDX-License-Identifier: EUPL-1.2 -*/ - -import UIKit - -/// Can be deleted once EU launch date is past -class CardFooterView: BaseView { - - private let titleLabel: Label = { - let label = Label(subhead: nil, textColor: Theme.colors.grey1) - label.numberOfLines = 0 - - return label - }() - - // MARK: - Lifecycle - - /// Setup the hierarchy - override func setupViewHierarchy() { - - super.setupViewHierarchy() - - addSubview(titleLabel) - } - - /// Setup the constraints - override func setupViewConstraints() { - - super.setupViewConstraints() - - NSLayoutConstraint.activate([ - titleLabel.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 0), - titleLabel.trailingAnchor.constraint(equalTo: trailingAnchor, constant: 0), - titleLabel.topAnchor.constraint(equalTo: topAnchor), - titleLabel.bottomAnchor.constraint(equalTo: bottomAnchor) - ]) - } - - var title: String? { - didSet { - titleLabel.text = title - } - } -}