You can, this works
ZStack {
// This view will be at the bottom
Circle()
.foregroundColor(.blue)
.frame(width: 100, height: 100)
.frame(depth: 1.0)
// This view will be in the middle
Circle()
.foregroundColor(.red)
.frame(width: 75, height: 75)
.frame(depth: 5.0)
...
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: