Skip to content

Commit

Permalink
Add rounded corners to viewfinder (#244)
Browse files Browse the repository at this point in the history
Adds a rounded corner shaped clip to the Viewfinder using compose
  • Loading branch information
temcguir authored Jul 10, 2024
1 parent 3857d41 commit 6f4c840
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ fun PreviewDisplay(
.height(height)
.transformable(state = transformableState)
.alpha(imageAlpha)
.clip(RoundedCornerShape(16.dp))
) {
CameraXViewfinder(
modifier = Modifier.fillMaxSize(),
Expand Down

0 comments on commit 6f4c840

Please sign in to comment.