├── PopViewController.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── project.pbxproj ├── README.md ├── PopViewController ├── ViewController.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard ├── TestViewController.swift ├── AppDelegate.swift ├── Then.swift └── XTPopViewController.swift ├── PopViewControllerTests ├── Info.plist └── PopViewControllerTests.swift ├── PopViewControllerUITests ├── Info.plist └── PopViewControllerUITests.swift └── .gitignore /PopViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PopViewController.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # XTPopViewControllerSwift 2 | 仿简书淘宝推出View效果Swift版本 3 | 4 | [http://www.jianshu.com/p/01a420681ca9](http://www.jianshu.com/p/01a420681ca9) 5 | 6 | 先来张图让小伙伴们看一眼, 具体效果. 7 | 8 | ![自制做效果图](http://upload-images.jianshu.io/upload_images/1506501-5bcf7b9cbd914976.gif?imageMogr2/auto-orient/strip) 9 | 10 | >详细代码下载Demo查看 11 | 12 | [OC版本原文](http://www.jianshu.com/p/a697d2a38b3c)链接 13 | -------------------------------------------------------------------------------- /PopViewController/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PopViewController 4 | // 5 | // Created by summerxx on 5/4/16. 6 | // Copyright © 2016 summerxx. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /PopViewControllerTests/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 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /PopViewControllerUITests/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 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /PopViewControllerTests/PopViewControllerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PopViewControllerTests.swift 3 | // PopViewControllerTests 4 | // 5 | // Created by summerxx on 5/4/16. 6 | // Copyright © 2016 summerxx. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import PopViewController 11 | 12 | class PopViewControllerTests: 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.measureBlock { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /PopViewController/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 | } -------------------------------------------------------------------------------- /PopViewControllerUITests/PopViewControllerUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PopViewControllerUITests.swift 3 | // PopViewControllerUITests 4 | // 5 | // Created by summerxx on 5/4/16. 6 | // Copyright © 2016 summerxx. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class PopViewControllerUITests: 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 | -------------------------------------------------------------------------------- /.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 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | # Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/screenshots 64 | -------------------------------------------------------------------------------- /PopViewController/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 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /PopViewController/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 | -------------------------------------------------------------------------------- /PopViewController/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 | -------------------------------------------------------------------------------- /PopViewController/TestViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestViewController.swift 3 | // PopViewController 4 | // 5 | // Created by summerxx on 16/5/4. 6 | // Copyright © 2016年 summerxx. All rights reserved. 7 | // 8 | 9 | /************************************************************** */ 10 | /**** 文章你可以看我的简书 http://www.jianshu.com/p/01a420681ca9 */ 11 | /************************************************************** */ 12 | 13 | import UIKit 14 | 15 | class TestViewController: XTPopViewController { 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | 20 | /// popView 是点击打开的时候下方弹出的view 21 | let popView = UIView().then { 22 | $0.frame = CGRect(x: 0, y: screen_Height, width: screen_Width, height: 450) 23 | $0.backgroundColor = .red 24 | $0.layer.shadowColor = UIColor.black.cgColor 25 | $0.layer.shadowOffset = CGSize(width: 0.5, height: 0.5) 26 | $0.layer.shadowOpacity = 0.8 27 | $0.layer.shadowRadius = 5 28 | } 29 | 30 | 31 | let main = ViewController() 32 | let mainNav = UINavigationController.init(rootViewController: main) 33 | 34 | /// 关闭按钮 35 | let btnClose = UIButton().then { 36 | $0.frame = CGRect(x: 15, y: 0, width: 50, height: 40) 37 | $0.setTitle("Close", for: .normal) 38 | $0.setTitleColor(.cyan, for: .normal) 39 | $0.addTarget(self, action:#selector(close), for: .touchUpInside) 40 | } 41 | 42 | popView.addSubview(btnClose) 43 | 44 | let btnOpen = UIButton().then { 45 | $0.frame = CGRect(x: 0, y: 0, width: 50, height: 40) 46 | $0.center = self.view.center; 47 | $0.setTitle("open", for: .normal) 48 | $0.setTitleColor(UIColor.cyan, for: .normal) 49 | $0.addTarget(self, action: #selector(openClick), for: .touchUpInside) 50 | } 51 | 52 | main.view.addSubview(btnOpen) 53 | main.view.backgroundColor = .white 54 | main.title = "summerxx" 55 | createPopViewController(rootVC: mainNav, bottomView: popView) 56 | } 57 | 58 | @objc func openClick() { 59 | self.openAction() 60 | } 61 | 62 | @objc func close() { 63 | self.closeAction() 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /PopViewController/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // PopViewController 4 | // 5 | // Created by summerxx on 5/4/16. 6 | // Copyright © 2016 summerxx. 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: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // 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. 24 | // 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. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // 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. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // 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. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /PopViewController/Then.swift: -------------------------------------------------------------------------------- 1 | // The MIT License (MIT) 2 | // 3 | // Copyright (c) 2015 Suyeol Jeon (xoul.kr) 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 | 23 | import Foundation 24 | #if !os(Linux) 25 | import CoreGraphics 26 | #endif 27 | #if os(iOS) || os(tvOS) 28 | import UIKit.UIGeometry 29 | #endif 30 | 31 | /// Then 32 | public protocol Then {} 33 | 34 | extension Then where Self: Any { 35 | /// Makes it available to set properties with closures just after initializing and copying the value types. 36 | /// 37 | /// let frame = CGRect().with { 38 | /// $0.origin.x = 10 39 | /// $0.size.width = 100 40 | /// } 41 | @inlinable 42 | public func with(_ block: (inout Self) throws -> Void) rethrows -> Self { 43 | var copy = self 44 | try block(©) 45 | return copy 46 | } 47 | 48 | /// Makes it available to execute something with closures. 49 | /// 50 | /// UserDefaults.standard.do { 51 | /// $0.set("devxoul", forKey: "username") 52 | /// $0.set("devxoul@gmail.com", forKey: "email") 53 | /// $0.synchronize() 54 | /// } 55 | @inlinable 56 | public func `do`(_ block: (Self) throws -> Void) rethrows { 57 | try block(self) 58 | } 59 | } 60 | 61 | extension Then where Self: AnyObject { 62 | /// Makes it available to set properties with closures just after initializing. 63 | /// 64 | /// let label = UILabel().then { 65 | /// $0.textAlignment = .center 66 | /// $0.textColor = UIColor.black 67 | /// $0.text = "Hello, World!" 68 | /// } 69 | @inlinable 70 | public func then(_ block: (Self) throws -> Void) rethrows -> Self { 71 | try block(self) 72 | return self 73 | } 74 | } 75 | 76 | extension NSObject: Then {} 77 | 78 | #if !os(Linux) 79 | extension CGPoint: Then {} 80 | extension CGRect: Then {} 81 | extension CGSize: Then {} 82 | extension CGVector: Then {} 83 | extension CGAffineTransform: Then {} 84 | #endif 85 | 86 | extension Array: Then {} 87 | extension Dictionary: Then {} 88 | extension Set: Then {} 89 | 90 | #if os(iOS) || os(tvOS) 91 | extension UIEdgeInsets: Then {} 92 | extension UIOffset: Then {} 93 | extension UIRectEdge: Then {} 94 | #endif 95 | 96 | extension Int: Then {} 97 | -------------------------------------------------------------------------------- /PopViewController/XTPopViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // XtPopViewController.swift 3 | // PopViewController 4 | // 5 | // Created by summerxx on 5/4/16. 6 | // Copyright © 2016 summerxx. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let screen_Width = UIScreen.main.bounds.size.width 12 | let screen_Height = UIScreen.main.bounds.size.height 13 | 14 | class XTPopViewController: UIViewController { 15 | 16 | /// 在底部弹出的View 17 | private var popView = UIView() 18 | 19 | /// rootView 20 | private var rootView = UIView() 21 | 22 | /// 主VC 23 | private var mainVC: UIViewController? 24 | 25 | /// maskView 26 | private var maskView = UIView() 27 | 28 | func createPopViewController(rootVC: UIViewController, bottomView: UIView) -> Void { 29 | mainVC = rootVC 30 | popView = bottomView 31 | setupSubviews() 32 | } 33 | 34 | private func setupSubviews() { 35 | view.backgroundColor = .black 36 | guard let vc = mainVC else { return } 37 | vc.view.frame = self.view.bounds 38 | rootView = vc.view 39 | addChild(vc) 40 | view.addSubview(rootView) 41 | } 42 | 43 | func closeAction() { 44 | var frame = popView.frame 45 | 46 | frame.origin.y += popView.frame.size.height 47 | 48 | UIView.animate(withDuration: 0.3, animations: { 49 | self.popView.frame = frame 50 | // 改善滑动效果 51 | self.rootView.layer.transform = self.firstTransform() 52 | 53 | }) { (Bool) in 54 | UIView.animate(withDuration: 0.3, delay: 0, options: UIView.AnimationOptions.curveEaseInOut, animations: { 55 | // 变为初始值 56 | self.rootView.layer.transform = CATransform3DIdentity; 57 | }, completion: { (Bool) in 58 | // 移除 59 | self.popView.removeFromSuperview() 60 | }) 61 | } 62 | } 63 | 64 | func openAction(){ 65 | UIApplication.shared.windows[0].addSubview(popView) 66 | var frame = popView.frame 67 | frame.origin.y = self.view.bounds.size.height - self.popView.frame.size.height 68 | 69 | UIView.animate(withDuration: 0.3, delay: 0, options: UIView.AnimationOptions.curveEaseInOut, animations: { 70 | 71 | self.rootView.layer.transform = self.firstTransform() 72 | }) { (Bool) in 73 | 74 | UIView.animate(withDuration: 0.3, delay: 0, options: UIView.AnimationOptions.curveEaseInOut, animations: { 75 | 76 | self.rootView.layer.transform = self.secondTransform() 77 | // popView上升 78 | self.popView.frame = frame 79 | }, completion: { (Bool) in 80 | }) 81 | } 82 | 83 | } 84 | 85 | private func firstTransform() -> CATransform3D { 86 | var t1 = CATransform3DIdentity; 87 | t1.m34 = 1.0 / -900; 88 | // 带点缩小的效果 89 | t1 = CATransform3DScale(t1, 0.95, 0.95, 1); 90 | // 绕x轴旋转 91 | t1 = CATransform3DRotate(t1, 15.0 * (CGFloat)(Double.pi) / 180.0, 1, 0, 0); 92 | return t1; 93 | } 94 | 95 | private func secondTransform() -> CATransform3D { 96 | var t2 = CATransform3DIdentity 97 | t2.m34 = self.firstTransform().m34; 98 | // 向上移 99 | t2 = CATransform3DTranslate(t2, 0, self.view.frame.size.height * (-0.08), 0); 100 | // 第二次缩小 101 | t2 = CATransform3DScale(t2, 0.8, 0.8, 1); 102 | return t2; 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /PopViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 046750661CDA33540008DDF3 /* TestViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 046750651CDA33540008DDF3 /* TestViewController.swift */; }; 11 | B9A1C4472937C62000830D91 /* Then.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A1C4462937C62000830D91 /* Then.swift */; }; 12 | BC90A4F11CD9E93500D254B0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC90A4F01CD9E93500D254B0 /* AppDelegate.swift */; }; 13 | BC90A4F31CD9E93500D254B0 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC90A4F21CD9E93500D254B0 /* ViewController.swift */; }; 14 | BC90A4F61CD9E93500D254B0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BC90A4F41CD9E93500D254B0 /* Main.storyboard */; }; 15 | BC90A4F81CD9E93500D254B0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BC90A4F71CD9E93500D254B0 /* Assets.xcassets */; }; 16 | BC90A4FB1CD9E93500D254B0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BC90A4F91CD9E93500D254B0 /* LaunchScreen.storyboard */; }; 17 | BC90A5061CD9E93500D254B0 /* PopViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC90A5051CD9E93500D254B0 /* PopViewControllerTests.swift */; }; 18 | BC90A5111CD9E93500D254B0 /* PopViewControllerUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC90A5101CD9E93500D254B0 /* PopViewControllerUITests.swift */; }; 19 | BC90A51F1CD9EAA300D254B0 /* XTPopViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC90A51E1CD9EAA300D254B0 /* XTPopViewController.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | BC90A5021CD9E93500D254B0 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = BC90A4E51CD9E93500D254B0 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = BC90A4EC1CD9E93500D254B0; 28 | remoteInfo = PopViewController; 29 | }; 30 | BC90A50D1CD9E93500D254B0 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = BC90A4E51CD9E93500D254B0 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = BC90A4EC1CD9E93500D254B0; 35 | remoteInfo = PopViewController; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 046750651CDA33540008DDF3 /* TestViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestViewController.swift; sourceTree = ""; }; 41 | B9A1C4462937C62000830D91 /* Then.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Then.swift; sourceTree = ""; }; 42 | BC90A4ED1CD9E93500D254B0 /* PopViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PopViewController.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | BC90A4F01CD9E93500D254B0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | BC90A4F21CD9E93500D254B0 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 45 | BC90A4F51CD9E93500D254B0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | BC90A4F71CD9E93500D254B0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | BC90A4FA1CD9E93500D254B0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | BC90A4FC1CD9E93500D254B0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | BC90A5011CD9E93500D254B0 /* PopViewControllerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PopViewControllerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | BC90A5051CD9E93500D254B0 /* PopViewControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PopViewControllerTests.swift; sourceTree = ""; }; 51 | BC90A5071CD9E93500D254B0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | BC90A50C1CD9E93500D254B0 /* PopViewControllerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PopViewControllerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | BC90A5101CD9E93500D254B0 /* PopViewControllerUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PopViewControllerUITests.swift; sourceTree = ""; }; 54 | BC90A5121CD9E93500D254B0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | BC90A51E1CD9EAA300D254B0 /* XTPopViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = XTPopViewController.swift; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | BC90A4EA1CD9E93500D254B0 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | BC90A4FE1CD9E93500D254B0 /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | BC90A5091CD9E93500D254B0 /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | /* End PBXFrameworksBuildPhase section */ 81 | 82 | /* Begin PBXGroup section */ 83 | BC90A4E41CD9E93500D254B0 = { 84 | isa = PBXGroup; 85 | children = ( 86 | BC90A4EF1CD9E93500D254B0 /* PopViewController */, 87 | BC90A5041CD9E93500D254B0 /* PopViewControllerTests */, 88 | BC90A50F1CD9E93500D254B0 /* PopViewControllerUITests */, 89 | BC90A4EE1CD9E93500D254B0 /* Products */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | BC90A4EE1CD9E93500D254B0 /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | BC90A4ED1CD9E93500D254B0 /* PopViewController.app */, 97 | BC90A5011CD9E93500D254B0 /* PopViewControllerTests.xctest */, 98 | BC90A50C1CD9E93500D254B0 /* PopViewControllerUITests.xctest */, 99 | ); 100 | name = Products; 101 | sourceTree = ""; 102 | }; 103 | BC90A4EF1CD9E93500D254B0 /* PopViewController */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | B9A1C4462937C62000830D91 /* Then.swift */, 107 | BC90A51E1CD9EAA300D254B0 /* XTPopViewController.swift */, 108 | 046750651CDA33540008DDF3 /* TestViewController.swift */, 109 | BC90A4F01CD9E93500D254B0 /* AppDelegate.swift */, 110 | BC90A4F21CD9E93500D254B0 /* ViewController.swift */, 111 | BC90A4F41CD9E93500D254B0 /* Main.storyboard */, 112 | BC90A4F71CD9E93500D254B0 /* Assets.xcassets */, 113 | BC90A4F91CD9E93500D254B0 /* LaunchScreen.storyboard */, 114 | BC90A4FC1CD9E93500D254B0 /* Info.plist */, 115 | ); 116 | path = PopViewController; 117 | sourceTree = ""; 118 | }; 119 | BC90A5041CD9E93500D254B0 /* PopViewControllerTests */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | BC90A5051CD9E93500D254B0 /* PopViewControllerTests.swift */, 123 | BC90A5071CD9E93500D254B0 /* Info.plist */, 124 | ); 125 | path = PopViewControllerTests; 126 | sourceTree = ""; 127 | }; 128 | BC90A50F1CD9E93500D254B0 /* PopViewControllerUITests */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | BC90A5101CD9E93500D254B0 /* PopViewControllerUITests.swift */, 132 | BC90A5121CD9E93500D254B0 /* Info.plist */, 133 | ); 134 | path = PopViewControllerUITests; 135 | sourceTree = ""; 136 | }; 137 | /* End PBXGroup section */ 138 | 139 | /* Begin PBXNativeTarget section */ 140 | BC90A4EC1CD9E93500D254B0 /* PopViewController */ = { 141 | isa = PBXNativeTarget; 142 | buildConfigurationList = BC90A5151CD9E93500D254B0 /* Build configuration list for PBXNativeTarget "PopViewController" */; 143 | buildPhases = ( 144 | BC90A4E91CD9E93500D254B0 /* Sources */, 145 | BC90A4EA1CD9E93500D254B0 /* Frameworks */, 146 | BC90A4EB1CD9E93500D254B0 /* Resources */, 147 | ); 148 | buildRules = ( 149 | ); 150 | dependencies = ( 151 | ); 152 | name = PopViewController; 153 | productName = PopViewController; 154 | productReference = BC90A4ED1CD9E93500D254B0 /* PopViewController.app */; 155 | productType = "com.apple.product-type.application"; 156 | }; 157 | BC90A5001CD9E93500D254B0 /* PopViewControllerTests */ = { 158 | isa = PBXNativeTarget; 159 | buildConfigurationList = BC90A5181CD9E93500D254B0 /* Build configuration list for PBXNativeTarget "PopViewControllerTests" */; 160 | buildPhases = ( 161 | BC90A4FD1CD9E93500D254B0 /* Sources */, 162 | BC90A4FE1CD9E93500D254B0 /* Frameworks */, 163 | BC90A4FF1CD9E93500D254B0 /* Resources */, 164 | ); 165 | buildRules = ( 166 | ); 167 | dependencies = ( 168 | BC90A5031CD9E93500D254B0 /* PBXTargetDependency */, 169 | ); 170 | name = PopViewControllerTests; 171 | productName = PopViewControllerTests; 172 | productReference = BC90A5011CD9E93500D254B0 /* PopViewControllerTests.xctest */; 173 | productType = "com.apple.product-type.bundle.unit-test"; 174 | }; 175 | BC90A50B1CD9E93500D254B0 /* PopViewControllerUITests */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = BC90A51B1CD9E93500D254B0 /* Build configuration list for PBXNativeTarget "PopViewControllerUITests" */; 178 | buildPhases = ( 179 | BC90A5081CD9E93500D254B0 /* Sources */, 180 | BC90A5091CD9E93500D254B0 /* Frameworks */, 181 | BC90A50A1CD9E93500D254B0 /* Resources */, 182 | ); 183 | buildRules = ( 184 | ); 185 | dependencies = ( 186 | BC90A50E1CD9E93500D254B0 /* PBXTargetDependency */, 187 | ); 188 | name = PopViewControllerUITests; 189 | productName = PopViewControllerUITests; 190 | productReference = BC90A50C1CD9E93500D254B0 /* PopViewControllerUITests.xctest */; 191 | productType = "com.apple.product-type.bundle.ui-testing"; 192 | }; 193 | /* End PBXNativeTarget section */ 194 | 195 | /* Begin PBXProject section */ 196 | BC90A4E51CD9E93500D254B0 /* Project object */ = { 197 | isa = PBXProject; 198 | attributes = { 199 | LastSwiftUpdateCheck = 0730; 200 | LastUpgradeCheck = 1150; 201 | ORGANIZATIONNAME = "夏天"; 202 | TargetAttributes = { 203 | BC90A4EC1CD9E93500D254B0 = { 204 | CreatedOnToolsVersion = 7.3; 205 | LastSwiftMigration = 0800; 206 | }; 207 | BC90A5001CD9E93500D254B0 = { 208 | CreatedOnToolsVersion = 7.3; 209 | LastSwiftMigration = 0800; 210 | TestTargetID = BC90A4EC1CD9E93500D254B0; 211 | }; 212 | BC90A50B1CD9E93500D254B0 = { 213 | CreatedOnToolsVersion = 7.3; 214 | LastSwiftMigration = 0800; 215 | TestTargetID = BC90A4EC1CD9E93500D254B0; 216 | }; 217 | }; 218 | }; 219 | buildConfigurationList = BC90A4E81CD9E93500D254B0 /* Build configuration list for PBXProject "PopViewController" */; 220 | compatibilityVersion = "Xcode 3.2"; 221 | developmentRegion = English; 222 | hasScannedForEncodings = 0; 223 | knownRegions = ( 224 | English, 225 | en, 226 | Base, 227 | ); 228 | mainGroup = BC90A4E41CD9E93500D254B0; 229 | productRefGroup = BC90A4EE1CD9E93500D254B0 /* Products */; 230 | projectDirPath = ""; 231 | projectRoot = ""; 232 | targets = ( 233 | BC90A4EC1CD9E93500D254B0 /* PopViewController */, 234 | BC90A5001CD9E93500D254B0 /* PopViewControllerTests */, 235 | BC90A50B1CD9E93500D254B0 /* PopViewControllerUITests */, 236 | ); 237 | }; 238 | /* End PBXProject section */ 239 | 240 | /* Begin PBXResourcesBuildPhase section */ 241 | BC90A4EB1CD9E93500D254B0 /* Resources */ = { 242 | isa = PBXResourcesBuildPhase; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | BC90A4FB1CD9E93500D254B0 /* LaunchScreen.storyboard in Resources */, 246 | BC90A4F81CD9E93500D254B0 /* Assets.xcassets in Resources */, 247 | BC90A4F61CD9E93500D254B0 /* Main.storyboard in Resources */, 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | }; 251 | BC90A4FF1CD9E93500D254B0 /* Resources */ = { 252 | isa = PBXResourcesBuildPhase; 253 | buildActionMask = 2147483647; 254 | files = ( 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | }; 258 | BC90A50A1CD9E93500D254B0 /* Resources */ = { 259 | isa = PBXResourcesBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | }; 265 | /* End PBXResourcesBuildPhase section */ 266 | 267 | /* Begin PBXSourcesBuildPhase section */ 268 | BC90A4E91CD9E93500D254B0 /* Sources */ = { 269 | isa = PBXSourcesBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | BC90A4F31CD9E93500D254B0 /* ViewController.swift in Sources */, 273 | BC90A51F1CD9EAA300D254B0 /* XTPopViewController.swift in Sources */, 274 | 046750661CDA33540008DDF3 /* TestViewController.swift in Sources */, 275 | B9A1C4472937C62000830D91 /* Then.swift in Sources */, 276 | BC90A4F11CD9E93500D254B0 /* AppDelegate.swift in Sources */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | BC90A4FD1CD9E93500D254B0 /* Sources */ = { 281 | isa = PBXSourcesBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | BC90A5061CD9E93500D254B0 /* PopViewControllerTests.swift in Sources */, 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | }; 288 | BC90A5081CD9E93500D254B0 /* Sources */ = { 289 | isa = PBXSourcesBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | BC90A5111CD9E93500D254B0 /* PopViewControllerUITests.swift in Sources */, 293 | ); 294 | runOnlyForDeploymentPostprocessing = 0; 295 | }; 296 | /* End PBXSourcesBuildPhase section */ 297 | 298 | /* Begin PBXTargetDependency section */ 299 | BC90A5031CD9E93500D254B0 /* PBXTargetDependency */ = { 300 | isa = PBXTargetDependency; 301 | target = BC90A4EC1CD9E93500D254B0 /* PopViewController */; 302 | targetProxy = BC90A5021CD9E93500D254B0 /* PBXContainerItemProxy */; 303 | }; 304 | BC90A50E1CD9E93500D254B0 /* PBXTargetDependency */ = { 305 | isa = PBXTargetDependency; 306 | target = BC90A4EC1CD9E93500D254B0 /* PopViewController */; 307 | targetProxy = BC90A50D1CD9E93500D254B0 /* PBXContainerItemProxy */; 308 | }; 309 | /* End PBXTargetDependency section */ 310 | 311 | /* Begin PBXVariantGroup section */ 312 | BC90A4F41CD9E93500D254B0 /* Main.storyboard */ = { 313 | isa = PBXVariantGroup; 314 | children = ( 315 | BC90A4F51CD9E93500D254B0 /* Base */, 316 | ); 317 | name = Main.storyboard; 318 | sourceTree = ""; 319 | }; 320 | BC90A4F91CD9E93500D254B0 /* LaunchScreen.storyboard */ = { 321 | isa = PBXVariantGroup; 322 | children = ( 323 | BC90A4FA1CD9E93500D254B0 /* Base */, 324 | ); 325 | name = LaunchScreen.storyboard; 326 | sourceTree = ""; 327 | }; 328 | /* End PBXVariantGroup section */ 329 | 330 | /* Begin XCBuildConfiguration section */ 331 | BC90A5131CD9E93500D254B0 /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | buildSettings = { 334 | ALWAYS_SEARCH_USER_PATHS = NO; 335 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 336 | CLANG_ANALYZER_NONNULL = YES; 337 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 338 | CLANG_CXX_LIBRARY = "libc++"; 339 | CLANG_ENABLE_MODULES = YES; 340 | CLANG_ENABLE_OBJC_ARC = YES; 341 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 342 | CLANG_WARN_BOOL_CONVERSION = YES; 343 | CLANG_WARN_COMMA = YES; 344 | CLANG_WARN_CONSTANT_CONVERSION = YES; 345 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNREACHABLE_CODE = YES; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | DEBUG_INFORMATION_FORMAT = dwarf; 363 | ENABLE_STRICT_OBJC_MSGSEND = YES; 364 | ENABLE_TESTABILITY = YES; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_DYNAMIC_NO_PIC = NO; 367 | GCC_NO_COMMON_BLOCKS = YES; 368 | GCC_OPTIMIZATION_LEVEL = 0; 369 | GCC_PREPROCESSOR_DEFINITIONS = ( 370 | "DEBUG=1", 371 | "$(inherited)", 372 | ); 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 380 | MTL_ENABLE_DEBUG_INFO = YES; 381 | ONLY_ACTIVE_ARCH = YES; 382 | SDKROOT = iphoneos; 383 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 384 | TARGETED_DEVICE_FAMILY = "1,2"; 385 | }; 386 | name = Debug; 387 | }; 388 | BC90A5141CD9E93500D254B0 /* Release */ = { 389 | isa = XCBuildConfiguration; 390 | buildSettings = { 391 | ALWAYS_SEARCH_USER_PATHS = NO; 392 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 393 | CLANG_ANALYZER_NONNULL = YES; 394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 395 | CLANG_CXX_LIBRARY = "libc++"; 396 | CLANG_ENABLE_MODULES = YES; 397 | CLANG_ENABLE_OBJC_ARC = YES; 398 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 399 | CLANG_WARN_BOOL_CONVERSION = YES; 400 | CLANG_WARN_COMMA = YES; 401 | CLANG_WARN_CONSTANT_CONVERSION = YES; 402 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 404 | CLANG_WARN_EMPTY_BODY = YES; 405 | CLANG_WARN_ENUM_CONVERSION = YES; 406 | CLANG_WARN_INFINITE_RECURSION = YES; 407 | CLANG_WARN_INT_CONVERSION = YES; 408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 413 | CLANG_WARN_STRICT_PROTOTYPES = YES; 414 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 415 | CLANG_WARN_UNREACHABLE_CODE = YES; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 418 | COPY_PHASE_STRIP = NO; 419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 420 | ENABLE_NS_ASSERTIONS = NO; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | GCC_C_LANGUAGE_STANDARD = gnu99; 423 | GCC_NO_COMMON_BLOCKS = YES; 424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 426 | GCC_WARN_UNDECLARED_SELECTOR = YES; 427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 428 | GCC_WARN_UNUSED_FUNCTION = YES; 429 | GCC_WARN_UNUSED_VARIABLE = YES; 430 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 431 | MTL_ENABLE_DEBUG_INFO = NO; 432 | SDKROOT = iphoneos; 433 | SWIFT_COMPILATION_MODE = wholemodule; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | BC90A5161CD9E93500D254B0 /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | buildSettings = { 442 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 443 | INFOPLIST_FILE = PopViewController/Info.plist; 444 | IPHONEOS_DEPLOYMENT_TARGET = 13.5; 445 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 446 | PRODUCT_BUNDLE_IDENTIFIER = "-MyCompanyName-.PopViewController"; 447 | PRODUCT_NAME = "$(TARGET_NAME)"; 448 | SWIFT_VERSION = 5.0; 449 | }; 450 | name = Debug; 451 | }; 452 | BC90A5171CD9E93500D254B0 /* Release */ = { 453 | isa = XCBuildConfiguration; 454 | buildSettings = { 455 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 456 | INFOPLIST_FILE = PopViewController/Info.plist; 457 | IPHONEOS_DEPLOYMENT_TARGET = 13.5; 458 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 459 | PRODUCT_BUNDLE_IDENTIFIER = "-MyCompanyName-.PopViewController"; 460 | PRODUCT_NAME = "$(TARGET_NAME)"; 461 | SWIFT_VERSION = 5.0; 462 | }; 463 | name = Release; 464 | }; 465 | BC90A5191CD9E93500D254B0 /* Debug */ = { 466 | isa = XCBuildConfiguration; 467 | buildSettings = { 468 | BUNDLE_LOADER = "$(TEST_HOST)"; 469 | INFOPLIST_FILE = PopViewControllerTests/Info.plist; 470 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 471 | PRODUCT_BUNDLE_IDENTIFIER = "-MyCompanyName-.PopViewControllerTests"; 472 | PRODUCT_NAME = "$(TARGET_NAME)"; 473 | SWIFT_VERSION = 2.3; 474 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PopViewController.app/PopViewController"; 475 | }; 476 | name = Debug; 477 | }; 478 | BC90A51A1CD9E93500D254B0 /* Release */ = { 479 | isa = XCBuildConfiguration; 480 | buildSettings = { 481 | BUNDLE_LOADER = "$(TEST_HOST)"; 482 | INFOPLIST_FILE = PopViewControllerTests/Info.plist; 483 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 484 | PRODUCT_BUNDLE_IDENTIFIER = "-MyCompanyName-.PopViewControllerTests"; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_VERSION = 2.3; 487 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PopViewController.app/PopViewController"; 488 | }; 489 | name = Release; 490 | }; 491 | BC90A51C1CD9E93500D254B0 /* Debug */ = { 492 | isa = XCBuildConfiguration; 493 | buildSettings = { 494 | INFOPLIST_FILE = PopViewControllerUITests/Info.plist; 495 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 496 | PRODUCT_BUNDLE_IDENTIFIER = "-MyCompanyName-.PopViewControllerUITests"; 497 | PRODUCT_NAME = "$(TARGET_NAME)"; 498 | SWIFT_VERSION = 2.3; 499 | TEST_TARGET_NAME = PopViewController; 500 | }; 501 | name = Debug; 502 | }; 503 | BC90A51D1CD9E93500D254B0 /* Release */ = { 504 | isa = XCBuildConfiguration; 505 | buildSettings = { 506 | INFOPLIST_FILE = PopViewControllerUITests/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 508 | PRODUCT_BUNDLE_IDENTIFIER = "-MyCompanyName-.PopViewControllerUITests"; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | SWIFT_VERSION = 2.3; 511 | TEST_TARGET_NAME = PopViewController; 512 | }; 513 | name = Release; 514 | }; 515 | /* End XCBuildConfiguration section */ 516 | 517 | /* Begin XCConfigurationList section */ 518 | BC90A4E81CD9E93500D254B0 /* Build configuration list for PBXProject "PopViewController" */ = { 519 | isa = XCConfigurationList; 520 | buildConfigurations = ( 521 | BC90A5131CD9E93500D254B0 /* Debug */, 522 | BC90A5141CD9E93500D254B0 /* Release */, 523 | ); 524 | defaultConfigurationIsVisible = 0; 525 | defaultConfigurationName = Release; 526 | }; 527 | BC90A5151CD9E93500D254B0 /* Build configuration list for PBXNativeTarget "PopViewController" */ = { 528 | isa = XCConfigurationList; 529 | buildConfigurations = ( 530 | BC90A5161CD9E93500D254B0 /* Debug */, 531 | BC90A5171CD9E93500D254B0 /* Release */, 532 | ); 533 | defaultConfigurationIsVisible = 0; 534 | defaultConfigurationName = Release; 535 | }; 536 | BC90A5181CD9E93500D254B0 /* Build configuration list for PBXNativeTarget "PopViewControllerTests" */ = { 537 | isa = XCConfigurationList; 538 | buildConfigurations = ( 539 | BC90A5191CD9E93500D254B0 /* Debug */, 540 | BC90A51A1CD9E93500D254B0 /* Release */, 541 | ); 542 | defaultConfigurationIsVisible = 0; 543 | defaultConfigurationName = Release; 544 | }; 545 | BC90A51B1CD9E93500D254B0 /* Build configuration list for PBXNativeTarget "PopViewControllerUITests" */ = { 546 | isa = XCConfigurationList; 547 | buildConfigurations = ( 548 | BC90A51C1CD9E93500D254B0 /* Debug */, 549 | BC90A51D1CD9E93500D254B0 /* Release */, 550 | ); 551 | defaultConfigurationIsVisible = 0; 552 | defaultConfigurationName = Release; 553 | }; 554 | /* End XCConfigurationList section */ 555 | }; 556 | rootObject = BC90A4E51CD9E93500D254B0 /* Project object */; 557 | } 558 | --------------------------------------------------------------------------------