Skip to content

UIActivityViewController: allowsProminentActivity property ​

The allowsProminentActivity property decides whether the system can show one action enlarged at the top of the share sheet.

Value ​

A boolean.

ValueEffect
trueThe system can show one action enlarged at the top of the share sheet. Which one is up to the system
falseNo action is enlarged
  • Readable and writable.
  • The default is true.
  • The on-screen effect of the two values is not verified in the simulator.
  • No event fires when it changes: only the app itself can change it.

Examples ​

js
const sheet = new UIActivityViewController(['some text']);
sheet.allowsProminentActivity = false;
console.log(sheet.allowsProminentActivity);

Result: The console prints false.

Corresponding iOS API ​

UIActivityViewController.allowsProminentActivity.

See also ​