Skip to content

Commit 2e97f0f

Browse files
committed
Update forecast row typography
1 parent 5afa4c8 commit 2e97f0f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

WeatherApp/Features/Forecast/Views/ForecastRowView.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ struct ForecastRowView: View {
44
let day: ForecastDay
55

66
var body: some View {
7-
HStack(spacing: 16) {
7+
HStack(alignment: .bottom, spacing: 16) {
88
VStack(alignment: .leading, spacing: 14) {
9+
//Weather card title
910
Text(ForecastPresentationFormatter.weekdayString(from: day.date))
10-
.font(.title3.weight(.semibold))
11+
.font(.custom("Poppins-Bold", size: 16))
12+
.lineSpacing(8)
1113
.foregroundStyle(.black.opacity(0.88))
1214

1315
Image(systemName: day.condition.sfSymbolName)
@@ -16,10 +18,13 @@ struct ForecastRowView: View {
1618
}
1719

1820
Spacer()
19-
21+
22+
//Weather temperature
2023
Text(ForecastPresentationFormatter.temperatureString(celsius: day.temperatureCelsius))
21-
.font(.system(size: 30, weight: .bold, design: .rounded))
24+
.font(.custom("Poppins-SemiBold", size: 36))
25+
.lineSpacing(8)
2226
.foregroundStyle(.black.opacity(0.9))
27+
.frame(maxHeight: .infinity, alignment: .bottom)
2328
}
2429
.padding(.horizontal, 18)
2530
.padding(.vertical, 20)

WeatherApp/Info.plist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<dict>
55
<key>UIAppFonts</key>
66
<array>
7+
<string>Poppins-SemiBold.ttf</string>
78
<string>Poppins-Black.ttf</string>
89
</array>
910
</dict>

0 commit comments

Comments
 (0)