mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-31 22:43:28 +02:00
Remove deprecation warnings for Xcode beta4
This commit is contained in:
@@ -31,7 +31,7 @@ struct ActivityView : View {
|
||||
CircleImage(imgName: "subIcon")
|
||||
.padding(.leading, 10)
|
||||
Text("发布动态...")
|
||||
.color(Color.gray)
|
||||
.foregroundColor(Color.gray)
|
||||
Spacer()
|
||||
}
|
||||
HStack{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ struct ChatCell : View {
|
||||
.bold()
|
||||
.padding(.top, 4)
|
||||
Text(subTitle)
|
||||
.color(Color.gray)
|
||||
.foregroundColor(Color.gray)
|
||||
.padding(.bottom, 8)
|
||||
}
|
||||
Spacer()
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user