mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-12-05 22:06:17 +01:00
Remove deprecation warnings for Xcode beta4
This commit is contained in:
1 parent
57e72ec52c
commit
7af0a711da
40 files changed
+63
-61
No files matched your search
@@ -86,7 +86,7 @@ struct BlockView : View {
|
||||
|
||||
Text(numberText)
|
||||
.font(Font.system(size: fontSize).bold())
|
||||
.color(colorPair.1)
|
||||
.foregroundColor(colorPair.1)
|
||||
.id(numberText)
|
||||
.transition(AnyTransition.scale(scale: 0.5, anchor: .center).combined(with: .opacity))
|
||||
.animation(.fluidSpring())
|
||||
|
||||
@@ -94,7 +94,7 @@ struct GameView : View {
|
||||
ZStack(alignment: layoutTraits.containerAlignment) {
|
||||
Text("2048")
|
||||
.font(Font.system(size: 48).weight(.black))
|
||||
.color(Color(red:0.47, green:0.43, blue:0.40, opacity:1.00))
|
||||
.foregroundColor(Color(red:0.47, green:0.43, blue:0.40, opacity:1.00))
|
||||
.offset(layoutTraits.bannerOffset)
|
||||
|
||||
ZStack(alignment: .top) {
|
||||
|
||||
Reference in new issue
Block a user