swift - '|' is not a postfix unary operator -


I am trying to add an option to the AVAudioSession class:

< Pre> Give session = AVAudio session. Shared Instances () option = .mixWithOthers.toRaw () | .DefaultToSpeaker.toRaw () if the session.setCategory (Extensions with: Extras: Option, Error: & amp; Error) {...}

I also tried

< Pre> give options = .mixWithOthers | DefaultToSpicker

but it gives me a single error

How can you add these options?

You can actually enter | .

  Option = .MixWithOthers | Also, use  .rowValue ()  (with the latest exode) 

instead of .rowValue

Comments