mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-23 17:18:45 +02:00
Remove deprecation warnings for Xcode beta4
This commit is contained in:
@@ -17,7 +17,7 @@ struct ContentView: View {
|
||||
Text("Learning SwiftUI")
|
||||
.font(.largeTitle)
|
||||
.fontWeight(.semibold)
|
||||
.color(.black)
|
||||
.foregroundColor(.black)
|
||||
.padding(4)
|
||||
.animation(.basic(duration: 0.3, curve: .easeOut))
|
||||
|
||||
@@ -33,7 +33,7 @@ struct ContentView: View {
|
||||
Text("A course focused on UI")
|
||||
.font(.subheadline)
|
||||
.fontWeight(.regular)
|
||||
.color(.gray)
|
||||
.foregroundColor(.gray)
|
||||
.padding(4)
|
||||
.animation(.basic(duration: 0.4, curve: .easeIn))
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user