├── PullToRefreshExample_RegularViewController.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── PullToRefreshExample_RegularViewController ├── PullToRefreshExample_RegularViewController.xcdatamodeld │ ├── .xccurrentversion │ └── PullToRefreshExample_RegularViewController.xcdatamodel │ │ └── contents ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── ViewController.swift ├── AppDelegate.swift └── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── README.md └── PullToRefreshExample_RegularViewControllerTests ├── Info.plist └── PullToRefreshExample_RegularViewControllerTests.swift /PullToRefreshExample_RegularViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewController/PullToRefreshExample_RegularViewController.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PullToRefreshExample_RegularViewController 2 | 3 | ## Resources 4 | This repository contains an example Xcode project for the blog post at [andrewcbancroft.com](http://www.andrewcbancroft.com) titled [Basics of Pull to Refresh for Swift Developers](http://www.andrewcbancroft.com/2015/03/17/basics-of-pull-to-refresh-for-swift-developers/). 5 | 6 | ## Compatibility 7 | Verified that this repository's code works in XCode 9 with Swift 4 8 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewController/PullToRefreshExample_RegularViewController.xcdatamodeld/PullToRefreshExample_RegularViewController.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewControllerTests/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 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewControllerTests/PullToRefreshExample_RegularViewControllerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PullToRefreshExample_RegularViewControllerTests.swift 3 | // PullToRefreshExample_RegularViewControllerTests 4 | // 5 | // Created by Andrew Bancroft on 3/16/15. 6 | // Copyright (c) 2015 Andrew Bancroft. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class PullToRefreshExample_RegularViewControllerTests: 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 | XCTAssert(true, "Pass") 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 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewController/Images.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 | } -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewController/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 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewController/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PullToRefreshExample_RegularViewController 4 | // 5 | // Created by Andrew Bancroft on 3/16/15. 6 | // Copyright (c) 2015 Andrew Bancroft. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | struct Movie { 12 | let title: String 13 | let genre: String 14 | } 15 | 16 | class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { 17 | 18 | @IBOutlet weak var tableView: UITableView! 19 | 20 | var movies = [ 21 | Movie(title: "Lion King", genre: "Animation"), 22 | Movie(title: "Star Wars", genre: "Sci-fi") 23 | ] 24 | 25 | lazy var refreshControl: UIRefreshControl = { 26 | let refreshControl = UIRefreshControl() 27 | refreshControl.addTarget(self, action: #selector(ViewController.handleRefresh(_:)), for: UIControlEvents.valueChanged) 28 | 29 | return refreshControl 30 | }() 31 | 32 | override func viewDidLoad() { 33 | super.viewDidLoad() 34 | // Do any additional setup after loading the view, typically from a nib. 35 | 36 | self.tableView.addSubview(self.refreshControl) 37 | } 38 | 39 | @objc func handleRefresh(_ refreshControl: UIRefreshControl) { 40 | // Do some reloading of data and update the table view's data source 41 | // Fetch more objects from a web service, for example... 42 | 43 | // Simply adding an object to the data source for this example 44 | let newMovie = Movie(title: "Serenity", genre: "Sci-fi") 45 | movies.append(newMovie) 46 | 47 | movies.sort() { $0.title < $1.title } 48 | 49 | self.tableView.reloadData() 50 | refreshControl.endRefreshing() 51 | } 52 | 53 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 54 | return movies.count 55 | } 56 | 57 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 58 | let cell = tableView.dequeueReusableCell(withIdentifier: "cell")! 59 | 60 | cell.textLabel?.text = movies[(indexPath as NSIndexPath).row].title 61 | cell.detailTextLabel?.text = movies[(indexPath as NSIndexPath).row].genre 62 | 63 | return cell 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewController/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // PullToRefreshExample_RegularViewController 4 | // 5 | // Created by Andrew Bancroft on 3/16/15. 6 | // Copyright (c) 2015 Andrew Bancroft. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreData 11 | 12 | @UIApplicationMain 13 | class AppDelegate: UIResponder, UIApplicationDelegate { 14 | 15 | var window: UIWindow? 16 | 17 | 18 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 19 | // Override point for customization after application launch. 20 | return true 21 | } 22 | 23 | func applicationWillResignActive(_ application: UIApplication) { 24 | // 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. 25 | // 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. 26 | } 27 | 28 | func applicationDidEnterBackground(_ application: UIApplication) { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | func applicationWillEnterForeground(_ application: UIApplication) { 34 | // 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. 35 | } 36 | 37 | func applicationDidBecomeActive(_ application: UIApplication) { 38 | // 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. 39 | } 40 | 41 | func applicationWillTerminate(_ application: UIApplication) { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | // Saves changes in the application's managed object context before the application terminates. 44 | } 45 | 46 | } 47 | 48 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewController/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewController/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 | 28 | 29 | 30 | 31 | 38 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /PullToRefreshExample_RegularViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | F220AB241AB7C7FE009A7110 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F220AB231AB7C7FE009A7110 /* AppDelegate.swift */; }; 11 | F220AB291AB7C7FE009A7110 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F220AB281AB7C7FE009A7110 /* ViewController.swift */; }; 12 | F220AB2C1AB7C7FE009A7110 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F220AB2A1AB7C7FE009A7110 /* Main.storyboard */; }; 13 | F220AB2E1AB7C7FE009A7110 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F220AB2D1AB7C7FE009A7110 /* Images.xcassets */; }; 14 | F220AB311AB7C7FE009A7110 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = F220AB2F1AB7C7FE009A7110 /* LaunchScreen.xib */; }; 15 | F220AB3D1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F220AB3C1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests.swift */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXContainerItemProxy section */ 19 | F220AB371AB7C7FE009A7110 /* PBXContainerItemProxy */ = { 20 | isa = PBXContainerItemProxy; 21 | containerPortal = F220AB161AB7C7FE009A7110 /* Project object */; 22 | proxyType = 1; 23 | remoteGlobalIDString = F220AB1D1AB7C7FE009A7110; 24 | remoteInfo = PullToRefreshExample_RegularViewController; 25 | }; 26 | /* End PBXContainerItemProxy section */ 27 | 28 | /* Begin PBXFileReference section */ 29 | F220AB1E1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PullToRefreshExample_RegularViewController.app; sourceTree = BUILT_PRODUCTS_DIR; }; 30 | F220AB221AB7C7FE009A7110 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 31 | F220AB231AB7C7FE009A7110 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 32 | F220AB281AB7C7FE009A7110 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 33 | F220AB2B1AB7C7FE009A7110 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 34 | F220AB2D1AB7C7FE009A7110 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 35 | F220AB301AB7C7FE009A7110 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 36 | F220AB361AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PullToRefreshExample_RegularViewControllerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | F220AB3B1AB7C7FE009A7110 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | F220AB3C1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PullToRefreshExample_RegularViewControllerTests.swift; sourceTree = ""; }; 39 | /* End PBXFileReference section */ 40 | 41 | /* Begin PBXFrameworksBuildPhase section */ 42 | F220AB1B1AB7C7FE009A7110 /* Frameworks */ = { 43 | isa = PBXFrameworksBuildPhase; 44 | buildActionMask = 2147483647; 45 | files = ( 46 | ); 47 | runOnlyForDeploymentPostprocessing = 0; 48 | }; 49 | F220AB331AB7C7FE009A7110 /* Frameworks */ = { 50 | isa = PBXFrameworksBuildPhase; 51 | buildActionMask = 2147483647; 52 | files = ( 53 | ); 54 | runOnlyForDeploymentPostprocessing = 0; 55 | }; 56 | /* End PBXFrameworksBuildPhase section */ 57 | 58 | /* Begin PBXGroup section */ 59 | F220AB151AB7C7FE009A7110 = { 60 | isa = PBXGroup; 61 | children = ( 62 | F220AB201AB7C7FE009A7110 /* PullToRefreshExample_RegularViewController */, 63 | F220AB391AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests */, 64 | F220AB1F1AB7C7FE009A7110 /* Products */, 65 | ); 66 | sourceTree = ""; 67 | }; 68 | F220AB1F1AB7C7FE009A7110 /* Products */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | F220AB1E1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewController.app */, 72 | F220AB361AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests.xctest */, 73 | ); 74 | name = Products; 75 | sourceTree = ""; 76 | }; 77 | F220AB201AB7C7FE009A7110 /* PullToRefreshExample_RegularViewController */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | F220AB231AB7C7FE009A7110 /* AppDelegate.swift */, 81 | F220AB281AB7C7FE009A7110 /* ViewController.swift */, 82 | F220AB2A1AB7C7FE009A7110 /* Main.storyboard */, 83 | F220AB2D1AB7C7FE009A7110 /* Images.xcassets */, 84 | F220AB2F1AB7C7FE009A7110 /* LaunchScreen.xib */, 85 | F220AB211AB7C7FE009A7110 /* Supporting Files */, 86 | ); 87 | path = PullToRefreshExample_RegularViewController; 88 | sourceTree = ""; 89 | }; 90 | F220AB211AB7C7FE009A7110 /* Supporting Files */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | F220AB221AB7C7FE009A7110 /* Info.plist */, 94 | ); 95 | name = "Supporting Files"; 96 | sourceTree = ""; 97 | }; 98 | F220AB391AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | F220AB3C1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests.swift */, 102 | F220AB3A1AB7C7FE009A7110 /* Supporting Files */, 103 | ); 104 | path = PullToRefreshExample_RegularViewControllerTests; 105 | sourceTree = ""; 106 | }; 107 | F220AB3A1AB7C7FE009A7110 /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | F220AB3B1AB7C7FE009A7110 /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | /* End PBXGroup section */ 116 | 117 | /* Begin PBXNativeTarget section */ 118 | F220AB1D1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewController */ = { 119 | isa = PBXNativeTarget; 120 | buildConfigurationList = F220AB401AB7C7FE009A7110 /* Build configuration list for PBXNativeTarget "PullToRefreshExample_RegularViewController" */; 121 | buildPhases = ( 122 | F220AB1A1AB7C7FE009A7110 /* Sources */, 123 | F220AB1B1AB7C7FE009A7110 /* Frameworks */, 124 | F220AB1C1AB7C7FE009A7110 /* Resources */, 125 | ); 126 | buildRules = ( 127 | ); 128 | dependencies = ( 129 | ); 130 | name = PullToRefreshExample_RegularViewController; 131 | productName = PullToRefreshExample_RegularViewController; 132 | productReference = F220AB1E1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewController.app */; 133 | productType = "com.apple.product-type.application"; 134 | }; 135 | F220AB351AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests */ = { 136 | isa = PBXNativeTarget; 137 | buildConfigurationList = F220AB431AB7C7FE009A7110 /* Build configuration list for PBXNativeTarget "PullToRefreshExample_RegularViewControllerTests" */; 138 | buildPhases = ( 139 | F220AB321AB7C7FE009A7110 /* Sources */, 140 | F220AB331AB7C7FE009A7110 /* Frameworks */, 141 | F220AB341AB7C7FE009A7110 /* Resources */, 142 | ); 143 | buildRules = ( 144 | ); 145 | dependencies = ( 146 | F220AB381AB7C7FE009A7110 /* PBXTargetDependency */, 147 | ); 148 | name = PullToRefreshExample_RegularViewControllerTests; 149 | productName = PullToRefreshExample_RegularViewControllerTests; 150 | productReference = F220AB361AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests.xctest */; 151 | productType = "com.apple.product-type.bundle.unit-test"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | F220AB161AB7C7FE009A7110 /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastSwiftMigration = 0700; 160 | LastSwiftUpdateCheck = 0700; 161 | LastUpgradeCheck = 0920; 162 | ORGANIZATIONNAME = "Andrew Bancroft"; 163 | TargetAttributes = { 164 | F220AB1D1AB7C7FE009A7110 = { 165 | CreatedOnToolsVersion = 6.2; 166 | LastSwiftMigration = 0920; 167 | }; 168 | F220AB351AB7C7FE009A7110 = { 169 | CreatedOnToolsVersion = 6.2; 170 | LastSwiftMigration = 0920; 171 | TestTargetID = F220AB1D1AB7C7FE009A7110; 172 | }; 173 | }; 174 | }; 175 | buildConfigurationList = F220AB191AB7C7FE009A7110 /* Build configuration list for PBXProject "PullToRefreshExample_RegularViewController" */; 176 | compatibilityVersion = "Xcode 3.2"; 177 | developmentRegion = English; 178 | hasScannedForEncodings = 0; 179 | knownRegions = ( 180 | en, 181 | Base, 182 | ); 183 | mainGroup = F220AB151AB7C7FE009A7110; 184 | productRefGroup = F220AB1F1AB7C7FE009A7110 /* Products */; 185 | projectDirPath = ""; 186 | projectRoot = ""; 187 | targets = ( 188 | F220AB1D1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewController */, 189 | F220AB351AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests */, 190 | ); 191 | }; 192 | /* End PBXProject section */ 193 | 194 | /* Begin PBXResourcesBuildPhase section */ 195 | F220AB1C1AB7C7FE009A7110 /* Resources */ = { 196 | isa = PBXResourcesBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | F220AB2C1AB7C7FE009A7110 /* Main.storyboard in Resources */, 200 | F220AB311AB7C7FE009A7110 /* LaunchScreen.xib in Resources */, 201 | F220AB2E1AB7C7FE009A7110 /* Images.xcassets in Resources */, 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | F220AB341AB7C7FE009A7110 /* Resources */ = { 206 | isa = PBXResourcesBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXResourcesBuildPhase section */ 213 | 214 | /* Begin PBXSourcesBuildPhase section */ 215 | F220AB1A1AB7C7FE009A7110 /* Sources */ = { 216 | isa = PBXSourcesBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | F220AB291AB7C7FE009A7110 /* ViewController.swift in Sources */, 220 | F220AB241AB7C7FE009A7110 /* AppDelegate.swift in Sources */, 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | F220AB321AB7C7FE009A7110 /* Sources */ = { 225 | isa = PBXSourcesBuildPhase; 226 | buildActionMask = 2147483647; 227 | files = ( 228 | F220AB3D1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewControllerTests.swift in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXTargetDependency section */ 235 | F220AB381AB7C7FE009A7110 /* PBXTargetDependency */ = { 236 | isa = PBXTargetDependency; 237 | target = F220AB1D1AB7C7FE009A7110 /* PullToRefreshExample_RegularViewController */; 238 | targetProxy = F220AB371AB7C7FE009A7110 /* PBXContainerItemProxy */; 239 | }; 240 | /* End PBXTargetDependency section */ 241 | 242 | /* Begin PBXVariantGroup section */ 243 | F220AB2A1AB7C7FE009A7110 /* Main.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | F220AB2B1AB7C7FE009A7110 /* Base */, 247 | ); 248 | name = Main.storyboard; 249 | sourceTree = ""; 250 | }; 251 | F220AB2F1AB7C7FE009A7110 /* LaunchScreen.xib */ = { 252 | isa = PBXVariantGroup; 253 | children = ( 254 | F220AB301AB7C7FE009A7110 /* Base */, 255 | ); 256 | name = LaunchScreen.xib; 257 | sourceTree = ""; 258 | }; 259 | /* End PBXVariantGroup section */ 260 | 261 | /* Begin XCBuildConfiguration section */ 262 | F220AB3E1AB7C7FE009A7110 /* Debug */ = { 263 | isa = XCBuildConfiguration; 264 | buildSettings = { 265 | ALWAYS_SEARCH_USER_PATHS = NO; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 271 | CLANG_WARN_BOOL_CONVERSION = YES; 272 | CLANG_WARN_COMMA = YES; 273 | CLANG_WARN_CONSTANT_CONVERSION = YES; 274 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 275 | CLANG_WARN_EMPTY_BODY = YES; 276 | CLANG_WARN_ENUM_CONVERSION = YES; 277 | CLANG_WARN_INFINITE_RECURSION = YES; 278 | CLANG_WARN_INT_CONVERSION = YES; 279 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 280 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 282 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 283 | CLANG_WARN_STRICT_PROTOTYPES = YES; 284 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | ENABLE_STRICT_OBJC_MSGSEND = YES; 290 | ENABLE_TESTABILITY = YES; 291 | GCC_C_LANGUAGE_STANDARD = gnu99; 292 | GCC_DYNAMIC_NO_PIC = NO; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_OPTIMIZATION_LEVEL = 0; 295 | GCC_PREPROCESSOR_DEFINITIONS = ( 296 | "DEBUG=1", 297 | "$(inherited)", 298 | ); 299 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 300 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 301 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 302 | GCC_WARN_UNDECLARED_SELECTOR = YES; 303 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 304 | GCC_WARN_UNUSED_FUNCTION = YES; 305 | GCC_WARN_UNUSED_VARIABLE = YES; 306 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 307 | MTL_ENABLE_DEBUG_INFO = YES; 308 | ONLY_ACTIVE_ARCH = YES; 309 | SDKROOT = iphoneos; 310 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 311 | TARGETED_DEVICE_FAMILY = "1,2"; 312 | }; 313 | name = Debug; 314 | }; 315 | F220AB3F1AB7C7FE009A7110 /* Release */ = { 316 | isa = XCBuildConfiguration; 317 | buildSettings = { 318 | ALWAYS_SEARCH_USER_PATHS = NO; 319 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 320 | CLANG_CXX_LIBRARY = "libc++"; 321 | CLANG_ENABLE_MODULES = YES; 322 | CLANG_ENABLE_OBJC_ARC = YES; 323 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 324 | CLANG_WARN_BOOL_CONVERSION = YES; 325 | CLANG_WARN_COMMA = YES; 326 | CLANG_WARN_CONSTANT_CONVERSION = YES; 327 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 328 | CLANG_WARN_EMPTY_BODY = YES; 329 | CLANG_WARN_ENUM_CONVERSION = YES; 330 | CLANG_WARN_INFINITE_RECURSION = YES; 331 | CLANG_WARN_INT_CONVERSION = YES; 332 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 333 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 334 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 335 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 336 | CLANG_WARN_STRICT_PROTOTYPES = YES; 337 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 338 | CLANG_WARN_UNREACHABLE_CODE = YES; 339 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 340 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 341 | COPY_PHASE_STRIP = NO; 342 | ENABLE_NS_ASSERTIONS = NO; 343 | ENABLE_STRICT_OBJC_MSGSEND = YES; 344 | GCC_C_LANGUAGE_STANDARD = gnu99; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 348 | GCC_WARN_UNDECLARED_SELECTOR = YES; 349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 350 | GCC_WARN_UNUSED_FUNCTION = YES; 351 | GCC_WARN_UNUSED_VARIABLE = YES; 352 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 353 | MTL_ENABLE_DEBUG_INFO = NO; 354 | SDKROOT = iphoneos; 355 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 356 | TARGETED_DEVICE_FAMILY = "1,2"; 357 | VALIDATE_PRODUCT = YES; 358 | }; 359 | name = Release; 360 | }; 361 | F220AB411AB7C7FE009A7110 /* Debug */ = { 362 | isa = XCBuildConfiguration; 363 | buildSettings = { 364 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 365 | INFOPLIST_FILE = PullToRefreshExample_RegularViewController/Info.plist; 366 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 367 | PRODUCT_BUNDLE_IDENTIFIER = "com.andrewcbancroft.$(PRODUCT_NAME:rfc1034identifier)"; 368 | PRODUCT_NAME = "$(TARGET_NAME)"; 369 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 370 | SWIFT_VERSION = 4.0; 371 | }; 372 | name = Debug; 373 | }; 374 | F220AB421AB7C7FE009A7110 /* Release */ = { 375 | isa = XCBuildConfiguration; 376 | buildSettings = { 377 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 378 | INFOPLIST_FILE = PullToRefreshExample_RegularViewController/Info.plist; 379 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 380 | PRODUCT_BUNDLE_IDENTIFIER = "com.andrewcbancroft.$(PRODUCT_NAME:rfc1034identifier)"; 381 | PRODUCT_NAME = "$(TARGET_NAME)"; 382 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 383 | SWIFT_VERSION = 4.0; 384 | }; 385 | name = Release; 386 | }; 387 | F220AB441AB7C7FE009A7110 /* Debug */ = { 388 | isa = XCBuildConfiguration; 389 | buildSettings = { 390 | BUNDLE_LOADER = "$(TEST_HOST)"; 391 | FRAMEWORK_SEARCH_PATHS = ( 392 | "$(SDKROOT)/Developer/Library/Frameworks", 393 | "$(inherited)", 394 | ); 395 | GCC_PREPROCESSOR_DEFINITIONS = ( 396 | "DEBUG=1", 397 | "$(inherited)", 398 | ); 399 | INFOPLIST_FILE = PullToRefreshExample_RegularViewControllerTests/Info.plist; 400 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 401 | PRODUCT_BUNDLE_IDENTIFIER = "com.andrewcbancroft.$(PRODUCT_NAME:rfc1034identifier)"; 402 | PRODUCT_NAME = "$(TARGET_NAME)"; 403 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 404 | SWIFT_VERSION = 4.0; 405 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PullToRefreshExample_RegularViewController.app/PullToRefreshExample_RegularViewController"; 406 | }; 407 | name = Debug; 408 | }; 409 | F220AB451AB7C7FE009A7110 /* Release */ = { 410 | isa = XCBuildConfiguration; 411 | buildSettings = { 412 | BUNDLE_LOADER = "$(TEST_HOST)"; 413 | FRAMEWORK_SEARCH_PATHS = ( 414 | "$(SDKROOT)/Developer/Library/Frameworks", 415 | "$(inherited)", 416 | ); 417 | INFOPLIST_FILE = PullToRefreshExample_RegularViewControllerTests/Info.plist; 418 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 419 | PRODUCT_BUNDLE_IDENTIFIER = "com.andrewcbancroft.$(PRODUCT_NAME:rfc1034identifier)"; 420 | PRODUCT_NAME = "$(TARGET_NAME)"; 421 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 422 | SWIFT_VERSION = 4.0; 423 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PullToRefreshExample_RegularViewController.app/PullToRefreshExample_RegularViewController"; 424 | }; 425 | name = Release; 426 | }; 427 | /* End XCBuildConfiguration section */ 428 | 429 | /* Begin XCConfigurationList section */ 430 | F220AB191AB7C7FE009A7110 /* Build configuration list for PBXProject "PullToRefreshExample_RegularViewController" */ = { 431 | isa = XCConfigurationList; 432 | buildConfigurations = ( 433 | F220AB3E1AB7C7FE009A7110 /* Debug */, 434 | F220AB3F1AB7C7FE009A7110 /* Release */, 435 | ); 436 | defaultConfigurationIsVisible = 0; 437 | defaultConfigurationName = Release; 438 | }; 439 | F220AB401AB7C7FE009A7110 /* Build configuration list for PBXNativeTarget "PullToRefreshExample_RegularViewController" */ = { 440 | isa = XCConfigurationList; 441 | buildConfigurations = ( 442 | F220AB411AB7C7FE009A7110 /* Debug */, 443 | F220AB421AB7C7FE009A7110 /* Release */, 444 | ); 445 | defaultConfigurationIsVisible = 0; 446 | defaultConfigurationName = Release; 447 | }; 448 | F220AB431AB7C7FE009A7110 /* Build configuration list for PBXNativeTarget "PullToRefreshExample_RegularViewControllerTests" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | F220AB441AB7C7FE009A7110 /* Debug */, 452 | F220AB451AB7C7FE009A7110 /* Release */, 453 | ); 454 | defaultConfigurationIsVisible = 0; 455 | defaultConfigurationName = Release; 456 | }; 457 | /* End XCConfigurationList section */ 458 | }; 459 | rootObject = F220AB161AB7C7FE009A7110 /* Project object */; 460 | } 461 | --------------------------------------------------------------------------------