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