blendDuration maybe work in this case
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- swift
- Domain
- mobile-dev
Research direction
Start by locating the SwiftUI DragGesture example containing the onChanged and onEnded spring animations shown in the issue. Read how blendDuration is currently used there and clarify the intended behavior before deciding what a completed change should demonstrate; the issue does not name a file or test.
Written by the indexing model from the issue text.
Description
.gesture(
DragGesture()
.onChanged { value in
guard !isAnimating else { return }
// Update the position while dragging with 弹性跟手
withAnimation(.spring(duration: onChangedDuration, bounce: onChangedBounce)) {
self.position = value.location
}
}
.onEnded { _ in
guard !isAnimating else { return }
// Animate back to center when released with 速度继承
withAnimation(.spring(duration: onEndedDuration, bounce: onEndedBounce,blendDuration: 0.25)) {
self.position = CGPoint(
x: geometry.size.width / 2,
y: geometry.size.height / 2
)
}
}
)
- Dominant language
- Swift
- Stars
- 811
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug priority:low status:queued
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Insights trim drops today's rollups before newer DNS answers during a DNS floodPossibly taken A pull request linked to this issue is open or already merged. Openbug priority:low status:in-progress
Difficulty 2/5 Half a day Newbie friendliness 67/100
isaaclins/freesnitch#588 ·
Maintainers usually reply within 1 day
-
bug P2: medium
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
leepokai/Codync#618 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
floorianmb/tidywise#5 ·