You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
It looks like PreviewMultiplePermissionsState isn't updating properly when permissions change, so things like shouldShowRationale and revokedPermissions don't behave as expected in previews. Even if you simulate partial permissions, the preview always acts like everything is granted.
Activity
bxbee commentedon Oct 24, 2025
It looks like PreviewMultiplePermissionsState isn't updating properly when permissions change, so things like shouldShowRationale and revokedPermissions don't behave as expected in previews. Even if you simulate partial permissions, the preview always acts like everything is granted.
bec975656-bot commentedon Apr 15, 2026
locationPermissionsState.permissions.size == locationPermissionsState.revokedPermissions.size