0 Replies
      Latest reply on Oct 8, 2019 5:12 PM by tom_frog
      tom_frog Level 1 Level 1 (0 points)

        in iOS 12, I can set up an ARSCNView as a subview of my main view with the following:

           lazy var sceneView: ARSCNView = {

                let sceneView = ARSCNView(frame: .zero)



                sceneView.delegate = self

                sceneView.backgroundColor = .clear

                sceneView.scene.background.contents = UIColor.clear



                return sceneView



        - the result is that sceneView is fully transparent: that is, the contents of the view show through it.


        In iOS 13, if I set s sceneView.scene.background.contents = UIColor.red or any other colour, the sceneView show that solid colour, but if I set it to .clear I get a black background. It seems not to be respecting alpha.


        Is this a bug, or am I missing something?