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