This repository has been archived by the owner on Jul 3, 2021. It is now read-only.
Releases: ejeinc/MetalScope
Releases · ejeinc/MetalScope
0.16.0
0.15.2
0.15.1
0.15.0
0.14.0
- 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
0.13.0
- Add
StereoViewController.introductionView
(#18)
StereoViewController.introductionView
is displayed while the phone is not inserted into a Cardboard viewer.
let introView = UILabel()
introView.text = "Place your phone into your Cardboard viewer."
introView.textColor = .white
introView.textAlignment = .center
introView.backgroundColor = .black
let stereoViewController = StereoViewController(device: device)
stereoViewController.introductionView = introView
Additions
- New property
StereoViewController.introductionView
0.12.0
0.11.0
0.10.0
Additions
- New protocol
SceneLoadable
- New protocol
ImageLoadable
- New protocol
VideoLoadable
- New method
PanoramaView.setNeedsResetRotation
- New method
StereoView.setNeedsResetRotation
Changes
OrientationNode.resetCenter
method has been renamed to.resetRotation
.
Deprecations + Removals
MediaSceneLoader
protocol has been removed.PanoramaView.resetCenter
method has beed deprecated. Use.setNeedsResetRotation
method instead.StereoView.resetCenter
method has been deprecated. Use.setNeedsResetRotation
method instead.