title: UIActivityViewController Gmail Share subject and body going Same
body: <p>I am sharing Some content via <code>UIActivityController</code>.</p>
  
  <p>It is working fine for other Options.</p>
  
  <p>I am able to get <code>subject</code> and <code>body</code> in Default Mail App.</p>
  
  <p>But when I use to share the content with <code>gmail</code> then my <code>Subject</code> of the mail is gone and I am getting <code>Body</code> content in Gmail <code>Subject's</code> section:</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    NSString *body = @"I am Body";
  NSString *tagLine = @"I am Subject";
  
     NSArray *objectToShare = [NSArray arrayWithObjects:body, nil];
  UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:objectToShare applicationActivities:nil];
  
  [activityVC setValue:tagLine forKey:@"subject"];
  
  NSArray *excludeActivities = @[UIActivityTypeAirDrop,
                                 UIActivityTypePrint,
                                 UIActivityTypeAssignToContact,
                                 UIActivityTypeSaveToCameraRoll,
                                 UIActivityTypeAddToReadingList,
                                 UIActivityTypePostToVimeo];
  
  activityVC.excludedActivityTypes = excludeActivities;
  
  [self presentViewController:activityVC animated:YES completion:nil];
  </code></pre>
  
  <p>For better Picture Here is the screenshot:</p>
  
  <p>With Default App:</p>
  
  <p><a href="https://i.stack.imgur.com/ao8am.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/ao8am.jpg" alt="enter image description here"></a></p>
  
  <p>With Gmail:
      <a href="https://i.stack.imgur.com/LYt6E.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/LYt6E.jpg" alt="enter image description here"></a></p>
  
  <p>I also tried different answers on SO. But none of them works.</p>