Swiftpack.co - magicien/GLTFSceneKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by magicien.
magicien/GLTFSceneKit vrm-v0.0.14
glTF loader for SceneKit
⭐️ 161
🕓 2 weeks ago
iOS macOS
.package(url: "https://github.com/magicien/GLTFSceneKit.git", from: "vrm-v0.0.14")

Carthage compatible


glTF loader for SceneKit



Using CocoaPods

Add the following to your Podfile:

pod 'GLTFSceneKit'

Using Carthage

Add the following to your Cartfile:

github "magicien/GLTFSceneKit" ~> 0.3.0

Using Swift Package Manager

  1. Open your project with Xcode
  2. Select File > Swift Packages > Add Package Dependency...
  3. Put https://github.com/magicien/GLTFSceneKit in the search box and click Next



import GLTFSceneKit

var scene: SCNScene
do {
  let sceneSource = try GLTFSceneSource(named: "art.scnassets/Box/glTF/Box.gltf")
  scene = try sceneSource.scene()
} catch {


@import GLTFSceneKit;

GLTFSceneSource *source = [[GLTFSceneSource alloc] initWithURL:url options:nil];
NSError *error;
SCNScene *scene = [source sceneWithOptions:nil error:&error];
if (error != nil) {
  NSLog(@"%@", error);

See also

GLTFQuickLook - QuickLook plugin for glTF files


Stars: 161
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Related Packages

Release Notes

26 weeks ago
  • Add Swift Package Manager support (#48)
    • Change the directory structure
  • Change the version number format from vX.X.X to X.X.X

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics