Skip to content

Commit

Permalink
Add "what is" above number
Browse files Browse the repository at this point in the history
  • Loading branch information
hungrxyz committed Oct 31, 2020
1 parent ea37552 commit 8dd962e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Infected/RowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ struct RowView: View {
.font(.system(.headline, design: .rounded))
.foregroundColor(.secondary)
VStack(alignment: .leading) {
Text("New")
.font(Font.subheadline.bold())
.foregroundColor(.secondary)
HStack(alignment: .lastTextBaseline) {
Text(Self.numberFormatter.string(for: dailyNumber) ?? "--")
.font(.system(.title, design: .rounded)).bold()
TrendNumberView(trendNumber: trendNumber)
Spacer()
}
Text("New")
.font(.footnote)
.foregroundColor(.secondary)
}
VStack(alignment: .leading) {
Text(Self.numberFormatter.string(for: totalNumber) ?? "--")
.font(.system(.title, design: .rounded)).bold()
Text("Total")
.font(.footnote)
.font(Font.subheadline.bold())
.foregroundColor(.secondary)
Text(Self.numberFormatter.string(for: totalNumber) ?? "--")
.font(.system(.title, design: .rounded)).bold()
}
}
.padding(.vertical, 8)
Expand Down
6 changes: 3 additions & 3 deletions InfectedWidget/InfectedWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ struct InfectedWidgetEntryView : View {

var body: some View {
VStack(alignment: .leading) {
Text(kindText)
.font(.system(size: 12, weight: .regular))
.foregroundColor(.secondary)
HStack(alignment: .lastTextBaseline, spacing: 4) {
Text(Self.numberFormatter.string(for: latestNumber) ?? "--")
.font(.system(size: 18, weight: .bold, design: .rounded))
Expand All @@ -122,9 +125,6 @@ struct InfectedWidgetEntryView : View {
.font(.system(size: 13, weight: .bold, design: .rounded))
.foregroundColor(trendNumber.color)
}
Text(kindText)
.font(.system(size: 13, weight: .regular))
.foregroundColor(.secondary)
}
}

Expand Down

0 comments on commit 8dd962e

Please sign in to comment.