marcosgriselli / marcosgriselli/ViewAnimator
Type 'AnimationType' has no member 'from'
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 7.3k
- Forks
- 483
- PR merge metrics
- No merged PRs in 30d
Description
## Steps to Reproduce the Problem
1. `import ViewAnimator`
2. `let moveFromLeftAnimation = AnimationType.from(direction: .left, offset: 50)`
3. `swipeTextLabelOutlet.animate(animations: [moveFromLeftAnimation],
initialAlpha: 0,
finalAlpha: 1,
delay: baseDelay + delayTwo,
duration: duration)`
results in
> Cannot infer contextual base in reference to member 'left'
> Type 'AnimationType' has no member 'from'
Possible choices are

## Specifications
- Version: Xcode Version 12.0 (12A7209), iOS 14.0, iPhone 11 Pro, ViewAnimator v. 3.0.1
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by reproducing the `AnimationType.from(direction:offset:)` call in Xcode 12 with ViewAnimator 3.0.1, then inspect the available `AnimationType` API and the `animate` entry point. Compare the reported call with the choices shown in the issue; done means the intended directional animation can be expressed and the example compiles and runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100