fruitcoder/ReplaceAnimation
소개
Swift로 작성한 UICollectionView용 당겨서 새로 고침 애니메이션으로, 고정 헤더 플로 레이아웃을 지원합니다 :large_orange_diamond:
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalReplaceAnimation
Implementation of Zee Young's Dribbble animation (https://dribbble.com/shots/2067564-Replace)
Info
I really liked Zee Young's animation so I gave it a shot on iOS. Since I wanted to learn some things that I didn't have the chance to get my hands on lately, I tried using constraints to achieve the parallax effect, use CAShapeLayers for the trees and translate the content offset to the bending. Every button and view should be rendered on the device so I could lay them out in a .xib.
It's basically a UICollectionView with a sticky header flow layout (this one is based on https://github.com/Blackjacx/StickyHeaderFlowLayout) and all the parallax effects happen in applyLayoutAttributes:.
I added some jokes from "http://tambal.azurewebsites.net/joke/random" just so it's a little more interesting :)
Refreshing
Cancelling Refresh Animation
Scrolling

Contribution
Any contribution is welcome. Just submit a pull request.
Questions?
If you have any questions about why or how I solved certain things or the code doesn't make sense to you, just write me a message on Twitter.
License
Available under MIT license. See the LICENSE for more info.
관련 프로젝트 살펴보기
불러오는 중…