├── README.md ├── ScrollCardDemo ├── ScrollCardDemo.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── project.pbxproj ├── ScrollCardDemoTests │ ├── Info.plist │ └── ScrollCardDemoTests.swift ├── ScrollCardDemoUITests │ ├── Info.plist │ └── ScrollCardDemoUITests.swift └── ScrollCardDemo │ ├── CustomViewCell.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard │ ├── ViewController.swift │ ├── AppDelegate.swift │ └── CustomLayout.swift ├── LICENSE └── .gitignore /README.md: -------------------------------------------------------------------------------- 1 | # ScrollCardDemo 2 | swift实现 卡片横向缩放滑动 3 | 4 | --- 5 | ![卡片滑动.gif](http://upload-images.jianshu.io/upload_images/1306765-340b5754d9e6879a.gif?imageMogr2/auto-orient/strip) 6 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo/CustomViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CustomViewCell.swift 3 | // ScrollCardDemo 4 | // 5 | // Created by 陈晓龙 on 2017/7/17. 6 | // Copyright © 2017年 陈晓龙. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CustomViewCell: UICollectionViewCell { 12 | var lable:UILabel? 13 | 14 | override init(frame: CGRect) { 15 | super.init(frame: frame) 16 | lable = UILabel(frame: CGRect(x: (SCREEN_WIDTH-80)/2-100/2, y:100 , width: 100, height: 100)) 17 | lable?.backgroundColor = UIColor.purple 18 | lable?.textAlignment = NSTextAlignment.center 19 | self.addSubview(lable!) 20 | } 21 | 22 | required init?(coder aDecoder: NSCoder) { 23 | fatalError("init(coder:) has not been implemented") 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 xlchen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemoTests/ScrollCardDemoTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ScrollCardDemoTests.swift 3 | // ScrollCardDemoTests 4 | // 5 | // Created by 陈晓龙 on 2017/7/17. 6 | // Copyright © 2017年 陈晓龙. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import ScrollCardDemo 11 | 12 | class ScrollCardDemoTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemoUITests/ScrollCardDemoUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ScrollCardDemoUITests.swift 3 | // ScrollCardDemoUITests 4 | // 5 | // Created by 陈晓龙 on 2017/7/17. 6 | // Copyright © 2017年 陈晓龙. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class ScrollCardDemoUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | 18 | // In UI tests it is usually best to stop immediately when a failure occurs. 19 | continueAfterFailure = false 20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 21 | XCUIApplication().launch() 22 | 23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 24 | } 25 | 26 | override func tearDown() { 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. 28 | super.tearDown() 29 | } 30 | 31 | func testExample() { 32 | // Use recording to get started writing UI tests. 33 | // Use XCTAssert and related functions to verify your tests produce the correct results. 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | .build/ 41 | 42 | # CocoaPods 43 | # 44 | # We recommend against adding the Pods directory to your .gitignore. However 45 | # you should judge for yourself, the pros and cons are mentioned at: 46 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 47 | # 48 | # Pods/ 49 | 50 | # Carthage 51 | # 52 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 53 | # Carthage/Checkouts 54 | 55 | Carthage/Build 56 | 57 | # fastlane 58 | # 59 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 60 | # screenshots whenever they are needed. 61 | # For more information about the recommended setup visit: 62 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 63 | 64 | fastlane/report.xml 65 | fastlane/Preview.html 66 | fastlane/screenshots 67 | fastlane/test_output 68 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ScrollCardDemo 4 | // 5 | // Created by 陈晓龙 on 2017/7/17. 6 | // Copyright © 2017年 陈晓龙. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | let SCREEN_WIDTH = UIScreen.main.bounds.size.width 11 | let SCREEN_HEIGHT = UIScreen.main.bounds.size.height 12 | class ViewController: UIViewController { 13 | private var collectionView:UICollectionView? 14 | private var layout:CustomLayout? 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | // Do any additional setup after loading the view, typically from a nib. 18 | 19 | setepUI() 20 | } 21 | 22 | func setepUI() { 23 | layout = CustomLayout() 24 | layout?.itemSize = CGSize(width: SCREEN_WIDTH-80, height: SCREEN_HEIGHT-64-120) 25 | 26 | let rect = CGRect(x: 0, y: 64, width:SCREEN_WIDTH , height: SCREEN_HEIGHT-64) 27 | collectionView = UICollectionView(frame: rect, collectionViewLayout: layout!) 28 | collectionView?.delegate = self 29 | collectionView?.dataSource = self 30 | view.addSubview(collectionView!) 31 | collectionView?.register(CustomViewCell.self, forCellWithReuseIdentifier: "identifier") 32 | collectionView?.backgroundColor = UIColor.red 33 | 34 | } 35 | 36 | } 37 | // MARK: -- delegate and datasource 38 | extension ViewController: 39 | UICollectionViewDelegate, 40 | UICollectionViewDataSource, 41 | UICollectionViewDelegateFlowLayout{ 42 | 43 | func numberOfSections(in collectionView: UICollectionView) -> Int { 44 | return 1 45 | } 46 | 47 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 48 | return 10 49 | } 50 | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 51 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "identifier", for: indexPath) as! CustomViewCell 52 | cell.backgroundColor = UIColor.orange 53 | cell.lable?.text = "\(indexPath.row)/\(10)" 54 | return cell 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ScrollCardDemo 4 | // 5 | // Created by 陈晓龙 on 2017/7/17. 6 | // Copyright © 2017年 陈晓龙. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | let ddd = ViewController() 19 | 20 | 21 | return true 22 | } 23 | 24 | func applicationWillResignActive(_ application: UIApplication) { 25 | // 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. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | func applicationDidEnterBackground(_ application: UIApplication) { 30 | // 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. 31 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 32 | } 33 | 34 | func applicationWillEnterForeground(_ application: UIApplication) { 35 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 36 | } 37 | 38 | func applicationDidBecomeActive(_ application: UIApplication) { 39 | // 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. 40 | } 41 | 42 | func applicationWillTerminate(_ application: UIApplication) { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo/CustomLayout.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CustomLayout.swift 3 | // ScrollCardDemo 4 | // 5 | // Created by 陈晓龙 on 2017/7/17. 6 | // Copyright © 2017年 陈晓龙. All rights reserved. 7 | // 8 | import UIKit 9 | 10 | class CustomLayout: UICollectionViewFlowLayout { 11 | private let ScaleFactor:CGFloat = 0.001//缩放因子 12 | //MARK:--- 布局之前的准备工作 初始化 这个方法只会调用一次 13 | override func prepare() { 14 | scrollDirection = UICollectionViewScrollDirection.horizontal 15 | minimumLineSpacing = 20.0 16 | sectionInset = UIEdgeInsets(top: 0, left: 40, bottom: 0, right: 40) 17 | super.prepare() 18 | } 19 | //(该方法默认返回false) 返回true frame发生改变就重新布局 内部会重新调用prepare 和layoutAttributesForElementsInRect 20 | override func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool { 21 | return true 22 | } 23 | 24 | //MARK:---用来计算出rect这个范围内所有cell的UICollectionViewLayoutAttributes, 25 | override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { 26 | //根据当前滚动进行对每个cell进行缩放 27 | //首先获取 当前rect范围内的 attributes对象 28 | let array = super.layoutAttributesForElements(in: rect) 29 | 30 | //计算缩放比 首先计算出整体中心点的X值 和每个cell的中心点X的值 31 | //用着两个x值的差值 ,计算出绝对值, 32 | // 33 | //colleciotnView中心点的值 34 | let centerX = (collectionView?.contentOffset.x)! + (collectionView?.bounds.size.width)!/2 35 | //循环遍历每个attributes对象 对每个对象进行缩放 36 | for attr in array! { 37 | //计算每个对象cell中心点的X值 38 | let cell_centerX = attr.center.x 39 | 40 | //计算两个中心点的便宜(距离) 41 | //距离越大缩放比越小,距离小 缩放比越大,缩放比最大为1,即重合 42 | let distance = abs(cell_centerX-centerX) 43 | let scale:CGFloat = 1/(1+distance*ScaleFactor) 44 | attr.transform3D = CATransform3DMakeScale(1.0, scale, 1.0) 45 | 46 | } 47 | 48 | return array 49 | } 50 | 51 | /// <#Description#> 52 | /// 53 | /// - Parameter proposedContentOffset: 当手指滑动的时候 最终的停止的偏移量 54 | /// - Returns: 返回最后停止后的点 55 | override func targetContentOffset(forProposedContentOffset proposedContentOffset: CGPoint, withScrollingVelocity velocity: CGPoint) -> CGPoint { 56 | let visibleX = proposedContentOffset.x 57 | let visibleY = proposedContentOffset.y 58 | let visibleW = collectionView?.bounds.size.width 59 | let visibleH = collectionView?.bounds.size.height 60 | //获取可视区域 61 | let targetRect = CGRect(x: visibleX, y: visibleY, width: visibleW!, height: visibleH!) 62 | 63 | //中心点的值 64 | let centerX = proposedContentOffset.x + (collectionView?.bounds.size.width)!/2 65 | 66 | //获取可视区域内的attributes对象 67 | let attrArr = super.layoutAttributesForElements(in: targetRect)! 68 | //如果第0个属性距离最小 69 | var min_attr = attrArr[0] 70 | for attributes in attrArr { 71 | if (abs(attributes.center.x-centerX) < abs(min_attr.center.x-centerX)) { 72 | min_attr = attributes 73 | } 74 | } 75 | //计算出距离中心点 最小的那个cell 和整体中心点的偏移 76 | let ofsetX = min_attr.center.x - centerX 77 | return CGPoint(x: proposedContentOffset.x+ofsetX, y: proposedContentOffset.y) 78 | } 79 | 80 | } 81 | 82 | -------------------------------------------------------------------------------- /ScrollCardDemo/ScrollCardDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13561B0F1F1D036800499200 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13561B0E1F1D036800499200 /* AppDelegate.swift */; }; 11 | 13561B111F1D036800499200 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13561B101F1D036800499200 /* ViewController.swift */; }; 12 | 13561B141F1D036800499200 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 13561B121F1D036800499200 /* Main.storyboard */; }; 13 | 13561B161F1D036800499200 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13561B151F1D036800499200 /* Assets.xcassets */; }; 14 | 13561B191F1D036800499200 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 13561B171F1D036800499200 /* LaunchScreen.storyboard */; }; 15 | 13561B241F1D036800499200 /* ScrollCardDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13561B231F1D036800499200 /* ScrollCardDemoTests.swift */; }; 16 | 13561B2F1F1D036800499200 /* ScrollCardDemoUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13561B2E1F1D036800499200 /* ScrollCardDemoUITests.swift */; }; 17 | 13561B3D1F1D055300499200 /* CustomViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13561B3C1F1D055300499200 /* CustomViewCell.swift */; }; 18 | 13561B3F1F1D057A00499200 /* CustomLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13561B3E1F1D057A00499200 /* CustomLayout.swift */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 13561B201F1D036800499200 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 13561B031F1D036800499200 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 13561B0A1F1D036800499200; 27 | remoteInfo = ScrollCardDemo; 28 | }; 29 | 13561B2B1F1D036800499200 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 13561B031F1D036800499200 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 13561B0A1F1D036800499200; 34 | remoteInfo = ScrollCardDemo; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 13561B0B1F1D036800499200 /* ScrollCardDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ScrollCardDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 13561B0E1F1D036800499200 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 41 | 13561B101F1D036800499200 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 42 | 13561B131F1D036800499200 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | 13561B151F1D036800499200 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 44 | 13561B181F1D036800499200 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 45 | 13561B1A1F1D036800499200 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 13561B1F1F1D036800499200 /* ScrollCardDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ScrollCardDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 13561B231F1D036800499200 /* ScrollCardDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScrollCardDemoTests.swift; sourceTree = ""; }; 48 | 13561B251F1D036800499200 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 13561B2A1F1D036800499200 /* ScrollCardDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ScrollCardDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 13561B2E1F1D036800499200 /* ScrollCardDemoUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScrollCardDemoUITests.swift; sourceTree = ""; }; 51 | 13561B301F1D036800499200 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 13561B3C1F1D055300499200 /* CustomViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomViewCell.swift; sourceTree = ""; }; 53 | 13561B3E1F1D057A00499200 /* CustomLayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomLayout.swift; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 13561B081F1D036800499200 /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | 13561B1C1F1D036800499200 /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | 13561B271F1D036800499200 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | 13561B021F1D036800499200 = { 82 | isa = PBXGroup; 83 | children = ( 84 | 13561B0D1F1D036800499200 /* ScrollCardDemo */, 85 | 13561B221F1D036800499200 /* ScrollCardDemoTests */, 86 | 13561B2D1F1D036800499200 /* ScrollCardDemoUITests */, 87 | 13561B0C1F1D036800499200 /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | 13561B0C1F1D036800499200 /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 13561B0B1F1D036800499200 /* ScrollCardDemo.app */, 95 | 13561B1F1F1D036800499200 /* ScrollCardDemoTests.xctest */, 96 | 13561B2A1F1D036800499200 /* ScrollCardDemoUITests.xctest */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | 13561B0D1F1D036800499200 /* ScrollCardDemo */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 13561B0E1F1D036800499200 /* AppDelegate.swift */, 105 | 13561B101F1D036800499200 /* ViewController.swift */, 106 | 13561B3C1F1D055300499200 /* CustomViewCell.swift */, 107 | 13561B3E1F1D057A00499200 /* CustomLayout.swift */, 108 | 13561B121F1D036800499200 /* Main.storyboard */, 109 | 13561B151F1D036800499200 /* Assets.xcassets */, 110 | 13561B171F1D036800499200 /* LaunchScreen.storyboard */, 111 | 13561B1A1F1D036800499200 /* Info.plist */, 112 | ); 113 | path = ScrollCardDemo; 114 | sourceTree = ""; 115 | }; 116 | 13561B221F1D036800499200 /* ScrollCardDemoTests */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 13561B231F1D036800499200 /* ScrollCardDemoTests.swift */, 120 | 13561B251F1D036800499200 /* Info.plist */, 121 | ); 122 | path = ScrollCardDemoTests; 123 | sourceTree = ""; 124 | }; 125 | 13561B2D1F1D036800499200 /* ScrollCardDemoUITests */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 13561B2E1F1D036800499200 /* ScrollCardDemoUITests.swift */, 129 | 13561B301F1D036800499200 /* Info.plist */, 130 | ); 131 | path = ScrollCardDemoUITests; 132 | sourceTree = ""; 133 | }; 134 | /* End PBXGroup section */ 135 | 136 | /* Begin PBXNativeTarget section */ 137 | 13561B0A1F1D036800499200 /* ScrollCardDemo */ = { 138 | isa = PBXNativeTarget; 139 | buildConfigurationList = 13561B331F1D036800499200 /* Build configuration list for PBXNativeTarget "ScrollCardDemo" */; 140 | buildPhases = ( 141 | 13561B071F1D036800499200 /* Sources */, 142 | 13561B081F1D036800499200 /* Frameworks */, 143 | 13561B091F1D036800499200 /* Resources */, 144 | ); 145 | buildRules = ( 146 | ); 147 | dependencies = ( 148 | ); 149 | name = ScrollCardDemo; 150 | productName = ScrollCardDemo; 151 | productReference = 13561B0B1F1D036800499200 /* ScrollCardDemo.app */; 152 | productType = "com.apple.product-type.application"; 153 | }; 154 | 13561B1E1F1D036800499200 /* ScrollCardDemoTests */ = { 155 | isa = PBXNativeTarget; 156 | buildConfigurationList = 13561B361F1D036800499200 /* Build configuration list for PBXNativeTarget "ScrollCardDemoTests" */; 157 | buildPhases = ( 158 | 13561B1B1F1D036800499200 /* Sources */, 159 | 13561B1C1F1D036800499200 /* Frameworks */, 160 | 13561B1D1F1D036800499200 /* Resources */, 161 | ); 162 | buildRules = ( 163 | ); 164 | dependencies = ( 165 | 13561B211F1D036800499200 /* PBXTargetDependency */, 166 | ); 167 | name = ScrollCardDemoTests; 168 | productName = ScrollCardDemoTests; 169 | productReference = 13561B1F1F1D036800499200 /* ScrollCardDemoTests.xctest */; 170 | productType = "com.apple.product-type.bundle.unit-test"; 171 | }; 172 | 13561B291F1D036800499200 /* ScrollCardDemoUITests */ = { 173 | isa = PBXNativeTarget; 174 | buildConfigurationList = 13561B391F1D036800499200 /* Build configuration list for PBXNativeTarget "ScrollCardDemoUITests" */; 175 | buildPhases = ( 176 | 13561B261F1D036800499200 /* Sources */, 177 | 13561B271F1D036800499200 /* Frameworks */, 178 | 13561B281F1D036800499200 /* Resources */, 179 | ); 180 | buildRules = ( 181 | ); 182 | dependencies = ( 183 | 13561B2C1F1D036800499200 /* PBXTargetDependency */, 184 | ); 185 | name = ScrollCardDemoUITests; 186 | productName = ScrollCardDemoUITests; 187 | productReference = 13561B2A1F1D036800499200 /* ScrollCardDemoUITests.xctest */; 188 | productType = "com.apple.product-type.bundle.ui-testing"; 189 | }; 190 | /* End PBXNativeTarget section */ 191 | 192 | /* Begin PBXProject section */ 193 | 13561B031F1D036800499200 /* Project object */ = { 194 | isa = PBXProject; 195 | attributes = { 196 | LastSwiftUpdateCheck = 0830; 197 | LastUpgradeCheck = 0830; 198 | ORGANIZATIONNAME = "陈晓龙"; 199 | TargetAttributes = { 200 | 13561B0A1F1D036800499200 = { 201 | CreatedOnToolsVersion = 8.3.3; 202 | ProvisioningStyle = Automatic; 203 | }; 204 | 13561B1E1F1D036800499200 = { 205 | CreatedOnToolsVersion = 8.3.3; 206 | ProvisioningStyle = Automatic; 207 | TestTargetID = 13561B0A1F1D036800499200; 208 | }; 209 | 13561B291F1D036800499200 = { 210 | CreatedOnToolsVersion = 8.3.3; 211 | ProvisioningStyle = Automatic; 212 | TestTargetID = 13561B0A1F1D036800499200; 213 | }; 214 | }; 215 | }; 216 | buildConfigurationList = 13561B061F1D036800499200 /* Build configuration list for PBXProject "ScrollCardDemo" */; 217 | compatibilityVersion = "Xcode 3.2"; 218 | developmentRegion = English; 219 | hasScannedForEncodings = 0; 220 | knownRegions = ( 221 | en, 222 | Base, 223 | ); 224 | mainGroup = 13561B021F1D036800499200; 225 | productRefGroup = 13561B0C1F1D036800499200 /* Products */; 226 | projectDirPath = ""; 227 | projectRoot = ""; 228 | targets = ( 229 | 13561B0A1F1D036800499200 /* ScrollCardDemo */, 230 | 13561B1E1F1D036800499200 /* ScrollCardDemoTests */, 231 | 13561B291F1D036800499200 /* ScrollCardDemoUITests */, 232 | ); 233 | }; 234 | /* End PBXProject section */ 235 | 236 | /* Begin PBXResourcesBuildPhase section */ 237 | 13561B091F1D036800499200 /* Resources */ = { 238 | isa = PBXResourcesBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | 13561B191F1D036800499200 /* LaunchScreen.storyboard in Resources */, 242 | 13561B161F1D036800499200 /* Assets.xcassets in Resources */, 243 | 13561B141F1D036800499200 /* Main.storyboard in Resources */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | 13561B1D1F1D036800499200 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | 13561B281F1D036800499200 /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXResourcesBuildPhase section */ 262 | 263 | /* Begin PBXSourcesBuildPhase section */ 264 | 13561B071F1D036800499200 /* Sources */ = { 265 | isa = PBXSourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | 13561B111F1D036800499200 /* ViewController.swift in Sources */, 269 | 13561B3D1F1D055300499200 /* CustomViewCell.swift in Sources */, 270 | 13561B3F1F1D057A00499200 /* CustomLayout.swift in Sources */, 271 | 13561B0F1F1D036800499200 /* AppDelegate.swift in Sources */, 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | }; 275 | 13561B1B1F1D036800499200 /* Sources */ = { 276 | isa = PBXSourcesBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | 13561B241F1D036800499200 /* ScrollCardDemoTests.swift in Sources */, 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | 13561B261F1D036800499200 /* Sources */ = { 284 | isa = PBXSourcesBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | 13561B2F1F1D036800499200 /* ScrollCardDemoUITests.swift in Sources */, 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | }; 291 | /* End PBXSourcesBuildPhase section */ 292 | 293 | /* Begin PBXTargetDependency section */ 294 | 13561B211F1D036800499200 /* PBXTargetDependency */ = { 295 | isa = PBXTargetDependency; 296 | target = 13561B0A1F1D036800499200 /* ScrollCardDemo */; 297 | targetProxy = 13561B201F1D036800499200 /* PBXContainerItemProxy */; 298 | }; 299 | 13561B2C1F1D036800499200 /* PBXTargetDependency */ = { 300 | isa = PBXTargetDependency; 301 | target = 13561B0A1F1D036800499200 /* ScrollCardDemo */; 302 | targetProxy = 13561B2B1F1D036800499200 /* PBXContainerItemProxy */; 303 | }; 304 | /* End PBXTargetDependency section */ 305 | 306 | /* Begin PBXVariantGroup section */ 307 | 13561B121F1D036800499200 /* Main.storyboard */ = { 308 | isa = PBXVariantGroup; 309 | children = ( 310 | 13561B131F1D036800499200 /* Base */, 311 | ); 312 | name = Main.storyboard; 313 | sourceTree = ""; 314 | }; 315 | 13561B171F1D036800499200 /* LaunchScreen.storyboard */ = { 316 | isa = PBXVariantGroup; 317 | children = ( 318 | 13561B181F1D036800499200 /* Base */, 319 | ); 320 | name = LaunchScreen.storyboard; 321 | sourceTree = ""; 322 | }; 323 | /* End PBXVariantGroup section */ 324 | 325 | /* Begin XCBuildConfiguration section */ 326 | 13561B311F1D036800499200 /* Debug */ = { 327 | isa = XCBuildConfiguration; 328 | buildSettings = { 329 | ALWAYS_SEARCH_USER_PATHS = NO; 330 | CLANG_ANALYZER_NONNULL = YES; 331 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 332 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 333 | CLANG_CXX_LIBRARY = "libc++"; 334 | CLANG_ENABLE_MODULES = YES; 335 | CLANG_ENABLE_OBJC_ARC = YES; 336 | CLANG_WARN_BOOL_CONVERSION = YES; 337 | CLANG_WARN_CONSTANT_CONVERSION = YES; 338 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 339 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 340 | CLANG_WARN_EMPTY_BODY = YES; 341 | CLANG_WARN_ENUM_CONVERSION = YES; 342 | CLANG_WARN_INFINITE_RECURSION = YES; 343 | CLANG_WARN_INT_CONVERSION = YES; 344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 345 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 346 | CLANG_WARN_UNREACHABLE_CODE = YES; 347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 349 | COPY_PHASE_STRIP = NO; 350 | DEBUG_INFORMATION_FORMAT = dwarf; 351 | ENABLE_STRICT_OBJC_MSGSEND = YES; 352 | ENABLE_TESTABILITY = YES; 353 | GCC_C_LANGUAGE_STANDARD = gnu99; 354 | GCC_DYNAMIC_NO_PIC = NO; 355 | GCC_NO_COMMON_BLOCKS = YES; 356 | GCC_OPTIMIZATION_LEVEL = 0; 357 | GCC_PREPROCESSOR_DEFINITIONS = ( 358 | "DEBUG=1", 359 | "$(inherited)", 360 | ); 361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 363 | GCC_WARN_UNDECLARED_SELECTOR = YES; 364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 365 | GCC_WARN_UNUSED_FUNCTION = YES; 366 | GCC_WARN_UNUSED_VARIABLE = YES; 367 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 368 | MTL_ENABLE_DEBUG_INFO = YES; 369 | ONLY_ACTIVE_ARCH = YES; 370 | SDKROOT = iphoneos; 371 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 372 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 373 | TARGETED_DEVICE_FAMILY = "1,2"; 374 | }; 375 | name = Debug; 376 | }; 377 | 13561B321F1D036800499200 /* Release */ = { 378 | isa = XCBuildConfiguration; 379 | buildSettings = { 380 | ALWAYS_SEARCH_USER_PATHS = NO; 381 | CLANG_ANALYZER_NONNULL = YES; 382 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 384 | CLANG_CXX_LIBRARY = "libc++"; 385 | CLANG_ENABLE_MODULES = YES; 386 | CLANG_ENABLE_OBJC_ARC = YES; 387 | CLANG_WARN_BOOL_CONVERSION = YES; 388 | CLANG_WARN_CONSTANT_CONVERSION = YES; 389 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 390 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 391 | CLANG_WARN_EMPTY_BODY = YES; 392 | CLANG_WARN_ENUM_CONVERSION = YES; 393 | CLANG_WARN_INFINITE_RECURSION = YES; 394 | CLANG_WARN_INT_CONVERSION = YES; 395 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 396 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 397 | CLANG_WARN_UNREACHABLE_CODE = YES; 398 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 399 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 400 | COPY_PHASE_STRIP = NO; 401 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 402 | ENABLE_NS_ASSERTIONS = NO; 403 | ENABLE_STRICT_OBJC_MSGSEND = YES; 404 | GCC_C_LANGUAGE_STANDARD = gnu99; 405 | GCC_NO_COMMON_BLOCKS = YES; 406 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 407 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 408 | GCC_WARN_UNDECLARED_SELECTOR = YES; 409 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 410 | GCC_WARN_UNUSED_FUNCTION = YES; 411 | GCC_WARN_UNUSED_VARIABLE = YES; 412 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 413 | MTL_ENABLE_DEBUG_INFO = NO; 414 | SDKROOT = iphoneos; 415 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 416 | TARGETED_DEVICE_FAMILY = "1,2"; 417 | VALIDATE_PRODUCT = YES; 418 | }; 419 | name = Release; 420 | }; 421 | 13561B341F1D036800499200 /* Debug */ = { 422 | isa = XCBuildConfiguration; 423 | buildSettings = { 424 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 425 | INFOPLIST_FILE = ScrollCardDemo/Info.plist; 426 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 427 | PRODUCT_BUNDLE_IDENTIFIER = com.chen.ScrollCardDemo; 428 | PRODUCT_NAME = "$(TARGET_NAME)"; 429 | SWIFT_VERSION = 3.0; 430 | }; 431 | name = Debug; 432 | }; 433 | 13561B351F1D036800499200 /* Release */ = { 434 | isa = XCBuildConfiguration; 435 | buildSettings = { 436 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 437 | INFOPLIST_FILE = ScrollCardDemo/Info.plist; 438 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 439 | PRODUCT_BUNDLE_IDENTIFIER = com.chen.ScrollCardDemo; 440 | PRODUCT_NAME = "$(TARGET_NAME)"; 441 | SWIFT_VERSION = 3.0; 442 | }; 443 | name = Release; 444 | }; 445 | 13561B371F1D036800499200 /* Debug */ = { 446 | isa = XCBuildConfiguration; 447 | buildSettings = { 448 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 449 | BUNDLE_LOADER = "$(TEST_HOST)"; 450 | INFOPLIST_FILE = ScrollCardDemoTests/Info.plist; 451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 452 | PRODUCT_BUNDLE_IDENTIFIER = com.chen.ScrollCardDemoTests; 453 | PRODUCT_NAME = "$(TARGET_NAME)"; 454 | SWIFT_VERSION = 3.0; 455 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ScrollCardDemo.app/ScrollCardDemo"; 456 | }; 457 | name = Debug; 458 | }; 459 | 13561B381F1D036800499200 /* Release */ = { 460 | isa = XCBuildConfiguration; 461 | buildSettings = { 462 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 463 | BUNDLE_LOADER = "$(TEST_HOST)"; 464 | INFOPLIST_FILE = ScrollCardDemoTests/Info.plist; 465 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 466 | PRODUCT_BUNDLE_IDENTIFIER = com.chen.ScrollCardDemoTests; 467 | PRODUCT_NAME = "$(TARGET_NAME)"; 468 | SWIFT_VERSION = 3.0; 469 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ScrollCardDemo.app/ScrollCardDemo"; 470 | }; 471 | name = Release; 472 | }; 473 | 13561B3A1F1D036800499200 /* Debug */ = { 474 | isa = XCBuildConfiguration; 475 | buildSettings = { 476 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 477 | INFOPLIST_FILE = ScrollCardDemoUITests/Info.plist; 478 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 479 | PRODUCT_BUNDLE_IDENTIFIER = com.chen.ScrollCardDemoUITests; 480 | PRODUCT_NAME = "$(TARGET_NAME)"; 481 | SWIFT_VERSION = 3.0; 482 | TEST_TARGET_NAME = ScrollCardDemo; 483 | }; 484 | name = Debug; 485 | }; 486 | 13561B3B1F1D036800499200 /* Release */ = { 487 | isa = XCBuildConfiguration; 488 | buildSettings = { 489 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 490 | INFOPLIST_FILE = ScrollCardDemoUITests/Info.plist; 491 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 492 | PRODUCT_BUNDLE_IDENTIFIER = com.chen.ScrollCardDemoUITests; 493 | PRODUCT_NAME = "$(TARGET_NAME)"; 494 | SWIFT_VERSION = 3.0; 495 | TEST_TARGET_NAME = ScrollCardDemo; 496 | }; 497 | name = Release; 498 | }; 499 | /* End XCBuildConfiguration section */ 500 | 501 | /* Begin XCConfigurationList section */ 502 | 13561B061F1D036800499200 /* Build configuration list for PBXProject "ScrollCardDemo" */ = { 503 | isa = XCConfigurationList; 504 | buildConfigurations = ( 505 | 13561B311F1D036800499200 /* Debug */, 506 | 13561B321F1D036800499200 /* Release */, 507 | ); 508 | defaultConfigurationIsVisible = 0; 509 | defaultConfigurationName = Release; 510 | }; 511 | 13561B331F1D036800499200 /* Build configuration list for PBXNativeTarget "ScrollCardDemo" */ = { 512 | isa = XCConfigurationList; 513 | buildConfigurations = ( 514 | 13561B341F1D036800499200 /* Debug */, 515 | 13561B351F1D036800499200 /* Release */, 516 | ); 517 | defaultConfigurationIsVisible = 0; 518 | defaultConfigurationName = Release; 519 | }; 520 | 13561B361F1D036800499200 /* Build configuration list for PBXNativeTarget "ScrollCardDemoTests" */ = { 521 | isa = XCConfigurationList; 522 | buildConfigurations = ( 523 | 13561B371F1D036800499200 /* Debug */, 524 | 13561B381F1D036800499200 /* Release */, 525 | ); 526 | defaultConfigurationIsVisible = 0; 527 | defaultConfigurationName = Release; 528 | }; 529 | 13561B391F1D036800499200 /* Build configuration list for PBXNativeTarget "ScrollCardDemoUITests" */ = { 530 | isa = XCConfigurationList; 531 | buildConfigurations = ( 532 | 13561B3A1F1D036800499200 /* Debug */, 533 | 13561B3B1F1D036800499200 /* Release */, 534 | ); 535 | defaultConfigurationIsVisible = 0; 536 | defaultConfigurationName = Release; 537 | }; 538 | /* End XCConfigurationList section */ 539 | }; 540 | rootObject = 13561B031F1D036800499200 /* Project object */; 541 | } 542 | --------------------------------------------------------------------------------