Skip to content

Commit 0ed6f21

Browse files
committed
w
1 parent e2d2729 commit 0ed6f21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DouYinCComment/DouYinCComment/WidgetSwift/GifVideoPlay/GifVideoPlay.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct SmallGifVideoPlayView: View {
5858
let offsetY = arcRadius - t / 2
5959
ZStack {
6060
ForEach(1...gifImages.count, id: \.self) { index in
61-
Image(uiImage: gifImages[index-1])
61+
Image(uiImage: gifImages[gifImages.count-index])
6262
.resizable()
6363
.aspectRatio(contentMode: .fit)
6464
.frame(width: width, height: height)

DouYinCComment/DouYinCComment/WidgetSwift/Shake/Shake.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct SmallShakeView: View {
4545
let b = halfWH / tanHalf
4646
let t = radiu - imageWH - b
4747
let lineWidth = radiu - b;
48-
let arcRadius = (radiu - (lineWidth / 2)) * 300//这里其实不乘以300才是完完全全正确的结果,每个大小都是刚刚好的.但是这样转起来之后重叠部分会留阴影, 所以加以放大后.半径变大了,但是重叠部分还是那么大.相应的周长绝对速度就变大了. 这样阴影就会快速略过,肉眼便无法感知了.越放大效果越好.应该是这个理
48+
let arcRadius = (radiu - (lineWidth / 2)) * 400//这里其实不乘以300才是完完全全正确的结果,每个大小都是刚刚好的.但是这样转起来之后重叠部分会留阴影, 所以加以放大后.半径变大了,但是重叠部分还是那么大.相应的周长绝对速度就变大了. 这样阴影就会快速略过,肉眼便无法感知了.越放大效果越好.应该是这个理
4949
let offsetY = arcRadius - t / 2
5050

5151

0 commit comments

Comments
 (0)