Canvatorium Visio Lab 5032
What if Apple made Stage Manager available on visionOS as a way to group multiple windows into sets that could be moved around?
When Apple released Stage Manager on macOS and iPadOS, I was convinced that it would play a critical part in their Spatial Computing platform. When visionOS 1.0 arrived, I was surprised that it was nowhere to be seen.
This is just a simple concept of a similar feature what could work as a way to group multiple windows into a single object that could be positioned in space.
struct Lab5032: View {
@State var items: [Color] = [.red, .green, .blue, .purple]
var body: some View {
ZStack(alignment: .bottom) {
HStack (alignment: .center, spacing: 40){
VStack(alignment: .leading, spacing: 20) {
ForEach(items[1..<4], id: \.self) { item in
Rectangle()
.foregroundColor(item)
.cornerRadius(24)
.shadow(radius: 20)
.frame(width: 260, height: 180)
.onTapGesture {
withAnimation(.easeInOut(duration: 0.2)) {
let clickedIndex = items.firstIndex(of: item)!
items.swapAt(0, clickedIndex)
}
}
}
}
.offset(z: 24)
.rotation3DEffect(
Angle(degrees: 12 ),
axis: (x: 0, y: 1, z: 0)
)
Rectangle()
.foregroundColor(items[0])
.cornerRadius(24)
.shadow(radius: 20)
.frame(width: 900, height: 600)
}
}
}
}