Skip to content

Instantly share code, notes, and snippets.

@MalkarovPark
Last active February 12, 2025 09:44
Part View
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