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

@@ -71,7 +71,7 @@ struct TitleText: View {
let text: String
var body: some View {
return Text(text)
.color(.primary)
.foregroundColor(.primary)
.bold()
}
}
@@ -81,6 +81,6 @@ struct DescriptionText : View {
var body: some View {
return Text(text)
.font(.footnote).fontWeight(.semibold)
.color(.secondary)
.foregroundColor(.secondary)
}
}