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

@@ -21,7 +21,7 @@ struct Badge : View {
var body: some View {
Text(text)
.color(.white)
.foregroundColor(.white)
.padding()
.background(color)
.cornerRadius(8)

View File

@@ -19,7 +19,7 @@ struct UserRow : View {
VStack {
Text(user.name)
Text(user.username)
.color(.secondary)
.foregroundColor(.secondary)
.lineLimit(0)
}
}