I am just trying to set two flags for the debug options. Why is this a problem in Swift 4

instead of doing "|", use a set:
sceneView.debugOptions = [ARSCNDebugOptions.showFeaturePoints,ARSCNDebugOptions.showWorldOrigin]
SCNDebugOptions confirm the protocol OptionSet, which confirm SetAlgebra protocol and SetAlgebra confirm ExpressibleByArrayLiteral protocol.
public struct SCNDebugOptions : OptionSet {...}
protocol OptionSet : RawRepresentable, SetAlgebra {...}
public protocol SetAlgebra : Equatable, ExpressibleByArrayLiteral {...}
That's why you can't use the pipe (|) sign for multiple arguments. instead, use an array.
sceneView.debugOptions = [.showFeaturePoints, .showWorldOrigin]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With