mirror of
https://github.com/laosb/CropImage.git
synced 2025-04-30 23:51:08 +00:00
doc: Update preview image.
This commit is contained in:
parent
edc6a5c17b
commit
1f3cf71c83
3 changed files with 9 additions and 9 deletions
|
@ -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 |
Loading…
Add table
Reference in a new issue