3D UI lib for SwiftUI
import SwiftUI
import UI3
struct ContentView: View {
var body: some View {
ZStack {
Color.gray
.edgesIgnoringSafeArea(.all)
UI3 {
HStack {
Box()
.chamferRadius(0.05)
Box()
.chamferRadius(0.05)
.frame(width: 0.25)
VStack {
Box()
.chamferRadius(0.05)
Box()
.chamferRadius(0.05)
.frame(height: 0.25)
ZStack {
Box()
.chamferRadius(0.05)
Box()
.chamferRadius(0.05)
.frame(length: 0.25)
Box()
.chamferRadius(0.05)
}
}
}
}
}
}
}