├── SearchTable.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── SearchTable ├── Project.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.swift ├── ViewController.swift └── SearchTableView.swift ├── LICENSE ├── README.md └── .gitignore /SearchTable.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SearchTable/Project.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Project.swift 3 | // SearchTable 4 | // 5 | // Created by Warif Akhand Rishi on 4/27/16. 6 | // Copyright © 2016 Warif Akhand Rishi. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class Project: NSObject { 12 | 13 | var projectId: Int 14 | var name: String 15 | 16 | init(projectId: Int, name: String) { 17 | self.projectId = projectId 18 | self.name = name 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Warif Akhand Rishi 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 | -------------------------------------------------------------------------------- /SearchTable/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 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SearchTableView 2 | UITableView subclass to easily search on tableView. Example project included. 3 | 4 |

5 | 6 | ## Features 7 | - [x] At first searchBar will be hidded. As user drag tableVeiw down, s/he'll see the the searchBar. 8 | - [x] Orientation support 9 | 10 | ## Installation 11 | Just drag and drop `SearchTableView.swift` file in your project 12 | 13 | ## Usage 14 | Steps: 15 | 1. Change `UITableView` class to `SearchTableView` in storyBoard. 16 | 2. Make an `@IBOutlet` of `SearchTableView` in your viewController 17 | 3. Conform to `searchDataSource` protocol 18 | 4. Create model object, subclass of `NSObject` 19 | 5. Assign array of model objects in `itemList` 20 | 6. Return `itemList.count` from numberOfRowsInSection 21 | 7. Implement `searchPropertyName()` of `SearchTableViewDataSource` protocol 22 | 8. return model object's `property` name you want to search for. 23 | 24 | ## Known Issue 25 | There is an issue of searchBar overlaps statusBar. Steps to reproduce this issue: 26 | 1. Users search 27 | 2. Tap on any search result 28 | 3. Navigate to another viewController 29 | 4. Then change device orientation 30 | 5. Back 31 | 32 | This could be an apple bug. Apple sample code also has this issue
33 | https://developer.apple.com/library/ios/samplecode/TableSearch_UISearchController/Introduction/Intro.html 34 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /SearchTable/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 | -------------------------------------------------------------------------------- /SearchTable/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 | -------------------------------------------------------------------------------- /SearchTable/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SearchTable 4 | // 5 | // Created by Warif Akhand Rishi on 4/27/16. 6 | // Copyright © 2016 Warif Akhand Rishi. 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 | // 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 | -------------------------------------------------------------------------------- /SearchTable/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SearchTable 4 | // 5 | // Created by Warif Akhand Rishi on 4/27/16. 6 | // Copyright © 2016 Warif Akhand Rishi. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | @IBOutlet weak var searchTableView: SearchTableView! 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | 18 | searchTableView.layoutMargins = UIEdgeInsets.zero 19 | searchTableView.separatorInset = UIEdgeInsets.zero 20 | definesPresentationContext = true 21 | extendedLayoutIncludesOpaqueBars = true 22 | searchTableView.searchDataSource = self 23 | 24 | searchTableView.itemList = createProjectList() 25 | } 26 | 27 | fileprivate func createProjectList() -> [Project] { 28 | var projectList = [Project]() 29 | for i in 0..<30 { 30 | projectList.append(Project(projectId: i+1, name: "Project \(i+1)")) 31 | } 32 | return projectList 33 | } 34 | 35 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 36 | if segue.identifier == "ShowDetails" { 37 | guard let indexPath = searchTableView.indexPathForSelectedRow, 38 | let selectedProject = searchTableView.itemList[indexPath.row] as? Project else { 39 | return 40 | } 41 | segue.destination.title = selectedProject.name 42 | } 43 | } 44 | 45 | override func didReceiveMemoryWarning() { 46 | super.didReceiveMemoryWarning() 47 | } 48 | } 49 | 50 | extension ViewController: UITableViewDataSource { 51 | 52 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 53 | return searchTableView.itemList.count 54 | } 55 | 56 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 57 | 58 | let cell = tableView.dequeueReusableCell(withIdentifier: "ProjectListCell", for: indexPath) 59 | let project = searchTableView.itemList[(indexPath as NSIndexPath).row] as! Project 60 | cell.textLabel?.text = project.name 61 | cell.layoutMargins = UIEdgeInsets.zero 62 | 63 | return cell 64 | } 65 | } 66 | 67 | extension ViewController : SearchTableViewDataSource { 68 | 69 | func searchPropertyName() -> String { 70 | return "name" 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /SearchTable/SearchTableView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SearchTableView.swift 3 | // Genops 4 | // 5 | // Created by Warif Akhand Rishi on 4/11/16. 6 | // Copyright © 2016 Genweb2. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public protocol SearchTableViewDataSource : NSObjectProtocol { 12 | func searchPropertyName() -> String 13 | } 14 | 15 | class SearchTableView : UITableView { 16 | 17 | var itemList : [AnyObject] { 18 | get { 19 | return getDataSource() 20 | } set { 21 | items = newValue 22 | } 23 | } 24 | 25 | var searchDataSource: SearchTableViewDataSource? 26 | 27 | fileprivate var items = [AnyObject]() 28 | 29 | fileprivate var searchProperty : String { 30 | 31 | guard let searchDataSource = searchDataSource else { 32 | return "" 33 | } 34 | 35 | return searchDataSource.searchPropertyName() 36 | } 37 | 38 | fileprivate var filteredItems = [AnyObject]() 39 | fileprivate let searchController = UISearchController(searchResultsController: .none) 40 | 41 | required init?(coder aDecoder: NSCoder) { 42 | super.init(coder: aDecoder) 43 | 44 | setup() 45 | } 46 | 47 | fileprivate func setup() { 48 | DispatchQueue.main.async { () -> Void in 49 | self.searchController.dimsBackgroundDuringPresentation = false 50 | self.searchController.searchResultsUpdater = self 51 | self.searchController.searchBar.sizeToFit() 52 | self.tableHeaderView = self.searchController.searchBar 53 | let contentOffset = CGPoint(x: 0.0, y: self.contentOffset.y + self.searchController.searchBar.frame.height) 54 | self.setContentOffset(contentOffset, animated: false) 55 | } 56 | } 57 | 58 | fileprivate func getDataSource() -> [AnyObject] { 59 | return (searchController.isActive) ? filteredItems : items 60 | } 61 | } 62 | 63 | extension SearchTableView: UISearchResultsUpdating { 64 | 65 | func updateSearchResults(for searchController: UISearchController) { 66 | // Update the filtered array based on the search text. 67 | let searchResults = items 68 | 69 | // Strip out all the leading and trailing spaces. 70 | let whitespaceCharacterSet = CharacterSet.whitespaces 71 | let strippedString = searchController.searchBar.text!.trimmingCharacters(in: whitespaceCharacterSet) 72 | let searchItems = strippedString.components(separatedBy: " ") as [String] 73 | 74 | // Build all the "AND" expressions for each value in the searchString. 75 | let andMatchPredicates: [NSPredicate] = searchItems.map { searchString in 76 | // Each searchString creates an OR predicate for: name, yearIntroduced, introPrice. 77 | 78 | var searchItemsPredicate = [NSPredicate]() 79 | 80 | // Below we use NSExpression represent expressions in our predicates. 81 | // NSPredicate is made up of smaller, atomic parts: two NSExpressions (a left-hand value and a right-hand value). 82 | 83 | // Name field matching. 84 | let titleExpression = NSExpression(forKeyPath: searchProperty) 85 | let searchStringExpression = NSExpression(forConstantValue: searchString) 86 | 87 | let titleSearchComparisonPredicate = NSComparisonPredicate(leftExpression: titleExpression, rightExpression: searchStringExpression, modifier: .direct, type: .contains, options: .caseInsensitive) 88 | 89 | searchItemsPredicate.append(titleSearchComparisonPredicate) 90 | 91 | let numberFormatter = NumberFormatter() 92 | numberFormatter.numberStyle = .none 93 | numberFormatter.formatterBehavior = .default 94 | 95 | // Add this OR predicate to our master AND predicate. 96 | let orMatchPredicate = NSCompoundPredicate(orPredicateWithSubpredicates:searchItemsPredicate) 97 | 98 | return orMatchPredicate 99 | } 100 | 101 | // Match up the fields of the Product object. 102 | let finalCompoundPredicate = NSCompoundPredicate(andPredicateWithSubpredicates: andMatchPredicates) 103 | 104 | let filteredResults = searchResults.filter { finalCompoundPredicate.evaluate(with: $0) } 105 | 106 | // Hand over the filtered results to our search results table. 107 | //let resultsController = searchController.searchResultsController as! ProjectListViewController 108 | filteredItems = filteredResults 109 | reloadData() 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /SearchTable/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 | 32 | 33 | 34 | 35 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /SearchTable.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | BC10D7111CD0A7130068B50A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC10D7101CD0A7130068B50A /* AppDelegate.swift */; }; 11 | BC10D7131CD0A7130068B50A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC10D7121CD0A7130068B50A /* ViewController.swift */; }; 12 | BC10D7161CD0A7130068B50A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BC10D7141CD0A7130068B50A /* Main.storyboard */; }; 13 | BC10D7181CD0A7130068B50A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BC10D7171CD0A7130068B50A /* Assets.xcassets */; }; 14 | BC10D71B1CD0A7130068B50A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BC10D7191CD0A7130068B50A /* LaunchScreen.storyboard */; }; 15 | BC10D7231CD0A7690068B50A /* SearchTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC10D7221CD0A7690068B50A /* SearchTableView.swift */; }; 16 | BC10D7251CD0A9860068B50A /* Project.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC10D7241CD0A9860068B50A /* Project.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | BC10D70D1CD0A7130068B50A /* SearchTable.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SearchTable.app; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | BC10D7101CD0A7130068B50A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 22 | BC10D7121CD0A7130068B50A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 23 | BC10D7151CD0A7130068B50A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 24 | BC10D7171CD0A7130068B50A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 25 | BC10D71A1CD0A7130068B50A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 26 | BC10D71C1CD0A7130068B50A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | BC10D7221CD0A7690068B50A /* SearchTableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SearchTableView.swift; sourceTree = ""; }; 28 | BC10D7241CD0A9860068B50A /* Project.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Project.swift; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | BC10D70A1CD0A7130068B50A /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | BC10D7041CD0A7130068B50A = { 43 | isa = PBXGroup; 44 | children = ( 45 | BC10D70F1CD0A7130068B50A /* SearchTable */, 46 | BC10D70E1CD0A7130068B50A /* Products */, 47 | ); 48 | sourceTree = ""; 49 | }; 50 | BC10D70E1CD0A7130068B50A /* Products */ = { 51 | isa = PBXGroup; 52 | children = ( 53 | BC10D70D1CD0A7130068B50A /* SearchTable.app */, 54 | ); 55 | name = Products; 56 | sourceTree = ""; 57 | }; 58 | BC10D70F1CD0A7130068B50A /* SearchTable */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | BC10D7221CD0A7690068B50A /* SearchTableView.swift */, 62 | BC10D7101CD0A7130068B50A /* AppDelegate.swift */, 63 | BC10D7121CD0A7130068B50A /* ViewController.swift */, 64 | BC10D7141CD0A7130068B50A /* Main.storyboard */, 65 | BC10D7171CD0A7130068B50A /* Assets.xcassets */, 66 | BC10D7191CD0A7130068B50A /* LaunchScreen.storyboard */, 67 | BC10D71C1CD0A7130068B50A /* Info.plist */, 68 | BC10D7241CD0A9860068B50A /* Project.swift */, 69 | ); 70 | path = SearchTable; 71 | sourceTree = ""; 72 | }; 73 | /* End PBXGroup section */ 74 | 75 | /* Begin PBXNativeTarget section */ 76 | BC10D70C1CD0A7130068B50A /* SearchTable */ = { 77 | isa = PBXNativeTarget; 78 | buildConfigurationList = BC10D71F1CD0A7130068B50A /* Build configuration list for PBXNativeTarget "SearchTable" */; 79 | buildPhases = ( 80 | BC10D7091CD0A7130068B50A /* Sources */, 81 | BC10D70A1CD0A7130068B50A /* Frameworks */, 82 | BC10D70B1CD0A7130068B50A /* Resources */, 83 | ); 84 | buildRules = ( 85 | ); 86 | dependencies = ( 87 | ); 88 | name = SearchTable; 89 | productName = SearchTable; 90 | productReference = BC10D70D1CD0A7130068B50A /* SearchTable.app */; 91 | productType = "com.apple.product-type.application"; 92 | }; 93 | /* End PBXNativeTarget section */ 94 | 95 | /* Begin PBXProject section */ 96 | BC10D7051CD0A7130068B50A /* Project object */ = { 97 | isa = PBXProject; 98 | attributes = { 99 | LastSwiftUpdateCheck = 0720; 100 | LastUpgradeCheck = 0800; 101 | ORGANIZATIONNAME = "Warif Akhand Rishi"; 102 | TargetAttributes = { 103 | BC10D70C1CD0A7130068B50A = { 104 | CreatedOnToolsVersion = 7.2; 105 | LastSwiftMigration = 0800; 106 | }; 107 | }; 108 | }; 109 | buildConfigurationList = BC10D7081CD0A7130068B50A /* Build configuration list for PBXProject "SearchTable" */; 110 | compatibilityVersion = "Xcode 3.2"; 111 | developmentRegion = English; 112 | hasScannedForEncodings = 0; 113 | knownRegions = ( 114 | en, 115 | Base, 116 | ); 117 | mainGroup = BC10D7041CD0A7130068B50A; 118 | productRefGroup = BC10D70E1CD0A7130068B50A /* Products */; 119 | projectDirPath = ""; 120 | projectRoot = ""; 121 | targets = ( 122 | BC10D70C1CD0A7130068B50A /* SearchTable */, 123 | ); 124 | }; 125 | /* End PBXProject section */ 126 | 127 | /* Begin PBXResourcesBuildPhase section */ 128 | BC10D70B1CD0A7130068B50A /* Resources */ = { 129 | isa = PBXResourcesBuildPhase; 130 | buildActionMask = 2147483647; 131 | files = ( 132 | BC10D71B1CD0A7130068B50A /* LaunchScreen.storyboard in Resources */, 133 | BC10D7181CD0A7130068B50A /* Assets.xcassets in Resources */, 134 | BC10D7161CD0A7130068B50A /* Main.storyboard in Resources */, 135 | ); 136 | runOnlyForDeploymentPostprocessing = 0; 137 | }; 138 | /* End PBXResourcesBuildPhase section */ 139 | 140 | /* Begin PBXSourcesBuildPhase section */ 141 | BC10D7091CD0A7130068B50A /* Sources */ = { 142 | isa = PBXSourcesBuildPhase; 143 | buildActionMask = 2147483647; 144 | files = ( 145 | BC10D7131CD0A7130068B50A /* ViewController.swift in Sources */, 146 | BC10D7111CD0A7130068B50A /* AppDelegate.swift in Sources */, 147 | BC10D7231CD0A7690068B50A /* SearchTableView.swift in Sources */, 148 | BC10D7251CD0A9860068B50A /* Project.swift in Sources */, 149 | ); 150 | runOnlyForDeploymentPostprocessing = 0; 151 | }; 152 | /* End PBXSourcesBuildPhase section */ 153 | 154 | /* Begin PBXVariantGroup section */ 155 | BC10D7141CD0A7130068B50A /* Main.storyboard */ = { 156 | isa = PBXVariantGroup; 157 | children = ( 158 | BC10D7151CD0A7130068B50A /* Base */, 159 | ); 160 | name = Main.storyboard; 161 | sourceTree = ""; 162 | }; 163 | BC10D7191CD0A7130068B50A /* LaunchScreen.storyboard */ = { 164 | isa = PBXVariantGroup; 165 | children = ( 166 | BC10D71A1CD0A7130068B50A /* Base */, 167 | ); 168 | name = LaunchScreen.storyboard; 169 | sourceTree = ""; 170 | }; 171 | /* End PBXVariantGroup section */ 172 | 173 | /* Begin XCBuildConfiguration section */ 174 | BC10D71D1CD0A7130068B50A /* Debug */ = { 175 | isa = XCBuildConfiguration; 176 | buildSettings = { 177 | ALWAYS_SEARCH_USER_PATHS = NO; 178 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 179 | CLANG_CXX_LIBRARY = "libc++"; 180 | CLANG_ENABLE_MODULES = YES; 181 | CLANG_ENABLE_OBJC_ARC = YES; 182 | CLANG_WARN_BOOL_CONVERSION = YES; 183 | CLANG_WARN_CONSTANT_CONVERSION = YES; 184 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 185 | CLANG_WARN_EMPTY_BODY = YES; 186 | CLANG_WARN_ENUM_CONVERSION = YES; 187 | CLANG_WARN_INFINITE_RECURSION = YES; 188 | CLANG_WARN_INT_CONVERSION = YES; 189 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 190 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 191 | CLANG_WARN_UNREACHABLE_CODE = YES; 192 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 193 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 194 | COPY_PHASE_STRIP = NO; 195 | DEBUG_INFORMATION_FORMAT = dwarf; 196 | ENABLE_STRICT_OBJC_MSGSEND = YES; 197 | ENABLE_TESTABILITY = YES; 198 | GCC_C_LANGUAGE_STANDARD = gnu99; 199 | GCC_DYNAMIC_NO_PIC = NO; 200 | GCC_NO_COMMON_BLOCKS = YES; 201 | GCC_OPTIMIZATION_LEVEL = 0; 202 | GCC_PREPROCESSOR_DEFINITIONS = ( 203 | "DEBUG=1", 204 | "$(inherited)", 205 | ); 206 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 207 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 208 | GCC_WARN_UNDECLARED_SELECTOR = YES; 209 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 210 | GCC_WARN_UNUSED_FUNCTION = YES; 211 | GCC_WARN_UNUSED_VARIABLE = YES; 212 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 213 | MTL_ENABLE_DEBUG_INFO = YES; 214 | ONLY_ACTIVE_ARCH = YES; 215 | SDKROOT = iphoneos; 216 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 217 | TARGETED_DEVICE_FAMILY = "1,2"; 218 | }; 219 | name = Debug; 220 | }; 221 | BC10D71E1CD0A7130068B50A /* Release */ = { 222 | isa = XCBuildConfiguration; 223 | buildSettings = { 224 | ALWAYS_SEARCH_USER_PATHS = NO; 225 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 226 | CLANG_CXX_LIBRARY = "libc++"; 227 | CLANG_ENABLE_MODULES = YES; 228 | CLANG_ENABLE_OBJC_ARC = YES; 229 | CLANG_WARN_BOOL_CONVERSION = YES; 230 | CLANG_WARN_CONSTANT_CONVERSION = YES; 231 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 232 | CLANG_WARN_EMPTY_BODY = YES; 233 | CLANG_WARN_ENUM_CONVERSION = YES; 234 | CLANG_WARN_INFINITE_RECURSION = YES; 235 | CLANG_WARN_INT_CONVERSION = YES; 236 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 237 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 238 | CLANG_WARN_UNREACHABLE_CODE = YES; 239 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 240 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 241 | COPY_PHASE_STRIP = NO; 242 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 243 | ENABLE_NS_ASSERTIONS = NO; 244 | ENABLE_STRICT_OBJC_MSGSEND = YES; 245 | GCC_C_LANGUAGE_STANDARD = gnu99; 246 | GCC_NO_COMMON_BLOCKS = YES; 247 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 248 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 249 | GCC_WARN_UNDECLARED_SELECTOR = YES; 250 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 251 | GCC_WARN_UNUSED_FUNCTION = YES; 252 | GCC_WARN_UNUSED_VARIABLE = YES; 253 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 254 | MTL_ENABLE_DEBUG_INFO = NO; 255 | SDKROOT = iphoneos; 256 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 257 | TARGETED_DEVICE_FAMILY = "1,2"; 258 | VALIDATE_PRODUCT = YES; 259 | }; 260 | name = Release; 261 | }; 262 | BC10D7201CD0A7130068B50A /* Debug */ = { 263 | isa = XCBuildConfiguration; 264 | buildSettings = { 265 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 266 | INFOPLIST_FILE = SearchTable/Info.plist; 267 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 268 | PRODUCT_BUNDLE_IDENTIFIER = com.war.SearchTable; 269 | PRODUCT_NAME = "$(TARGET_NAME)"; 270 | SWIFT_VERSION = 3.0; 271 | }; 272 | name = Debug; 273 | }; 274 | BC10D7211CD0A7130068B50A /* Release */ = { 275 | isa = XCBuildConfiguration; 276 | buildSettings = { 277 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 278 | INFOPLIST_FILE = SearchTable/Info.plist; 279 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 280 | PRODUCT_BUNDLE_IDENTIFIER = com.war.SearchTable; 281 | PRODUCT_NAME = "$(TARGET_NAME)"; 282 | SWIFT_VERSION = 3.0; 283 | }; 284 | name = Release; 285 | }; 286 | /* End XCBuildConfiguration section */ 287 | 288 | /* Begin XCConfigurationList section */ 289 | BC10D7081CD0A7130068B50A /* Build configuration list for PBXProject "SearchTable" */ = { 290 | isa = XCConfigurationList; 291 | buildConfigurations = ( 292 | BC10D71D1CD0A7130068B50A /* Debug */, 293 | BC10D71E1CD0A7130068B50A /* Release */, 294 | ); 295 | defaultConfigurationIsVisible = 0; 296 | defaultConfigurationName = Release; 297 | }; 298 | BC10D71F1CD0A7130068B50A /* Build configuration list for PBXNativeTarget "SearchTable" */ = { 299 | isa = XCConfigurationList; 300 | buildConfigurations = ( 301 | BC10D7201CD0A7130068B50A /* Debug */, 302 | BC10D7211CD0A7130068B50A /* Release */, 303 | ); 304 | defaultConfigurationIsVisible = 0; 305 | defaultConfigurationName = Release; 306 | }; 307 | /* End XCConfigurationList section */ 308 | }; 309 | rootObject = BC10D7051CD0A7130068B50A /* Project object */; 310 | } 311 | --------------------------------------------------------------------------------