diff --git a/Sources/CropImage/CropImageView.swift b/Sources/CropImage/CropImageView.swift index 9f9256b..2895bae 100644 --- a/Sources/CropImage/CropImageView.swift +++ b/Sources/CropImage/CropImageView.swift @@ -145,14 +145,14 @@ public struct CropImageView: View { } public var body: some View { - ZStack { - UnderlyingImageView( - offset: $offset, - scale: $scale, - rotation: $rotation, - image: image, - initialImageSize: initialImageSize - ) + UnderlyingImageView( + offset: $offset, + scale: $scale, + rotation: $rotation, + image: image, + initialImageSize: initialImageSize + ) + .overlay( ZStack { RectHoleShape(size: targetSize) .fill(style: FillStyle(eoFill: true)) .foregroundColor(.black.opacity(0.6)) @@ -165,7 +165,7 @@ public struct CropImageView: View { onCrop(.failure(error)) } } - } + } ) } } diff --git a/Sources/CropImage/Documentation.docc/Resources/macos.png b/Sources/CropImage/Documentation.docc/Resources/macos.png index ea62a7a..a399204 100644 Binary files a/Sources/CropImage/Documentation.docc/Resources/macos.png and b/Sources/CropImage/Documentation.docc/Resources/macos.png differ diff --git a/Sources/CropImage/Documentation.docc/Resources/macos~dark.png b/Sources/CropImage/Documentation.docc/Resources/macos~dark.png index 6059d96..d8e337f 100644 Binary files a/Sources/CropImage/Documentation.docc/Resources/macos~dark.png and b/Sources/CropImage/Documentation.docc/Resources/macos~dark.png differ