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.