mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-18 23:44:04 +01:00
Remove deprecation warnings for Xcode beta4
This commit is contained in:
@@ -21,7 +21,7 @@ struct Badge : View {
|
||||
|
||||
var body: some View {
|
||||
Text(text)
|
||||
.color(.white)
|
||||
.foregroundColor(.white)
|
||||
.padding()
|
||||
.background(color)
|
||||
.cornerRadius(8)
|
||||
|
||||
@@ -19,7 +19,7 @@ struct UserRow : View {
|
||||
VStack {
|
||||
Text(user.name)
|
||||
Text(user.username)
|
||||
.color(.secondary)
|
||||
.foregroundColor(.secondary)
|
||||
.lineLimit(0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user