[#434] Fix circural image (#435)

Closes #434
This commit is contained in:
Michal Fousek 2022-10-08 00:50:37 +02:00 committed by GitHub
parent 3737e47263
commit e7f36bc0cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ struct CircularFrameBackgroundImages: Animatable, ViewModifier {
ForEach(0..<viewStore.images.count - 1, id: \.self) { imageIndex in
viewStore.images[imageIndex]
.resizable()
.aspectRatio(1.3, contentMode: .fill)
.aspectRatio(1, contentMode: .fill)
.opacity(imageIndex == viewStore.index ? 1 : 0)
.offset(x: imageIndex <= viewStore.index ? 0 : 25)
.mask(Circle())
@ -42,7 +42,7 @@ struct CircularFrameBackgroundImage: Animatable, ViewModifier {
ZStack {
image
.resizable()
.aspectRatio(1.3, contentMode: .fill)
.aspectRatio(1, contentMode: .fill)
.mask(Circle())
.neumorphic()