Describe the bug
I'm attempting to use previewPermissionStatuses to customize previews for different scenarios but it looks like PreviewMultiplePermissionsState doesn't actually adapt to a change in permissions.
A quick look at the code suggests that only PreviewPermissionsState.permissions is an accurate reflection making properties like shouldShowRationale and code to detect partial permissions like the following unavailable:
locationPermissionsState.permissions.size == locationPermissionsState.revokedPermissions.size
It appears that in a preview shouldShowRationale always returns false and the partial permission code above will always be true because the revoked permissions list is always empty.
Describe the bug
I'm attempting to use
previewPermissionStatusesto customize previews for different scenarios but it looks likePreviewMultiplePermissionsStatedoesn't actually adapt to a change in permissions.A quick look at the code suggests that only
PreviewPermissionsState.permissionsis an accurate reflection making properties likeshouldShowRationaleand code to detect partial permissions like the following unavailable:locationPermissionsState.permissions.size == locationPermissionsState.revokedPermissions.sizeIt appears that in a preview
shouldShowRationalealways returnsfalseand the partial permission code above will always betruebecause the revoked permissions list is always empty.