Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

0.14.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@junpluse junpluse released this 26 Apr 14:06
· 21 commits to master since this release
  • Extract default implementations for Loadable protocols (#19)

Now you can reuse the default implementation of load methods when you override them.

class MyViewController: SceneLoadable, ImageLoadable {
    var scene: SCNScene?

    func load(_ image: UIImage, format: MediaFormat) {
        ImageSceneLoader(target: self).load(image, format: format)

        // your custom logic...
    }
}

Additions

  • New struct ImageSceneLoader
  • New struct VideoSceneLoader