Last active
February 12, 2025 09:44
Part View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import SceneKit | |
import IndustrialKit | |
struct ContentView: View | |
{ | |
var body: some View | |
{ | |
PartView() | |
} | |
} | |
let bushing = Part(name: "Bushing", scene_name: "Bushing.scn") | |
struct PartView: View | |
{ | |
var body: some View | |
{ | |
ObjectSceneView(node: bushing.node!) | |
.frame(width: 280, height: 280) | |
.background | |
{ | |
Rectangle() | |
.fill(.thinMaterial) | |
.shadow(radius: 4) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment