Mercurial > public > lazybear
comparison LazyBear/Views/Company/Helpers/StatsView.swift @ 430:c78d5b5b3bda
Minor updates
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 19 Jun 2021 16:21:26 +0200 |
parents | 6dd97877f575 |
children |
comparison
equal
deleted
inserted
replaced
429:e4ca9898b79b | 430:c78d5b5b3bda |
---|---|
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 struct StatsView: View { | 10 struct StatsView: View { |
11 var keyStats: KeyStatsModel | 11 var keyStats: KeyStatsModel |
12 | 12 |
13 @Environment(\.presentationMode) private var presentationStatsView | 13 @Environment(\.presentationMode) private var statsPresentation |
14 | 14 |
15 let displayWords: DisplayWordsModel = parseJSON("DisplayWords.json") | 15 let displayWords: DisplayWordsModel = parseJSON("DisplayWords.json") |
16 | 16 |
17 var body: some View { | 17 var body: some View { |
18 NavigationView { | 18 NavigationView { |
36 } | 36 } |
37 .navigationTitle("Key statistics") | 37 .navigationTitle("Key statistics") |
38 .navigationBarTitleDisplayMode(.inline) | 38 .navigationBarTitleDisplayMode(.inline) |
39 .toolbar { | 39 .toolbar { |
40 ToolbarItem(placement: .navigationBarLeading) { | 40 ToolbarItem(placement: .navigationBarLeading) { |
41 Button(action: { presentationStatsView.wrappedValue.dismiss() }) { | 41 Button(action: { statsPresentation.wrappedValue.dismiss() }) { |
42 Image(systemName: "multiply") | 42 Image(systemName: "multiply") |
43 .imageScale(.large) | 43 .imageScale(.large) |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |