iOS Swift - SwiftUI Layout
What will be the visible result of this SwiftUI code?
Text("Hi")
.background(Color.yellow)
.overlay(Text("Overlay"))Text("Hi")
.background(Color.yellow)
.overlay(Text("Overlay")).background(Color.yellow) adds a yellow color behind "Hi" text. Then .overlay(Text("Overlay")) places "Overlay" text on top.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions