---
title: allowPublic
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uicloudsharingcontroller/permissionoptions/allowpublic
---

# allowPublic

The option that grants access to anyone who has the share link.

## Declaration

```swift
static var allowPublic: UICloudSharingController.PermissionOptions { get }
```

## Discussion

Discussion To give the user the option to allow anyone to access the shared data, include the allowPublic option when setting the availablePermissions property on the UICloudSharingController instance.

## See Also

### Constants

- [allowPrivate](uikit/uicloudsharingcontroller/permissionoptions/allowprivate.md)
- [allowReadOnly](uikit/uicloudsharingcontroller/permissionoptions/allowreadonly.md)
- [allowReadWrite](uikit/uicloudsharingcontroller/permissionoptions/allowreadwrite.md)
