Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ Check List
📎 Work Description
ProgressBarViewController
CAShapeLayer의strokeEnd속성을 사용해 원형 프로그레스바를 구현했습니다!CABasicAnimation으로strokeEnd를 0에서 1까지 변화시키는 애니메이션을 사용하고 있어요~repeatCount = .infinity와timingFunction = .linear를 설정해 무한로딩! 프로그레스바가 되도록 했습니다.SkeletonViewController
calculationModeLinear을 사용해 키프레임이 부드럽게~ 이어지도록 했습니다. 찾아보니 이런 로딩 애니메이션에서 이 옵션을 자주 쓰더라구요!startSkeleton()과stopSkeleton()을 분리해 스켈레톤의 시작과 종료를 설정했어요!시작할 때는 기존 콘텐츠를 지우고 스켈레톤만 보이도록 했고, 종료할 때는 레이어 애니메이션을 완전히 제거해서 멈추도록 했습니다.
키프레임 애니메이션에서는
.repeat옵션이 동작하지 않기에... completion에서 다시skeletonAnimate()를 호출하는 방식으로 반복을 구현했습니다.📷 Screenshots
💬 To Reviewers
로딩중...
