Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting UICloudSharingController.availablePermissions has no effect #9

Open
mmklug opened this issue Jul 2, 2021 · 5 comments
Open

Comments

@mmklug
Copy link

mmklug commented Jul 2, 2021

In CloudSharingView.swift, sharingController.availablePermissions is set to [.allowReadWrite, .allowPrivate].
According to the documentation, I would expect the user not to be presented the share options "Anyone with the link" and "View only", but running the app these options are available.

@sjrmanning
Copy link
Member

I've reached out to the team that owns this controller and will update as soon as I hear back.

@mmklug
Copy link
Author

mmklug commented Sep 30, 2021

I've reached out to the team that owns this controller and will update as soon as I hear back.

Thanks. Any news?

@ericboles
Copy link

This is still an issue--both in the main and swift-concurrency branch. Is there any fix?

@stanlemon
Copy link

I see this as well, definitely appears to be a bug and an update would be appreciated.

@mmklug
Copy link
Author

mmklug commented Aug 24, 2022

This issue seems to have been resolved in iOS 16 (just tested under Xcode 14.0 beta 6).
Now if sharingController.availablePermissions is set to only one of each complementary options, e.g. [.allowReadWrite, .allowPrivate] no NavigationLink will be showed on the UICloudSharingController.
The NavigationLink will only be shown if .availablePermissions contains both complementary actions for at least one of the two Share Options sections ("Who can access" & "Permission"), i.e. if the user has a choice at all. Only the relevant Sections will be shown, as described under https://developer.apple.com/documentation/uikit/uicloudsharingcontroller/1649602-availablepermissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants