@@ -2,7 +2,7 @@ import CachedAsyncImage991
2
2
import SwiftUI
3
3
4
4
/// Вьюшка с площадкой (в списке площадок)
5
- public struct SportsGroundRowView : View {
5
+ public struct ParkRowView : View {
6
6
private let imageURL : URL ?
7
7
private let title : String
8
8
private let address : String ?
@@ -24,7 +24,7 @@ public struct SportsGroundRowView: View {
24
24
HStack ( alignment: . top, spacing: 12 ) {
25
25
leadingImage
26
26
VStack ( alignment: . leading, spacing: 6 ) {
27
- sportsGroundTitle
27
+ parkTitle
28
28
. padding ( . bottom, 2 )
29
29
addressIfNeeded
30
30
participantsInfo
@@ -35,12 +35,12 @@ public struct SportsGroundRowView: View {
35
35
}
36
36
}
37
37
38
- private extension SportsGroundRowView {
38
+ private extension ParkRowView {
39
39
var leadingImage : some View {
40
- CachedImage ( url: imageURL, mode: . groundListItem )
40
+ CachedImage ( url: imageURL, mode: . parkListItem )
41
41
}
42
42
43
- var sportsGroundTitle : some View {
43
+ var parkTitle : some View {
44
44
Text ( title)
45
45
. foregroundColor ( . swMainText)
46
46
. font ( . headline)
@@ -79,19 +79,19 @@ private extension SportsGroundRowView {
79
79
Group {
80
80
ForEach ( ColorScheme . allCases, id: \. self) { scheme in
81
81
VStack ( spacing: 12 ) {
82
- SportsGroundRowView (
82
+ ParkRowView (
83
83
imageURL: URL ( string: " https://workout.su/uploads/userfiles/измайлово.jpg " ) ,
84
84
title: " N° 3 Легендарная / Средняя " ,
85
85
address: " м. Партизанская, улица 2-я Советская " ,
86
86
usersTrainHereText: " Тренируются 5 человек "
87
87
)
88
- SportsGroundRowView (
88
+ ParkRowView (
89
89
imageURL: URL ( string: " https://workout.su/uploads/userfiles/измайлово.jpg " ) ,
90
90
title: " N° 3 Легендарная / Средняя " ,
91
91
address: nil ,
92
92
usersTrainHereText: " Тренируются 5 человек "
93
93
)
94
- SportsGroundRowView (
94
+ ParkRowView (
95
95
imageURL: URL ( string: " https://workout.su/uploads/userfiles/измайлово.jpg " ) ,
96
96
title: " N° 3 Легендарная / Средняя " ,
97
97
address: " м. Партизанская, улица 2-я Советская " ,
0 commit comments