Full Code of BourneWeng/MagicMove for AI

master 61243fb35f32 cached
22 files
56.8 KB
16.6k tokens
1 requests
Download .txt
Repository: BourneWeng/MagicMove
Branch: master
Commit: 61243fb35f32
Files: 22
Total size: 56.8 KB

Directory structure:
gitextract_f2gnqyp2/

├── MagicMove/
│   ├── AppDelegate.swift
│   ├── Base.lproj/
│   │   ├── LaunchScreen.xib
│   │   └── Main.storyboard
│   ├── DetailViewController.swift
│   ├── Images.xcassets/
│   │   ├── 001.imageset/
│   │   │   └── Contents.json
│   │   ├── AppIcon.appiconset/
│   │   │   └── Contents.json
│   │   └── avatar.imageset/
│   │       └── Contents.json
│   ├── Info.plist
│   ├── MMCollectionViewCell.swift
│   ├── MagicMovePopTransion.swift
│   ├── MagicMoveTransion.swift
│   └── ViewController.swift
├── MagicMove.xcodeproj/
│   ├── project.pbxproj
│   ├── project.xcworkspace/
│   │   ├── contents.xcworkspacedata
│   │   ├── xcshareddata/
│   │   │   └── MagicMove.xccheckout
│   │   └── xcuserdata/
│   │       └── BourneWeng.xcuserdatad/
│   │           └── UserInterfaceState.xcuserstate
│   └── xcuserdata/
│       └── BourneWeng.xcuserdatad/
│           ├── xcdebugger/
│           │   └── Breakpoints_v2.xcbkptlist
│           └── xcschemes/
│               ├── MagicMove.xcscheme
│               └── xcschememanagement.plist
├── MagicMoveTests/
│   ├── Info.plist
│   └── MagicMoveTests.swift
└── README.md

================================================
FILE CONTENTS
================================================

================================================
FILE: MagicMove/AppDelegate.swift
================================================
//
//  AppDelegate.swift
//  MagicMove
//
//  Created by BourneWeng on 15/7/13.
//  Copyright (c) 2015年 Bourne. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        return true
    }

    func applicationWillResignActive(application: UIApplication) {
        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
        // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
    }

    func applicationDidEnterBackground(application: UIApplication) {
        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    }

    func applicationWillEnterForeground(application: UIApplication) {
        // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
    }

    func applicationDidBecomeActive(application: UIApplication) {
        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    }

    func applicationWillTerminate(application: UIApplication) {
        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
    }


}



================================================
FILE: MagicMove/Base.lproj/LaunchScreen.xib
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
        <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
    </dependencies>
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <view contentMode="scaleToFill" id="iN0-l3-epB">
            <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
            <subviews>
                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="  Copyright (c) 2015年 Bourne. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
                    <rect key="frame" x="20" y="439" width="441" height="21"/>
                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
                    <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
                    <nil key="highlightedColor"/>
                </label>
                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="MagicMove" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
                    <rect key="frame" x="20" y="140" width="441" height="43"/>
                    <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
                    <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
                    <nil key="highlightedColor"/>
                </label>
            </subviews>
            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
            <constraints>
                <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
                <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
                <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
                <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
                <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
                <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
            </constraints>
            <nil key="simulatedStatusBarMetrics"/>
            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
            <point key="canvasLocation" x="548" y="455"/>
        </view>
    </objects>
</document>


================================================
FILE: MagicMove/Base.lproj/Main.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="6NC-58-fNn">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
        <capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
        <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
    </dependencies>
    <scenes>
        <!--Navigation Controller-->
        <scene sceneID="OYR-b2-E1Z">
            <objects>
                <navigationController id="6NC-58-fNn" sceneMemberID="viewController">
                    <navigationBar key="navigationBar" contentMode="scaleToFill" id="4Tu-aN-xAf">
                        <rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
                        <autoresizingMask key="autoresizingMask"/>
                    </navigationBar>
                    <connections>
                        <segue destination="tys-PH-kMh" kind="relationship" relationship="rootViewController" id="lQP-QD-VsI"/>
                    </connections>
                </navigationController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="Bfa-QR-pxu" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="-786" y="398"/>
        </scene>
        <!--Bounre Weng-->
        <scene sceneID="1Wz-Ow-PeT">
            <objects>
                <collectionViewController id="tys-PH-kMh" customClass="ViewController" customModule="MagicMove" customModuleProvider="target" sceneMemberID="viewController">
                    <collectionView key="view" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="prototypes" id="zKA-sy-pts">
                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
                        <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="2c5-i8-Ykp">
                            <size key="itemSize" width="182" height="204"/>
                            <size key="headerReferenceSize" width="0.0" height="0.0"/>
                            <size key="footerReferenceSize" width="0.0" height="0.0"/>
                            <inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
                        </collectionViewFlowLayout>
                        <cells>
                            <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="cardCell" id="9OP-gV-0gs" customClass="MMCollectionViewCell" customModule="MagicMove" customModuleProvider="target">
                                <rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
                                <autoresizingMask key="autoresizingMask"/>
                                <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
                                    <rect key="frame" x="0.0" y="0.0" width="182" height="204"/>
                                    <autoresizingMask key="autoresizingMask"/>
                                    <subviews>
                                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="BourneWeng" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="R9W-Fg-YNZ">
                                            <rect key="frame" x="0.0" y="176" width="182" height="28"/>
                                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                                            <constraints>
                                                <constraint firstAttribute="height" constant="28" id="h1L-9N-4Xr"/>
                                            </constraints>
                                            <fontDescription key="fontDescription" type="system" pointSize="17"/>
                                            <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
                                            <nil key="highlightedColor"/>
                                        </label>
                                        <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="001" translatesAutoresizingMaskIntoConstraints="NO" id="Zp9-gC-wX3">
                                            <rect key="frame" x="8" y="8" width="166" height="166"/>
                                            <constraints>
                                                <constraint firstAttribute="width" secondItem="Zp9-gC-wX3" secondAttribute="height" multiplier="1:1" id="kEw-9V-ObS"/>
                                            </constraints>
                                        </imageView>
                                    </subviews>
                                    <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                                </view>
                                <color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
                                <constraints>
                                    <constraint firstItem="Zp9-gC-wX3" firstAttribute="leading" secondItem="9OP-gV-0gs" secondAttribute="leadingMargin" id="5Op-iS-5fG"/>
                                    <constraint firstAttribute="bottomMargin" secondItem="R9W-Fg-YNZ" secondAttribute="bottom" constant="-8" id="9rH-e7-PkC"/>
                                    <constraint firstItem="R9W-Fg-YNZ" firstAttribute="leading" secondItem="9OP-gV-0gs" secondAttribute="leadingMargin" constant="-8" id="MU6-3r-bdW"/>
                                    <constraint firstItem="Zp9-gC-wX3" firstAttribute="top" secondItem="9OP-gV-0gs" secondAttribute="topMargin" id="WCX-hJ-Fjc"/>
                                    <constraint firstItem="Zp9-gC-wX3" firstAttribute="trailing" secondItem="9OP-gV-0gs" secondAttribute="trailingMargin" id="b9N-tt-zRw"/>
                                    <constraint firstItem="R9W-Fg-YNZ" firstAttribute="top" secondItem="Zp9-gC-wX3" secondAttribute="bottom" id="bV2-zy-xAE"/>
                                    <constraint firstAttribute="trailingMargin" secondItem="R9W-Fg-YNZ" secondAttribute="trailing" constant="-8" id="iq3-kr-rsm"/>
                                    <constraint firstAttribute="trailingMargin" secondItem="Zp9-gC-wX3" secondAttribute="trailing" id="qaP-QN-E2V"/>
                                </constraints>
                                <size key="customSize" width="182" height="204"/>
                                <variation key="default">
                                    <mask key="constraints">
                                        <exclude reference="qaP-QN-E2V"/>
                                        <exclude reference="bV2-zy-xAE"/>
                                    </mask>
                                </variation>
                                <connections>
                                    <outlet property="imageView" destination="Zp9-gC-wX3" id="DuH-jz-nkD"/>
                                    <outlet property="textLabel" destination="R9W-Fg-YNZ" id="T00-e8-bNE"/>
                                </connections>
                            </collectionViewCell>
                        </cells>
                        <connections>
                            <outlet property="dataSource" destination="tys-PH-kMh" id="Efl-X4-Tic"/>
                            <outlet property="delegate" destination="tys-PH-kMh" id="yZX-SP-VLs"/>
                        </connections>
                    </collectionView>
                    <navigationItem key="navigationItem" title="Bounre Weng" id="rQM-HF-uaL"/>
                    <connections>
                        <segue destination="vXZ-lx-hvc" kind="show" identifier="detail" id="c1Q-ND-tQq"/>
                    </connections>
                </collectionViewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="0Cs-bw-x5h" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="-51" y="398"/>
        </scene>
        <!--Detail-->
        <scene sceneID="ufC-wZ-h7g">
            <objects>
                <viewController id="vXZ-lx-hvc" customClass="DetailViewController" customModule="MagicMove" customModuleProvider="target" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
                        <viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                        <subviews>
                            <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Jc1-AL-glg">
                                <rect key="frame" x="48" y="72" width="280" height="280"/>
                                <constraints>
                                    <constraint firstAttribute="height" constant="280" id="N2E-cx-RjT"/>
                                    <constraint firstAttribute="width" constant="280" id="cMb-6N-0dL"/>
                                </constraints>
                            </imageView>
                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0TZ-fD-n7g">
                                <rect key="frame" x="16" y="372" width="343" height="295"/>
                                <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                                <string key="text">Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda.Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda.Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda.Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda.</string>
                                <fontDescription key="fontDescription" type="system" pointSize="14"/>
                                <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
                            </textView>
                        </subviews>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
                        <constraints>
                            <constraint firstItem="0TZ-fD-n7g" firstAttribute="top" secondItem="Jc1-AL-glg" secondAttribute="bottom" constant="20" id="hQC-qY-WeL"/>
                            <constraint firstItem="2fi-mo-0CV" firstAttribute="top" secondItem="0TZ-fD-n7g" secondAttribute="bottom" id="rSZ-UP-ZaQ"/>
                            <constraint firstAttribute="centerX" secondItem="Jc1-AL-glg" secondAttribute="centerX" id="sye-4W-Cfa"/>
                            <constraint firstItem="Jc1-AL-glg" firstAttribute="top" secondItem="jyV-Pf-zRb" secondAttribute="bottom" constant="8" id="wac-fg-ZGa"/>
                            <constraint firstAttribute="trailingMargin" secondItem="0TZ-fD-n7g" secondAttribute="trailing" id="wtJ-or-Amz"/>
                            <constraint firstItem="0TZ-fD-n7g" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leadingMargin" id="z8D-oc-KDM"/>
                        </constraints>
                    </view>
                    <navigationItem key="navigationItem" title="Detail" id="DIL-bf-Gub"/>
                    <simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
                    <connections>
                        <outlet property="avatarImageView" destination="Jc1-AL-glg" id="haf-Os-Faa"/>
                    </connections>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="635.5" y="397.5"/>
        </scene>
    </scenes>
    <resources>
        <image name="001" width="1600" height="1600"/>
    </resources>
</document>


================================================
FILE: MagicMove/DetailViewController.swift
================================================
//
//  DetailViewController.swift
//  MagicMove
//
//  Created by BourneWeng on 15/7/13.
//  Copyright (c) 2015年 Bourne. All rights reserved.
//

import UIKit

class DetailViewController: UIViewController, UINavigationControllerDelegate {

    @IBOutlet weak var avatarImageView: UIImageView!
    var image: UIImage!
    
    private var percentDrivenTransition: UIPercentDrivenInteractiveTransition?
    

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        
        self.navigationController?.delegate = self
        
        //手势监听器
        let edgePan = UIScreenEdgePanGestureRecognizer(target: self, action: Selector("edgePanGesture:"))
        edgePan.edges = UIRectEdge.Left
        self.view.addGestureRecognizer(edgePan)
    }

    func edgePanGesture(edgePan: UIScreenEdgePanGestureRecognizer) {
        let progress = edgePan.translationInView(self.view).x / self.view.bounds.width
        
        if edgePan.state == UIGestureRecognizerState.Began {
            self.percentDrivenTransition = UIPercentDrivenInteractiveTransition()
            self.navigationController?.popViewControllerAnimated(true)
        } else if edgePan.state == UIGestureRecognizerState.Changed {
            self.percentDrivenTransition?.updateInteractiveTransition(progress)
        } else if edgePan.state == UIGestureRecognizerState.Cancelled || edgePan.state == UIGestureRecognizerState.Ended {
            if progress > 0.5 {
                self.percentDrivenTransition?.finishInteractiveTransition()
            } else {
                self.percentDrivenTransition?.cancelInteractiveTransition()
            }
            self.percentDrivenTransition = nil
        }
    }

    
    func navigationController(navigationController: UINavigationController, animationControllerForOperation operation: UINavigationControllerOperation, fromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        if operation == UINavigationControllerOperation.Pop {
            return MagicMovePopTransion()
        } else {
            return nil
        }
    }
    
    func navigationController(navigationController: UINavigationController, interactionControllerForAnimationController animationController: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? {
        if animationController is MagicMovePopTransion {
            return self.percentDrivenTransition
        } else {
            return nil
        }
    }
}


================================================
FILE: MagicMove/Images.xcassets/001.imageset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "universal",
      "scale" : "1x",
      "filename" : "001.png"
    },
    {
      "idiom" : "universal",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: MagicMove/Images.xcassets/AppIcon.appiconset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "iphone",
      "size" : "29x29",
      "scale" : "2x"
    },
    {
      "idiom" : "iphone",
      "size" : "29x29",
      "scale" : "3x"
    },
    {
      "idiom" : "iphone",
      "size" : "40x40",
      "scale" : "2x"
    },
    {
      "idiom" : "iphone",
      "size" : "40x40",
      "scale" : "3x"
    },
    {
      "idiom" : "iphone",
      "size" : "60x60",
      "scale" : "2x"
    },
    {
      "idiom" : "iphone",
      "size" : "60x60",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: MagicMove/Images.xcassets/avatar.imageset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "universal",
      "scale" : "1x",
      "filename" : "avatar.JPG"
    },
    {
      "idiom" : "universal",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: MagicMove/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>tk.bourne.$(PRODUCT_NAME:rfc1034identifier)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1</string>
	<key>LSRequiresIPhoneOS</key>
	<true/>
	<key>UILaunchStoryboardName</key>
	<string>LaunchScreen</string>
	<key>UIMainStoryboardFile</key>
	<string>Main</string>
	<key>UIRequiredDeviceCapabilities</key>
	<array>
		<string>armv7</string>
	</array>
	<key>UISupportedInterfaceOrientations</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
</dict>
</plist>


================================================
FILE: MagicMove/MMCollectionViewCell.swift
================================================
//
//  MMCollectionViewCell.swift
//  MagicMove
//
//  Created by BourneWeng on 15/7/13.
//  Copyright (c) 2015年 Bourne. All rights reserved.
//

import UIKit

class MMCollectionViewCell: UICollectionViewCell {
    
    @IBOutlet weak var imageView: UIImageView!
    @IBOutlet weak var textLabel: UILabel!
    
    
}


================================================
FILE: MagicMove/MagicMovePopTransion.swift
================================================
//
//  MagicMovePopTransion.swift
//  MagicMove
//
//  Created by BourneWeng on 15/7/13.
//  Copyright (c) 2015年 Bourne. All rights reserved.
//

import UIKit

class MagicMovePopTransion: NSObject, UIViewControllerAnimatedTransitioning {
   
    func transitionDuration(transitionContext: UIViewControllerContextTransitioning) -> NSTimeInterval {
        return 0.5
    }
    
    func animateTransition(transitionContext: UIViewControllerContextTransitioning) {
        let fromVC = transitionContext.viewControllerForKey(UITransitionContextFromViewControllerKey) as! DetailViewController
        let toVC = transitionContext.viewControllerForKey(UITransitionContextToViewControllerKey) as! ViewController
        let container = transitionContext.containerView()
        
        let snapshotView = fromVC.avatarImageView.snapshotViewAfterScreenUpdates(false)
        snapshotView.frame = container.convertRect(fromVC.avatarImageView.frame, fromView: fromVC.view)
        fromVC.avatarImageView.hidden = true
        
        toVC.view.frame = transitionContext.finalFrameForViewController(toVC)
        toVC.selectedCell.imageView.hidden = true
        
        container.insertSubview(toVC.view, belowSubview: fromVC.view)
        container.addSubview(snapshotView)
        
        UIView.animateWithDuration(transitionDuration(transitionContext), delay: 0, options: UIViewAnimationOptions.CurveEaseInOut, animations: { () -> Void in
            snapshotView.frame = container.convertRect(toVC.selectedCell.imageView.frame, fromView: toVC.selectedCell)
            fromVC.view.alpha = 0
            }) { (finish: Bool) -> Void in
                toVC.selectedCell.imageView.hidden = false
                snapshotView.removeFromSuperview()
                fromVC.avatarImageView.hidden = false
                
                transitionContext.completeTransition(!transitionContext.transitionWasCancelled())
        }
    }
}


================================================
FILE: MagicMove/MagicMoveTransion.swift
================================================
//
//  MagicMoveTransion.swift
//  MagicMove
//
//  Created by BourneWeng on 15/7/13.
//  Copyright (c) 2015年 Bourne. All rights reserved.
//

import UIKit

class MagicMoveTransion: NSObject, UIViewControllerAnimatedTransitioning {
    func transitionDuration(transitionContext: UIViewControllerContextTransitioning) -> NSTimeInterval {
        return 0.5
    }
    
    func animateTransition(transitionContext: UIViewControllerContextTransitioning) {
        //1.获取动画的源控制器和目标控制器
        let fromVC = transitionContext.viewControllerForKey(UITransitionContextFromViewControllerKey) as! ViewController
        let toVC = transitionContext.viewControllerForKey(UITransitionContextToViewControllerKey) as! DetailViewController
        let container = transitionContext.containerView()
        
        //2.创建一个 Cell 中 imageView 的截图,并把 imageView 隐藏,造成使用户以为移动的就是 imageView 的假象
        let snapshotView = fromVC.selectedCell.imageView.snapshotViewAfterScreenUpdates(false)
        snapshotView.frame = container.convertRect(fromVC.selectedCell.imageView.frame, fromView: fromVC.selectedCell)
        fromVC.selectedCell.imageView.hidden = true
        
        //3.设置目标控制器的位置,并把透明度设为0,在后面的动画中慢慢显示出来变为1
        toVC.view.frame = transitionContext.finalFrameForViewController(toVC)
        toVC.view.alpha = 0
        
        //4.都添加到 container 中。注意顺序不能错了
        container.addSubview(toVC.view)
        container.addSubview(snapshotView)
        
        //5.执行动画
        /*
        这时avatarImageView.frame的值只是跟在IB中一样的,
        如果换成屏幕尺寸不同的模拟器运行时avatarImageView会先移动到IB中的frame,动画结束后才会突然变成正确的frame。
        所以需要在动画执行前执行一次toVC.avatarImageView.layoutIfNeeded() update一次frame
        */
        toVC.avatarImageView.layoutIfNeeded()
        UIView.animateWithDuration(transitionDuration(transitionContext), delay: 0, options: UIViewAnimationOptions.CurveEaseInOut, animations: { () -> Void in
                snapshotView.frame = toVC.avatarImageView.frame
                toVC.view.alpha = 1
            }) { (finish: Bool) -> Void in
                fromVC.selectedCell.imageView.hidden = false
                toVC.avatarImageView.image = toVC.image
                snapshotView.removeFromSuperview()
                
                //一定要记得动画完成后执行此方法,让系统管理 navigation
                transitionContext.completeTransition(true)
        }
    }
}


================================================
FILE: MagicMove/ViewController.swift
================================================
//
//  ViewController.swift
//  MagicMove
//
//  Created by BourneWeng on 15/7/13.
//  Copyright (c) 2015年 Bourne. All rights reserved.
//

import UIKit

class ViewController: UICollectionViewController, UINavigationControllerDelegate {

    var selectedCell: MMCollectionViewCell!
    
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        
        self.navigationController?.delegate = self
    }
    
    func navigationController(navigationController: UINavigationController, animationControllerForOperation operation: UINavigationControllerOperation, fromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        if operation == UINavigationControllerOperation.Push {
            return MagicMoveTransion()
        } else {
            return nil
        }
    }
    
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        if segue.identifier == "detail" {
            let detailVC = segue.destinationViewController as! DetailViewController
            detailVC.image = self.selectedCell.imageView.image
        }
    }

    override func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        return 10
    }
    
    override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
        let cell = collectionView.dequeueReusableCellWithReuseIdentifier("cardCell", forIndexPath: indexPath) as! MMCollectionViewCell

        return cell
    }

    override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
        self.selectedCell = collectionView.cellForItemAtIndexPath(indexPath) as! MMCollectionViewCell
        
        self.performSegueWithIdentifier("detail", sender: nil)
    }
}



================================================
FILE: MagicMove.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
	archiveVersion = 1;
	classes = {
	};
	objectVersion = 46;
	objects = {

/* Begin PBXBuildFile section */
		A8FF09AB1B5372E300BD2C74 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8FF09AA1B5372E300BD2C74 /* AppDelegate.swift */; };
		A8FF09AD1B5372E300BD2C74 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8FF09AC1B5372E300BD2C74 /* ViewController.swift */; };
		A8FF09B01B5372E300BD2C74 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A8FF09AE1B5372E300BD2C74 /* Main.storyboard */; };
		A8FF09B21B5372E300BD2C74 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A8FF09B11B5372E300BD2C74 /* Images.xcassets */; };
		A8FF09B51B5372E300BD2C74 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = A8FF09B31B5372E300BD2C74 /* LaunchScreen.xib */; };
		A8FF09C11B5372E400BD2C74 /* MagicMoveTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8FF09C01B5372E400BD2C74 /* MagicMoveTests.swift */; };
		A8FF09CB1B538CB600BD2C74 /* DetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8FF09CA1B538CB600BD2C74 /* DetailViewController.swift */; };
		A8FF09CD1B5391F900BD2C74 /* MagicMoveTransion.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8FF09CC1B5391F900BD2C74 /* MagicMoveTransion.swift */; };
		A8FF09CF1B5399AD00BD2C74 /* MMCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8FF09CE1B5399AD00BD2C74 /* MMCollectionViewCell.swift */; };
		A8FF09D11B53A1AC00BD2C74 /* MagicMovePopTransion.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8FF09D01B53A1AC00BD2C74 /* MagicMovePopTransion.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
		A8FF09BB1B5372E400BD2C74 /* PBXContainerItemProxy */ = {
			isa = PBXContainerItemProxy;
			containerPortal = A8FF099D1B5372E300BD2C74 /* Project object */;
			proxyType = 1;
			remoteGlobalIDString = A8FF09A41B5372E300BD2C74;
			remoteInfo = MagicMove;
		};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
		A8FF09A51B5372E300BD2C74 /* MagicMove.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MagicMove.app; sourceTree = BUILT_PRODUCTS_DIR; };
		A8FF09A91B5372E300BD2C74 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
		A8FF09AA1B5372E300BD2C74 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
		A8FF09AC1B5372E300BD2C74 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
		A8FF09AF1B5372E300BD2C74 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
		A8FF09B11B5372E300BD2C74 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
		A8FF09B41B5372E300BD2C74 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
		A8FF09BA1B5372E400BD2C74 /* MagicMoveTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MagicMoveTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
		A8FF09BF1B5372E400BD2C74 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
		A8FF09C01B5372E400BD2C74 /* MagicMoveTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MagicMoveTests.swift; sourceTree = "<group>"; };
		A8FF09CA1B538CB600BD2C74 /* DetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DetailViewController.swift; sourceTree = "<group>"; };
		A8FF09CC1B5391F900BD2C74 /* MagicMoveTransion.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MagicMoveTransion.swift; sourceTree = "<group>"; };
		A8FF09CE1B5399AD00BD2C74 /* MMCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MMCollectionViewCell.swift; sourceTree = "<group>"; };
		A8FF09D01B53A1AC00BD2C74 /* MagicMovePopTransion.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MagicMovePopTransion.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
		A8FF09A21B5372E300BD2C74 /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		A8FF09B71B5372E400BD2C74 /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
		A8FF099C1B5372E300BD2C74 = {
			isa = PBXGroup;
			children = (
				A8FF09A71B5372E300BD2C74 /* MagicMove */,
				A8FF09BD1B5372E400BD2C74 /* MagicMoveTests */,
				A8FF09A61B5372E300BD2C74 /* Products */,
			);
			sourceTree = "<group>";
		};
		A8FF09A61B5372E300BD2C74 /* Products */ = {
			isa = PBXGroup;
			children = (
				A8FF09A51B5372E300BD2C74 /* MagicMove.app */,
				A8FF09BA1B5372E400BD2C74 /* MagicMoveTests.xctest */,
			);
			name = Products;
			sourceTree = "<group>";
		};
		A8FF09A71B5372E300BD2C74 /* MagicMove */ = {
			isa = PBXGroup;
			children = (
				A8FF09AA1B5372E300BD2C74 /* AppDelegate.swift */,
				A8FF09AC1B5372E300BD2C74 /* ViewController.swift */,
				A8FF09CE1B5399AD00BD2C74 /* MMCollectionViewCell.swift */,
				A8FF09CA1B538CB600BD2C74 /* DetailViewController.swift */,
				A8FF09CC1B5391F900BD2C74 /* MagicMoveTransion.swift */,
				A8FF09D01B53A1AC00BD2C74 /* MagicMovePopTransion.swift */,
				A8FF09AE1B5372E300BD2C74 /* Main.storyboard */,
				A8FF09B11B5372E300BD2C74 /* Images.xcassets */,
				A8FF09B31B5372E300BD2C74 /* LaunchScreen.xib */,
				A8FF09A81B5372E300BD2C74 /* Supporting Files */,
			);
			path = MagicMove;
			sourceTree = "<group>";
		};
		A8FF09A81B5372E300BD2C74 /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
				A8FF09A91B5372E300BD2C74 /* Info.plist */,
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
		A8FF09BD1B5372E400BD2C74 /* MagicMoveTests */ = {
			isa = PBXGroup;
			children = (
				A8FF09C01B5372E400BD2C74 /* MagicMoveTests.swift */,
				A8FF09BE1B5372E400BD2C74 /* Supporting Files */,
			);
			path = MagicMoveTests;
			sourceTree = "<group>";
		};
		A8FF09BE1B5372E400BD2C74 /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
				A8FF09BF1B5372E400BD2C74 /* Info.plist */,
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
		A8FF09A41B5372E300BD2C74 /* MagicMove */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = A8FF09C41B5372E400BD2C74 /* Build configuration list for PBXNativeTarget "MagicMove" */;
			buildPhases = (
				A8FF09A11B5372E300BD2C74 /* Sources */,
				A8FF09A21B5372E300BD2C74 /* Frameworks */,
				A8FF09A31B5372E300BD2C74 /* Resources */,
			);
			buildRules = (
			);
			dependencies = (
			);
			name = MagicMove;
			productName = MagicMove;
			productReference = A8FF09A51B5372E300BD2C74 /* MagicMove.app */;
			productType = "com.apple.product-type.application";
		};
		A8FF09B91B5372E400BD2C74 /* MagicMoveTests */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = A8FF09C71B5372E400BD2C74 /* Build configuration list for PBXNativeTarget "MagicMoveTests" */;
			buildPhases = (
				A8FF09B61B5372E400BD2C74 /* Sources */,
				A8FF09B71B5372E400BD2C74 /* Frameworks */,
				A8FF09B81B5372E400BD2C74 /* Resources */,
			);
			buildRules = (
			);
			dependencies = (
				A8FF09BC1B5372E400BD2C74 /* PBXTargetDependency */,
			);
			name = MagicMoveTests;
			productName = MagicMoveTests;
			productReference = A8FF09BA1B5372E400BD2C74 /* MagicMoveTests.xctest */;
			productType = "com.apple.product-type.bundle.unit-test";
		};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
		A8FF099D1B5372E300BD2C74 /* Project object */ = {
			isa = PBXProject;
			attributes = {
				LastUpgradeCheck = 0640;
				ORGANIZATIONNAME = Bourne;
				TargetAttributes = {
					A8FF09A41B5372E300BD2C74 = {
						CreatedOnToolsVersion = 6.4;
					};
					A8FF09B91B5372E400BD2C74 = {
						CreatedOnToolsVersion = 6.4;
						TestTargetID = A8FF09A41B5372E300BD2C74;
					};
				};
			};
			buildConfigurationList = A8FF09A01B5372E300BD2C74 /* Build configuration list for PBXProject "MagicMove" */;
			compatibilityVersion = "Xcode 3.2";
			developmentRegion = English;
			hasScannedForEncodings = 0;
			knownRegions = (
				en,
				Base,
			);
			mainGroup = A8FF099C1B5372E300BD2C74;
			productRefGroup = A8FF09A61B5372E300BD2C74 /* Products */;
			projectDirPath = "";
			projectRoot = "";
			targets = (
				A8FF09A41B5372E300BD2C74 /* MagicMove */,
				A8FF09B91B5372E400BD2C74 /* MagicMoveTests */,
			);
		};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
		A8FF09A31B5372E300BD2C74 /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				A8FF09B01B5372E300BD2C74 /* Main.storyboard in Resources */,
				A8FF09B51B5372E300BD2C74 /* LaunchScreen.xib in Resources */,
				A8FF09B21B5372E300BD2C74 /* Images.xcassets in Resources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		A8FF09B81B5372E400BD2C74 /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
		A8FF09A11B5372E300BD2C74 /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				A8FF09D11B53A1AC00BD2C74 /* MagicMovePopTransion.swift in Sources */,
				A8FF09CD1B5391F900BD2C74 /* MagicMoveTransion.swift in Sources */,
				A8FF09CB1B538CB600BD2C74 /* DetailViewController.swift in Sources */,
				A8FF09AD1B5372E300BD2C74 /* ViewController.swift in Sources */,
				A8FF09AB1B5372E300BD2C74 /* AppDelegate.swift in Sources */,
				A8FF09CF1B5399AD00BD2C74 /* MMCollectionViewCell.swift in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		A8FF09B61B5372E400BD2C74 /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				A8FF09C11B5372E400BD2C74 /* MagicMoveTests.swift in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
		A8FF09BC1B5372E400BD2C74 /* PBXTargetDependency */ = {
			isa = PBXTargetDependency;
			target = A8FF09A41B5372E300BD2C74 /* MagicMove */;
			targetProxy = A8FF09BB1B5372E400BD2C74 /* PBXContainerItemProxy */;
		};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
		A8FF09AE1B5372E300BD2C74 /* Main.storyboard */ = {
			isa = PBXVariantGroup;
			children = (
				A8FF09AF1B5372E300BD2C74 /* Base */,
			);
			name = Main.storyboard;
			sourceTree = "<group>";
		};
		A8FF09B31B5372E300BD2C74 /* LaunchScreen.xib */ = {
			isa = PBXVariantGroup;
			children = (
				A8FF09B41B5372E300BD2C74 /* Base */,
			);
			name = LaunchScreen.xib;
			sourceTree = "<group>";
		};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
		A8FF09C21B5372E400BD2C74 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = NO;
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_DYNAMIC_NO_PIC = NO;
				GCC_NO_COMMON_BLOCKS = YES;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 8.4;
				MTL_ENABLE_DEBUG_INFO = YES;
				ONLY_ACTIVE_ARCH = YES;
				SDKROOT = iphoneos;
				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
			};
			name = Debug;
		};
		A8FF09C31B5372E400BD2C74 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = NO;
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
				ENABLE_NS_ASSERTIONS = NO;
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_NO_COMMON_BLOCKS = YES;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 8.4;
				MTL_ENABLE_DEBUG_INFO = NO;
				SDKROOT = iphoneos;
				VALIDATE_PRODUCT = YES;
			};
			name = Release;
		};
		A8FF09C51B5372E400BD2C74 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				INFOPLIST_FILE = MagicMove/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
				PRODUCT_NAME = "$(TARGET_NAME)";
			};
			name = Debug;
		};
		A8FF09C61B5372E400BD2C74 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				INFOPLIST_FILE = MagicMove/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
				PRODUCT_NAME = "$(TARGET_NAME)";
			};
			name = Release;
		};
		A8FF09C81B5372E400BD2C74 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				BUNDLE_LOADER = "$(TEST_HOST)";
				FRAMEWORK_SEARCH_PATHS = (
					"$(SDKROOT)/Developer/Library/Frameworks",
					"$(inherited)",
				);
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				INFOPLIST_FILE = MagicMoveTests/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
				PRODUCT_NAME = "$(TARGET_NAME)";
				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MagicMove.app/MagicMove";
			};
			name = Debug;
		};
		A8FF09C91B5372E400BD2C74 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				BUNDLE_LOADER = "$(TEST_HOST)";
				FRAMEWORK_SEARCH_PATHS = (
					"$(SDKROOT)/Developer/Library/Frameworks",
					"$(inherited)",
				);
				INFOPLIST_FILE = MagicMoveTests/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
				PRODUCT_NAME = "$(TARGET_NAME)";
				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MagicMove.app/MagicMove";
			};
			name = Release;
		};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
		A8FF09A01B5372E300BD2C74 /* Build configuration list for PBXProject "MagicMove" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				A8FF09C21B5372E400BD2C74 /* Debug */,
				A8FF09C31B5372E400BD2C74 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
		A8FF09C41B5372E400BD2C74 /* Build configuration list for PBXNativeTarget "MagicMove" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				A8FF09C51B5372E400BD2C74 /* Debug */,
				A8FF09C61B5372E400BD2C74 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
		};
		A8FF09C71B5372E400BD2C74 /* Build configuration list for PBXNativeTarget "MagicMoveTests" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				A8FF09C81B5372E400BD2C74 /* Debug */,
				A8FF09C91B5372E400BD2C74 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
		};
/* End XCConfigurationList section */
	};
	rootObject = A8FF099D1B5372E300BD2C74 /* Project object */;
}


================================================
FILE: MagicMove.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
   version = "1.0">
   <FileRef
      location = "self:MagicMove.xcodeproj">
   </FileRef>
</Workspace>


================================================
FILE: MagicMove.xcodeproj/project.xcworkspace/xcshareddata/MagicMove.xccheckout
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>IDESourceControlProjectFavoriteDictionaryKey</key>
	<false/>
	<key>IDESourceControlProjectIdentifier</key>
	<string>F5CB760D-0578-4DA8-942A-2452A8DAEFAE</string>
	<key>IDESourceControlProjectName</key>
	<string>MagicMove</string>
	<key>IDESourceControlProjectOriginsDictionary</key>
	<dict>
		<key>B055F872B1A4A19B55EE359B71B2B43F04C3DC7C</key>
		<string>https://github.com/BourneWeng/MagicMove.git</string>
	</dict>
	<key>IDESourceControlProjectPath</key>
	<string>MagicMove.xcodeproj</string>
	<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
	<dict>
		<key>B055F872B1A4A19B55EE359B71B2B43F04C3DC7C</key>
		<string>../..</string>
	</dict>
	<key>IDESourceControlProjectURL</key>
	<string>https://github.com/BourneWeng/MagicMove.git</string>
	<key>IDESourceControlProjectVersion</key>
	<integer>111</integer>
	<key>IDESourceControlProjectWCCIdentifier</key>
	<string>B055F872B1A4A19B55EE359B71B2B43F04C3DC7C</string>
	<key>IDESourceControlProjectWCConfigurations</key>
	<array>
		<dict>
			<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
			<string>public.vcs.git</string>
			<key>IDESourceControlWCCIdentifierKey</key>
			<string>B055F872B1A4A19B55EE359B71B2B43F04C3DC7C</string>
			<key>IDESourceControlWCCName</key>
			<string>MagicMove</string>
		</dict>
	</array>
</dict>
</plist>


================================================
FILE: MagicMove.xcodeproj/xcuserdata/BourneWeng.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
   type = "1"
   version = "2.0">
</Bucket>


================================================
FILE: MagicMove.xcodeproj/xcuserdata/BourneWeng.xcuserdatad/xcschemes/MagicMove.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
   LastUpgradeVersion = "0640"
   version = "1.3">
   <BuildAction
      parallelizeBuildables = "YES"
      buildImplicitDependencies = "YES">
      <BuildActionEntries>
         <BuildActionEntry
            buildForTesting = "YES"
            buildForRunning = "YES"
            buildForProfiling = "YES"
            buildForArchiving = "YES"
            buildForAnalyzing = "YES">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "A8FF09A41B5372E300BD2C74"
               BuildableName = "MagicMove.app"
               BlueprintName = "MagicMove"
               ReferencedContainer = "container:MagicMove.xcodeproj">
            </BuildableReference>
         </BuildActionEntry>
         <BuildActionEntry
            buildForTesting = "YES"
            buildForRunning = "YES"
            buildForProfiling = "NO"
            buildForArchiving = "NO"
            buildForAnalyzing = "YES">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "A8FF09B91B5372E400BD2C74"
               BuildableName = "MagicMoveTests.xctest"
               BlueprintName = "MagicMoveTests"
               ReferencedContainer = "container:MagicMove.xcodeproj">
            </BuildableReference>
         </BuildActionEntry>
      </BuildActionEntries>
   </BuildAction>
   <TestAction
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      shouldUseLaunchSchemeArgsEnv = "YES"
      buildConfiguration = "Debug">
      <Testables>
         <TestableReference
            skipped = "NO">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "A8FF09B91B5372E400BD2C74"
               BuildableName = "MagicMoveTests.xctest"
               BlueprintName = "MagicMoveTests"
               ReferencedContainer = "container:MagicMove.xcodeproj">
            </BuildableReference>
         </TestableReference>
      </Testables>
      <MacroExpansion>
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "A8FF09A41B5372E300BD2C74"
            BuildableName = "MagicMove.app"
            BlueprintName = "MagicMove"
            ReferencedContainer = "container:MagicMove.xcodeproj">
         </BuildableReference>
      </MacroExpansion>
   </TestAction>
   <LaunchAction
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      launchStyle = "0"
      useCustomWorkingDirectory = "NO"
      buildConfiguration = "Debug"
      ignoresPersistentStateOnLaunch = "NO"
      debugDocumentVersioning = "YES"
      allowLocationSimulation = "YES">
      <BuildableProductRunnable
         runnableDebuggingMode = "0">
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "A8FF09A41B5372E300BD2C74"
            BuildableName = "MagicMove.app"
            BlueprintName = "MagicMove"
            ReferencedContainer = "container:MagicMove.xcodeproj">
         </BuildableReference>
      </BuildableProductRunnable>
      <AdditionalOptions>
      </AdditionalOptions>
   </LaunchAction>
   <ProfileAction
      shouldUseLaunchSchemeArgsEnv = "YES"
      savedToolIdentifier = ""
      useCustomWorkingDirectory = "NO"
      buildConfiguration = "Release"
      debugDocumentVersioning = "YES">
      <BuildableProductRunnable
         runnableDebuggingMode = "0">
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "A8FF09A41B5372E300BD2C74"
            BuildableName = "MagicMove.app"
            BlueprintName = "MagicMove"
            ReferencedContainer = "container:MagicMove.xcodeproj">
         </BuildableReference>
      </BuildableProductRunnable>
   </ProfileAction>
   <AnalyzeAction
      buildConfiguration = "Debug">
   </AnalyzeAction>
   <ArchiveAction
      buildConfiguration = "Release"
      revealArchiveInOrganizer = "YES">
   </ArchiveAction>
</Scheme>


================================================
FILE: MagicMove.xcodeproj/xcuserdata/BourneWeng.xcuserdatad/xcschemes/xcschememanagement.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>SchemeUserState</key>
	<dict>
		<key>MagicMove.xcscheme</key>
		<dict>
			<key>orderHint</key>
			<integer>0</integer>
		</dict>
	</dict>
	<key>SuppressBuildableAutocreation</key>
	<dict>
		<key>A8FF09A41B5372E300BD2C74</key>
		<dict>
			<key>primary</key>
			<true/>
		</dict>
		<key>A8FF09B91B5372E400BD2C74</key>
		<dict>
			<key>primary</key>
			<true/>
		</dict>
	</dict>
</dict>
</plist>


================================================
FILE: MagicMoveTests/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>tk.bourne.$(PRODUCT_NAME:rfc1034identifier)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>BNDL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1</string>
</dict>
</plist>


================================================
FILE: MagicMoveTests/MagicMoveTests.swift
================================================
//
//  MagicMoveTests.swift
//  MagicMoveTests
//
//  Created by BourneWeng on 15/7/13.
//  Copyright (c) 2015年 Bourne. All rights reserved.
//

import UIKit
import XCTest

class MagicMoveTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    func testExample() {
        // This is an example of a functional test case.
        XCTAssert(true, "Pass")
    }
    
    func testPerformanceExample() {
        // This is an example of a performance test case.
        self.measureBlock() {
            // Put the code you want to measure the time of here.
        }
    }
    
}


================================================
FILE: README.md
================================================
###一个自定义转场动画示例,效果如下:   
详细实现请看这里:[关于自定义转场动画,我都告诉你](http://www.jianshu.com/p/38cd35968864)

![](MagicMove.gif)
Download .txt
gitextract_f2gnqyp2/

├── MagicMove/
│   ├── AppDelegate.swift
│   ├── Base.lproj/
│   │   ├── LaunchScreen.xib
│   │   └── Main.storyboard
│   ├── DetailViewController.swift
│   ├── Images.xcassets/
│   │   ├── 001.imageset/
│   │   │   └── Contents.json
│   │   ├── AppIcon.appiconset/
│   │   │   └── Contents.json
│   │   └── avatar.imageset/
│   │       └── Contents.json
│   ├── Info.plist
│   ├── MMCollectionViewCell.swift
│   ├── MagicMovePopTransion.swift
│   ├── MagicMoveTransion.swift
│   └── ViewController.swift
├── MagicMove.xcodeproj/
│   ├── project.pbxproj
│   ├── project.xcworkspace/
│   │   ├── contents.xcworkspacedata
│   │   ├── xcshareddata/
│   │   │   └── MagicMove.xccheckout
│   │   └── xcuserdata/
│   │       └── BourneWeng.xcuserdatad/
│   │           └── UserInterfaceState.xcuserstate
│   └── xcuserdata/
│       └── BourneWeng.xcuserdatad/
│           ├── xcdebugger/
│           │   └── Breakpoints_v2.xcbkptlist
│           └── xcschemes/
│               ├── MagicMove.xcscheme
│               └── xcschememanagement.plist
├── MagicMoveTests/
│   ├── Info.plist
│   └── MagicMoveTests.swift
└── README.md
Condensed preview — 22 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (64K chars).
[
  {
    "path": "MagicMove/AppDelegate.swift",
    "chars": 2140,
    "preview": "//\n//  AppDelegate.swift\n//  MagicMove\n//\n//  Created by BourneWeng on 15/7/13.\n//  Copyright (c) 2015年 Bourne. All righ"
  },
  {
    "path": "MagicMove/Base.lproj/LaunchScreen.xib",
    "chars": 3701,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" versi"
  },
  {
    "path": "MagicMove/Base.lproj/Main.storyboard",
    "chars": 15145,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
  },
  {
    "path": "MagicMove/DetailViewController.swift",
    "chars": 2558,
    "preview": "//\n//  DetailViewController.swift\n//  MagicMove\n//\n//  Created by BourneWeng on 15/7/13.\n//  Copyright (c) 2015年 Bourne."
  },
  {
    "path": "MagicMove/Images.xcassets/001.imageset/Contents.json",
    "chars": 300,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"001.png\"\n    },\n    {\n    "
  },
  {
    "path": "MagicMove/Images.xcassets/AppIcon.appiconset/Contents.json",
    "chars": 585,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\""
  },
  {
    "path": "MagicMove/Images.xcassets/avatar.imageset/Contents.json",
    "chars": 303,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"avatar.JPG\"\n    },\n    {\n "
  },
  {
    "path": "MagicMove/Info.plist",
    "chars": 1220,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "MagicMove/MMCollectionViewCell.swift",
    "chars": 318,
    "preview": "//\n//  MMCollectionViewCell.swift\n//  MagicMove\n//\n//  Created by BourneWeng on 15/7/13.\n//  Copyright (c) 2015年 Bourne."
  },
  {
    "path": "MagicMove/MagicMovePopTransion.swift",
    "chars": 1932,
    "preview": "//\n//  MagicMovePopTransion.swift\n//  MagicMove\n//\n//  Created by BourneWeng on 15/7/13.\n//  Copyright (c) 2015年 Bourne."
  },
  {
    "path": "MagicMove/MagicMoveTransion.swift",
    "chars": 2338,
    "preview": "//\n//  MagicMoveTransion.swift\n//  MagicMove\n//\n//  Created by BourneWeng on 15/7/13.\n//  Copyright (c) 2015年 Bourne. Al"
  },
  {
    "path": "MagicMove/ViewController.swift",
    "chars": 1925,
    "preview": "//\n//  ViewController.swift\n//  MagicMove\n//\n//  Created by BourneWeng on 15/7/13.\n//  Copyright (c) 2015年 Bourne. All r"
  },
  {
    "path": "MagicMove.xcodeproj/project.pbxproj",
    "chars": 17421,
    "preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
  },
  {
    "path": "MagicMove.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "chars": 154,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:MagicMove.xcode"
  },
  {
    "path": "MagicMove.xcodeproj/project.xcworkspace/xcshareddata/MagicMove.xccheckout",
    "chars": 1490,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "MagicMove.xcodeproj/xcuserdata/BourneWeng.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist",
    "chars": 91,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Bucket\n   type = \"1\"\n   version = \"2.0\">\n</Bucket>\n"
  },
  {
    "path": "MagicMove.xcodeproj/xcuserdata/BourneWeng.xcuserdatad/xcschemes/MagicMove.xcscheme",
    "chars": 4260,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0640\"\n   version = \"1.3\">\n   <BuildAction\n      "
  },
  {
    "path": "MagicMove.xcodeproj/xcuserdata/BourneWeng.xcuserdatad/xcschemes/xcschememanagement.plist",
    "chars": 571,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "MagicMoveTests/Info.plist",
    "chars": 748,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "MagicMoveTests/MagicMoveTests.swift",
    "chars": 901,
    "preview": "//\n//  MagicMoveTests.swift\n//  MagicMoveTests\n//\n//  Created by BourneWeng on 15/7/13.\n//  Copyright (c) 2015年 Bourne. "
  },
  {
    "path": "README.md",
    "chars": 109,
    "preview": "###一个自定义转场动画示例,效果如下:   \n详细实现请看这里:[关于自定义转场动画,我都告诉你](http://www.jianshu.com/p/38cd35968864)\n\n![](MagicMove.gif)"
  }
]

// ... and 1 more files (download for full content)

About this extraction

This page contains the full source code of the BourneWeng/MagicMove GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 22 files (56.8 KB), approximately 16.6k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!