SkillAgentSearch skills...

GCCardViewController

imitate iOS7 task switcher animation 模仿iOS7 task switcher 动画

Install / Use

/learn @Yuzeyang/GCCardViewController
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

GCCardScrollView

Introduction

This is animation is imitate iOS7 task switcher animation, if you have more than 4 cards,it will reues card,and it can delete card

Gif

how to use

1.add card scroll view

self.cardScrollView = [[CardScrollView alloc] initWithFrame:self.view.frame];
self.cardScrollView.cardDelegate = self;
self.cardScrollView.cardDataSource = self;
[self.view addSubview:self.cardScrollView];

2.update card when scrolling

- (void)updateCard:(UIView *)card withProgress:(CGFloat)progress direction:(CardMoveDirection)direction;

3.set cards number

- (NSInteger)numberOfCards;

4.reuse card

- (UIView *)cardReuseView:(UIView *)reuseView atIndex:(NSInteger)index;

5.delete card,this is optional

- (void)deleteCardWithIndex:(NSInteger)index;

Related articles

模仿iOS7 task switcher的卡片动画

Related Skills

View on GitHub
GitHub Stars63
CategoryDevelopment
Updated2y ago
Forks5

Languages

Objective-C

Security Score

65/100

Audited on Apr 10, 2023

No findings