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

@@ -31,7 +31,7 @@ struct ActivityView : View {
CircleImage(imgName: "subIcon")
.padding(.leading, 10)
Text("发布动态...")
.color(Color.gray)
.foregroundColor(Color.gray)
Spacer()
}
HStack{

View File

@@ -32,7 +32,7 @@ struct ActivityCell : View {
}
Text(timeStamp)
.font(Font.system(size: 12))
.color(Color.gray)
.foregroundColor(Color.gray)
.padding(.bottom, 2)
Text(content)

View File

@@ -14,7 +14,7 @@ struct CategoryRow: View {
VStack(alignment: .leading) {
ScrollView(.horizontal) {
HStack(alignment: .top, spacing: 0) {
ForEach(self.items.identified(by: \.id)) { zone in
ForEach(self.items, id: \.id) { zone in
CategoryItem(zone: zone)
}
}

View File

@@ -20,7 +20,7 @@ struct ChatCell : View {
.bold()
.padding(.top, 4)
Text(subTitle)
.color(Color.gray)
.foregroundColor(Color.gray)
.padding(.bottom, 8)
}
Spacer()

View File

@@ -32,7 +32,7 @@ struct HomeCell : View {
.bold()
Text(timeStamp)
.font(Font.system(size: 12))
.color(Color.gray)
.foregroundColor(Color.gray)
.padding(.top, 8)
}
Spacer()
@@ -57,7 +57,7 @@ struct HomeCell : View {
.bold()
Text("发布")
.font(Font.system(size: 13))
.color(Color.gray)
.foregroundColor(Color.gray)
Spacer()
}

View File

@@ -16,7 +16,7 @@ struct ZoneCell : View {
Image(imgName)
Text(title)
.font(Font.system(size: 10))
.color(Color.gray)
.foregroundColor(Color.gray)
.frame(alignment: .center)
}

View File

@@ -25,7 +25,7 @@ struct HomeView : View {
.padding(EdgeInsets(top: 5, leading: 5, bottom: 5, trailing: 5))
Text("优衣库KAWS遭疯抢")
.font(Font.system(size: 14))
.color(Color.gray)
.foregroundColor(Color.gray)
Spacer()
}
.background(