Remove deprecation warnings for Xcode beta4

This commit is contained in:
John Holdsworth
2019-07-28 12:10:01 +01:00
parent 57e72ec52c
commit 7af0a711da
40 changed files with 63 additions and 61 deletions

View File

@@ -33,13 +33,13 @@ struct Calculator: View {
.padding(margin)
VStack(alignment: .center, spacing: margin) {
ForEach(data.identified(by: \.description)) { items in
ForEach(data, id: \.description) { items in
HStack(alignment: .center, spacing: margin) {
ForEach(items.identified(by: \.description)) { item in
ForEach(items, id: \.description) { item in
Text(item)
.font(.title)
.bold()
.color(Color.blue)
.foregroundColor(Color.blue)
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
.background(Color(red: 234 / 255.0, green: 240 / 255.0, blue: 241 / 255.0))
.tapAction {