title: One line code from Objective-C to Swift 4
body: <p>Here I have some Objective-C source code:</p>
  
  <pre><code>MPushNotificationConfiguration *configuration = [[MPushNotificationConfiguration alloc] init];  
  configuration.types = MPushAuthorizationOptionsBadge | MPushAuthorizationOptionsSound | MPushAuthorizationOptionsAlert;
  [MobPush setupNotification:configuration];
  </code></pre>
  
  <p>Now I want to change it into Swift and I tried as follow:</p>
  
  <pre><code>var configuration = MPushNotificationConfiguration()
  configuration.types = .alert | .badge | .sound
  MobPush.setupNotification(configuration)
  </code></pre>
  
  <p>But it reads:</p>
  
  <blockquote>
    <p>Type of expression is ambiguous without more context</p>
  </blockquote>
  
  <p>I tried like this: </p>
  
  <pre><code>var configuration = MPushNotificationConfiguration()
  configuration.types = MPushAuthorizationOptions.alert | MPushAuthorizationOptions.badge | MPushAuthorizationOptions.sound
  MobPush.setupNotification(configuration)
  </code></pre>
  
  <p>It reads:</p>
  
  <blockquote>
    <p>Cannot convert value of type 'MPushAuthorizationOptions' to expected argument type 'UInt8'</p>
  </blockquote>
  
  <p>I had checked some help documentation but nothing helped. I started with Swift 3, then Swift 4, and I know a little about Objective-C. How swift express like "|" in Objective-C?</p>