doc: Update preview image.

This commit is contained in:
Shibo Lyu 2023-08-10 17:28:13 +08:00
parent edc6a5c17b
commit 1f3cf71c83
3 changed files with 9 additions and 9 deletions

View file

@ -145,7 +145,6 @@ public struct CropImageView<Controls: View>: View {
} }
public var body: some View { public var body: some View {
ZStack {
UnderlyingImageView( UnderlyingImageView(
offset: $offset, offset: $offset,
scale: $scale, scale: $scale,
@ -153,6 +152,7 @@ public struct CropImageView<Controls: View>: View {
image: image, image: image,
initialImageSize: initialImageSize initialImageSize: initialImageSize
) )
.overlay( ZStack {
RectHoleShape(size: targetSize) RectHoleShape(size: targetSize)
.fill(style: FillStyle(eoFill: true)) .fill(style: FillStyle(eoFill: true))
.foregroundColor(.black.opacity(0.6)) .foregroundColor(.black.opacity(0.6))
@ -165,7 +165,7 @@ public struct CropImageView<Controls: View>: View {
onCrop(.failure(error)) onCrop(.failure(error))
} }
} }
} } )
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 114 KiB