mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-26 10:38:37 +02:00
Remove deprecation warnings for Xcode beta4
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user