Skip to content

MXCardLayout reproduces the behavior seen in iOS9's multitasking switcher.

License

Notifications You must be signed in to change notification settings

zqpmaster/MXCardLayout

Repository files navigation

MXCardLayout

Build Status License Platform

Introduction

MXCardLayout reproduces the behavior seen in iOS9's multitasking switcher.

MXCardLayout是仿iOS9多任务切换实现的一个卡片流布局。

Installation

There are two ways to use MXCardLayout in your project:

  • using CocoaPods
  • copying all the files into your project

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Started section for more details.

Podfile

platform :ios, '8.1'
pod 'MXCardLayout'

If you are using Swift, be sure to add use_frameworks! and set your target to iOS 8+:

platform :ios, '8.0'
use_frameworks!
pod 'MXCardLayout'

Usage

  • Create a UICollectionViewController with MXCardLayout
	MXCardLayout *layout = [[MXCardLayout alloc] init]; 

	layout.itemSize = CGSizeMake(100,150);
    
	UICollectionViewController *vc = [[UICollectionViewController alloc] initWithCollectionViewLayout:layout];
    

Changelog

Version: 0.1.0

  • Initial Build

###License MXCardLayout is released under a MIT License. See LICENSE file for details.

About

MXCardLayout reproduces the behavior seen in iOS9's multitasking switcher.

Resources

License

Stars

Watchers

Forks

Packages

No packages published