This repository has been archived by the owner on Jun 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- In preparation of the app End of Life, check the configuration response for the EOL status and when it has been reached, clean up all exposure data, reset notifications and turn of the EN API and background checks - New screen that will be displayed after EOL instead of the normal UI - Onboarding flow also reflects to Dynamic Type changes in real time Co-authored-by: Henry Jalonen <henry.jalonen@solita.fi>
- Loading branch information
Showing
16 changed files
with
245 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
Koronavilkku/Koronavilkku/UI/Components/StatisticsCard.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import UIKit | ||
|
||
final class StatisticsCard: CardElement { | ||
init(title: String, body: String) { | ||
super.init() | ||
|
||
let titleView = UILabel(label: title, font: .heading2, color: .Primary.blue) | ||
titleView.numberOfLines = 0 | ||
|
||
let bodyView = UILabel(label: body, font: .bodySmall, color: .Greyscale.black) | ||
bodyView.numberOfLines = 0 | ||
|
||
if #available(iOS 14.0, *) { | ||
titleView.lineBreakStrategy = .hangulWordPriority | ||
bodyView.lineBreakStrategy = .hangulWordPriority | ||
} | ||
|
||
addSubview(titleView) | ||
addSubview(bodyView) | ||
|
||
titleView.snp.makeConstraints { make in | ||
make.top.left.right.equalToSuperview().inset(20) | ||
} | ||
|
||
bodyView.snp.makeConstraints { make in | ||
make.top.equalTo(titleView.snp.bottom) | ||
make.bottom.left.right.equalToSuperview().inset(20) | ||
} | ||
|
||
isAccessibilityElement = true | ||
accessibilityLabel = "\(title) \(body)" | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
} |
Oops, something went wrong.