Mercurial > public > simoleon
comparison Simoleon/ContentView.swift @ 43:2eb05f396fcd v1.2
Fixes NavigationView bugs
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 26 Jul 2021 17:35:57 +0100 |
parents | d25b02d439d4 |
children | 7a6a7c677851 |
comparison
equal
deleted
inserted
replaced
42:d25b02d439d4 | 43:2eb05f396fcd |
---|---|
18 .tabItem { | 18 .tabItem { |
19 Text("Convert", comment: "Tab bar button to show conversion") | 19 Text("Convert", comment: "Tab bar button to show conversion") |
20 Image(systemName: "arrow.counterclockwise.circle") | 20 Image(systemName: "arrow.counterclockwise.circle") |
21 } | 21 } |
22 .tag(Tab.convert) | 22 .tag(Tab.convert) |
23 .accessibilityIdentifier("Convert") | |
23 | 24 |
24 Favourites() | 25 Favourites() |
25 .tabItem { | 26 .tabItem { |
26 Text("Favourites", comment: "Tab bar button to show favourites") | 27 Text("Favourites", comment: "Tab bar button to show favourites") |
27 Image(systemName: "star") | 28 Image(systemName: "star") |
28 } | 29 } |
29 .tag(Tab.favourites) | 30 .tag(Tab.favourites) |
31 .accessibilityIdentifier("Favourites") | |
30 | 32 |
31 Settings() | 33 Settings() |
32 .tabItem { | 34 .tabItem { |
33 Text("Settings", comment: "Tab bar button to show settings") | 35 Text("Settings", comment: "Tab bar button to show settings") |
34 Image(systemName: "gear") | 36 Image(systemName: "gear") |
35 } | 37 } |
36 .tag(Tab.settings) | 38 .tag(Tab.settings) |
39 .accessibilityIdentifier("Settings") | |
37 } | 40 } |
38 } | 41 } |
39 | 42 |
40 private enum Tab { | 43 private enum Tab { |
41 case convert, favourites, settings | 44 case convert, favourites, settings |