Mercurial > public > geoquiz
comparison GeoQuiz/Components/RecentGame.swift @ 22:56add5561261
add mock data creation
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Wed, 26 Oct 2022 08:20:19 +0200 |
parents | b145c408f791 |
children |
comparison
equal
deleted
inserted
replaced
21:b145c408f791 | 22:56add5561261 |
---|---|
35 | 35 |
36 VStack(alignment: .leading) { | 36 VStack(alignment: .leading) { |
37 Text(gameInfo.name) | 37 Text(gameInfo.name) |
38 .font(.headline) | 38 .font(.headline) |
39 | 39 |
40 Text("\(game.date ?? Date(), format: .dateTime)") | 40 Text("\(game.date ?? Date(), format: .dateTime.day().month().year())") |
41 .font(.callout) | 41 .font(.callout) |
42 .foregroundColor(.secondary) | 42 .foregroundColor(.secondary) |
43 } | 43 } |
44 | 44 |
45 Spacer() | 45 Spacer() |