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

@@ -19,19 +19,19 @@ struct ContentView : View {
}) {
VStack() {
Text("Learn SwiftUI")
.color(.white)
.foregroundColor(.white)
.fontWeight(.bold)
.font(.largeTitle)
.padding(.top, show ? 100 : 20)
Text("A course on UI and animations")
.color(Color(hue: 0.567, saturation: 0.158, brightness: 0.943))
.foregroundColor(Color(hue: 0.567, saturation: 0.158, brightness: 0.943))
.lineLimit(-1)
Spacer()
Text("Card Animation")
.color(Color(hue: 0.498, saturation: 0.609, brightness: 1.0))
.foregroundColor(Color(hue: 0.498, saturation: 0.609, brightness: 1.0))
.fontWeight(.bold)
.font(.title)
.padding(.bottom, show ? 100 : 20)