From 6f4491aed69e115b52d2ec81f14498e7b1147649 Mon Sep 17 00:00:00 2001 From: Krystof Date: Wed, 13 Nov 2024 00:52:20 +0100 Subject: [PATCH] refactor(watchOS): bold text in departure list --- apps/mobile/metro-now/common/managers/network-manager.swift | 2 +- .../metro-now Watch App/pages/stop/list-item.view.swift | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/mobile/metro-now/common/managers/network-manager.swift b/apps/mobile/metro-now/common/managers/network-manager.swift index 0a23bb3c..a37e16ae 100644 --- a/apps/mobile/metro-now/common/managers/network-manager.swift +++ b/apps/mobile/metro-now/common/managers/network-manager.swift @@ -110,7 +110,7 @@ final class NetworkManager { let url = baseUrl .appending(queryItems: stopsQueryParams + platformsQueryParams + [ - // URLQueryItem(name: "metroOnly", value: "true"), + URLQueryItem(name: "metroOnly", value: "true"), ]) let task = URLSession.shared.dataTask( diff --git a/apps/mobile/metro-now/metro-now Watch App/pages/stop/list-item.view.swift b/apps/mobile/metro-now/metro-now Watch App/pages/stop/list-item.view.swift index de3e39ec..d9df2011 100644 --- a/apps/mobile/metro-now/metro-now Watch App/pages/stop/list-item.view.swift +++ b/apps/mobile/metro-now/metro-now Watch App/pages/stop/list-item.view.swift @@ -34,6 +34,7 @@ struct StopDepartureListItemView: View { CountdownView(targetDate: departure) } + .fontWeight(.bold) if let nextHeadsign, let nextDeparture { HStack { if nextHeadsign != headsign { @@ -43,6 +44,7 @@ struct StopDepartureListItemView: View { CountdownView(targetDate: nextDeparture) { nextHeadsign == headsign ? "also in \($0)" : $0 } + .fontWeight(.semibold) }.font(.system(size: 12)) } }