├── Screenshot.gif ├── SwiftyAccordionCells ├── Assets.xcassets │ └── AppIcon.appiconset │ │ ├── icon.png │ │ └── Contents.json ├── Info.plist ├── SwiftyAccordionCells.swift ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.swift └── ViewController.swift ├── SwiftyAccordionCells.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── README.md ├── .gitignore └── LICENSE /Screenshot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinmfischer/SwiftyAccordionCells/HEAD/Screenshot.gif -------------------------------------------------------------------------------- /SwiftyAccordionCells/Assets.xcassets/AppIcon.appiconset/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinmfischer/SwiftyAccordionCells/HEAD/SwiftyAccordionCells/Assets.xcassets/AppIcon.appiconset/icon.png -------------------------------------------------------------------------------- /SwiftyAccordionCells.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Swifty Accordion Cells 2 | 3 | ![](Screenshot.gif) 4 | 5 | Example Swift 3.0 Xcode 8.0 project which demonstrates how to expand and collapse a UITableView like an accordion. Using this lightweight data structure approach, UITableViewCell header/sub-item rows can be added or removed dynamically as needed. Subclass table for further reuse. 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | # Pods/ 27 | 28 | # Carthage 29 | # 30 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 31 | # Carthage/Checkouts 32 | 33 | Carthage/Build 34 | -------------------------------------------------------------------------------- /SwiftyAccordionCells/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 | "size" : "60x60", 25 | "idiom" : "iphone", 26 | "filename" : "icon.png", 27 | "scale" : "2x" 28 | }, 29 | { 30 | "idiom" : "iphone", 31 | "size" : "60x60", 32 | "scale" : "3x" 33 | } 34 | ], 35 | "info" : { 36 | "version" : 1, 37 | "author" : "xcode" 38 | } 39 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Justin M Fischer 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 | -------------------------------------------------------------------------------- /SwiftyAccordionCells/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Cells 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /SwiftyAccordionCells/SwiftyAccordionCells.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SwiftyAccordionCells.swift 3 | // SwiftyAccordionCells 4 | // 5 | // Created by Fischer, Justin on 9/24/15. 6 | // Copyright © 2015 Justin M Fischer. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class SwiftyAccordionCells { 12 | fileprivate (set) var items = [Item]() 13 | 14 | class Item { 15 | var isHidden: Bool 16 | var value: String 17 | var isChecked: Bool 18 | 19 | init(_ hidden: Bool = true, value: String, checked: Bool = false) { 20 | self.isHidden = hidden 21 | self.value = value 22 | self.isChecked = checked 23 | } 24 | } 25 | 26 | class HeaderItem: Item { 27 | init (value: String) { 28 | super.init(false, value: value, checked: false) 29 | } 30 | } 31 | 32 | func append(_ item: Item) { 33 | self.items.append(item) 34 | } 35 | 36 | func removeAll() { 37 | self.items.removeAll() 38 | } 39 | 40 | func expand(_ headerIndex: Int) { 41 | self.toogleVisible(headerIndex, isHidden: false) 42 | } 43 | 44 | func collapse(_ headerIndex: Int) { 45 | self.toogleVisible(headerIndex, isHidden: true) 46 | } 47 | 48 | private func toogleVisible(_ headerIndex: Int, isHidden: Bool) { 49 | var headerIndex = headerIndex 50 | headerIndex += 1 51 | 52 | while headerIndex < self.items.count && !(self.items[headerIndex] is HeaderItem) { 53 | self.items[headerIndex].isHidden = isHidden 54 | 55 | headerIndex += 1 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /SwiftyAccordionCells/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 | -------------------------------------------------------------------------------- /SwiftyAccordionCells/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SwiftyAccordionCells 4 | // 5 | // Created by Fischer, Justin on 9/24/15. 6 | // Copyright © 2015 Justin M Fischer. 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 | -------------------------------------------------------------------------------- /SwiftyAccordionCells/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SwiftyAccordionCells 4 | // 5 | // Created by Fischer, Justin on 9/24/15. 6 | // Copyright © 2015 Justin M Fischer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { 12 | 13 | @IBOutlet weak var enter: UIButton! 14 | @IBOutlet weak var table: UITableView! 15 | 16 | var previouslySelectedHeaderIndex: Int? 17 | var selectedHeaderIndex: Int? 18 | var selectedItemIndex: Int? 19 | 20 | var cells: SwiftyAccordionCells! 21 | 22 | override func viewDidLoad() { 23 | cells = SwiftyAccordionCells() 24 | self.setup() 25 | self.table.estimatedRowHeight = 45 26 | self.table.rowHeight = UITableViewAutomaticDimension 27 | self.table.allowsMultipleSelection = true 28 | } 29 | 30 | override func viewDidAppear(_ animated: Bool) { 31 | super.viewDidAppear(animated) 32 | self.table.reloadData() 33 | } 34 | 35 | func setup() { 36 | self.enter.layer.cornerRadius = 4 37 | 38 | self.cells.append(SwiftyAccordionCells.HeaderItem(value: "Title 1")) 39 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 1")) 40 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 2")) 41 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 3")) 42 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 4")) 43 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 5")) 44 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 6")) 45 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 7")) 46 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 8")) 47 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 9")) 48 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 10")) 49 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 11")) 50 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 12")) 51 | self.cells.append(SwiftyAccordionCells.HeaderItem(value: "Title 2")) 52 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 1")) 53 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 2")) 54 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 3")) 55 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 4")) 56 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 5")) 57 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 6")) 58 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 7")) 59 | self.cells.append(SwiftyAccordionCells.HeaderItem(value: "Title 3")) 60 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 1")) 61 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 2")) 62 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 3")) 63 | self.cells.append(SwiftyAccordionCells.HeaderItem(value: "Title 4")) 64 | self.cells.append(SwiftyAccordionCells.HeaderItem(value: "Title 5")) 65 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 1")) 66 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 2")) 67 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 3")) 68 | self.cells.append(SwiftyAccordionCells.Item(value: "Sub Item 4")) 69 | self.cells.append(SwiftyAccordionCells.HeaderItem(value: "Title 6")) 70 | } 71 | 72 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 73 | return self.cells.items.count 74 | } 75 | 76 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 77 | let item = self.cells.items[(indexPath as NSIndexPath).row] 78 | let value = item.value 79 | let isChecked = item.isChecked as Bool 80 | 81 | if let cell = tableView.dequeueReusableCell(withIdentifier: "cell") { 82 | cell.textLabel?.text = value 83 | 84 | if item as? SwiftyAccordionCells.HeaderItem != nil { 85 | cell.backgroundColor = UIColor.lightGray 86 | cell.accessoryType = .none 87 | } else { 88 | if isChecked { 89 | cell.accessoryType = .checkmark 90 | } else { 91 | cell.accessoryType = .none 92 | } 93 | } 94 | 95 | return cell 96 | } 97 | 98 | return UITableViewCell() 99 | } 100 | 101 | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 102 | let item = self.cells.items[(indexPath as NSIndexPath).row] 103 | 104 | if item is SwiftyAccordionCells.HeaderItem { 105 | return 60 106 | } else if (item.isHidden) { 107 | return 0 108 | } else { 109 | return UITableViewAutomaticDimension 110 | } 111 | } 112 | 113 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 114 | let item = self.cells.items[(indexPath as NSIndexPath).row] 115 | 116 | if item is SwiftyAccordionCells.HeaderItem { 117 | if self.selectedHeaderIndex == nil { 118 | self.selectedHeaderIndex = (indexPath as NSIndexPath).row 119 | } else { 120 | self.previouslySelectedHeaderIndex = self.selectedHeaderIndex 121 | self.selectedHeaderIndex = (indexPath as NSIndexPath).row 122 | } 123 | 124 | if let previouslySelectedHeaderIndex = self.previouslySelectedHeaderIndex { 125 | self.cells.collapse(previouslySelectedHeaderIndex) 126 | } 127 | 128 | if self.previouslySelectedHeaderIndex != self.selectedHeaderIndex { 129 | self.cells.expand(self.selectedHeaderIndex!) 130 | } else { 131 | self.selectedHeaderIndex = nil 132 | self.previouslySelectedHeaderIndex = nil 133 | } 134 | 135 | self.table.beginUpdates() 136 | self.table.endUpdates() 137 | 138 | } else { 139 | if (indexPath as NSIndexPath).row != self.selectedItemIndex { 140 | let cell = self.table.cellForRow(at: indexPath) 141 | cell?.accessoryType = UITableViewCellAccessoryType.checkmark 142 | 143 | if let selectedItemIndex = self.selectedItemIndex { 144 | let previousCell = self.table.cellForRow(at: IndexPath(row: selectedItemIndex, section: 0)) 145 | previousCell?.accessoryType = UITableViewCellAccessoryType.none 146 | cells.items[selectedItemIndex].isChecked = false 147 | } 148 | 149 | self.selectedItemIndex = (indexPath as NSIndexPath).row 150 | cells.items[self.selectedItemIndex!].isChecked = true 151 | } 152 | } 153 | } 154 | 155 | @IBAction func enter(_ sender: AnyObject) { 156 | if let selectedItemIndex = self.selectedItemIndex { 157 | let selectedItemValue = self.cells.items[selectedItemIndex].value 158 | 159 | let alert = UIAlertController(title: "Current Selection", message: selectedItemValue, preferredStyle: UIAlertControllerStyle.alert) 160 | alert.addAction(UIAlertAction(title: "Ok", style: UIAlertActionStyle.default, handler: nil)) 161 | 162 | self.present(alert, animated: true, completion: nil) 163 | } 164 | } 165 | } 166 | -------------------------------------------------------------------------------- /SwiftyAccordionCells/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 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 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 | -------------------------------------------------------------------------------- /SwiftyAccordionCells.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 4E8116DD1BB4B5A70044D85F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E8116DC1BB4B5A70044D85F /* AppDelegate.swift */; }; 11 | 4E8116DF1BB4B5A70044D85F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E8116DE1BB4B5A70044D85F /* ViewController.swift */; }; 12 | 4E8116E21BB4B5A70044D85F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4E8116E01BB4B5A70044D85F /* Main.storyboard */; }; 13 | 4E8116E41BB4B5A70044D85F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4E8116E31BB4B5A70044D85F /* Assets.xcassets */; }; 14 | 4E8116E71BB4B5A70044D85F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4E8116E51BB4B5A70044D85F /* LaunchScreen.storyboard */; }; 15 | 4E81170C1BB4B6D80044D85F /* SwiftyAccordionCells.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E81170B1BB4B6D80044D85F /* SwiftyAccordionCells.swift */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 4E8116D91BB4B5A70044D85F /* SwiftyAccordionCells.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftyAccordionCells.app; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | 4E8116DC1BB4B5A70044D85F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 21 | 4E8116DE1BB4B5A70044D85F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 22 | 4E8116E11BB4B5A70044D85F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 23 | 4E8116E31BB4B5A70044D85F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 24 | 4E8116E61BB4B5A70044D85F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 25 | 4E8116E81BB4B5A70044D85F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 26 | 4E81170B1BB4B6D80044D85F /* SwiftyAccordionCells.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftyAccordionCells.swift; sourceTree = ""; }; 27 | /* End PBXFileReference section */ 28 | 29 | /* Begin PBXFrameworksBuildPhase section */ 30 | 4E8116D61BB4B5A70044D85F /* Frameworks */ = { 31 | isa = PBXFrameworksBuildPhase; 32 | buildActionMask = 2147483647; 33 | files = ( 34 | ); 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXFrameworksBuildPhase section */ 38 | 39 | /* Begin PBXGroup section */ 40 | 4E8116D01BB4B5A70044D85F = { 41 | isa = PBXGroup; 42 | children = ( 43 | 4E8116DB1BB4B5A70044D85F /* SwiftyAccordionCells */, 44 | 4E8116DA1BB4B5A70044D85F /* Products */, 45 | ); 46 | sourceTree = ""; 47 | }; 48 | 4E8116DA1BB4B5A70044D85F /* Products */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | 4E8116D91BB4B5A70044D85F /* SwiftyAccordionCells.app */, 52 | ); 53 | name = Products; 54 | sourceTree = ""; 55 | }; 56 | 4E8116DB1BB4B5A70044D85F /* SwiftyAccordionCells */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 4E8116DC1BB4B5A70044D85F /* AppDelegate.swift */, 60 | 4E81170B1BB4B6D80044D85F /* SwiftyAccordionCells.swift */, 61 | 4E8116DE1BB4B5A70044D85F /* ViewController.swift */, 62 | 4E8116E01BB4B5A70044D85F /* Main.storyboard */, 63 | 4E8116E31BB4B5A70044D85F /* Assets.xcassets */, 64 | 4E8116E51BB4B5A70044D85F /* LaunchScreen.storyboard */, 65 | 4E8116E81BB4B5A70044D85F /* Info.plist */, 66 | ); 67 | path = SwiftyAccordionCells; 68 | sourceTree = ""; 69 | }; 70 | /* End PBXGroup section */ 71 | 72 | /* Begin PBXNativeTarget section */ 73 | 4E8116D81BB4B5A70044D85F /* SwiftyAccordionCells */ = { 74 | isa = PBXNativeTarget; 75 | buildConfigurationList = 4E8117011BB4B5A70044D85F /* Build configuration list for PBXNativeTarget "SwiftyAccordionCells" */; 76 | buildPhases = ( 77 | 4E8116D51BB4B5A70044D85F /* Sources */, 78 | 4E8116D61BB4B5A70044D85F /* Frameworks */, 79 | 4E8116D71BB4B5A70044D85F /* Resources */, 80 | ); 81 | buildRules = ( 82 | ); 83 | dependencies = ( 84 | ); 85 | name = SwiftyAccordionCells; 86 | productName = SwiftyAccordionCells; 87 | productReference = 4E8116D91BB4B5A70044D85F /* SwiftyAccordionCells.app */; 88 | productType = "com.apple.product-type.application"; 89 | }; 90 | /* End PBXNativeTarget section */ 91 | 92 | /* Begin PBXProject section */ 93 | 4E8116D11BB4B5A70044D85F /* Project object */ = { 94 | isa = PBXProject; 95 | attributes = { 96 | LastUpgradeCheck = 0700; 97 | ORGANIZATIONNAME = "Justin M Fischer"; 98 | TargetAttributes = { 99 | 4E8116D81BB4B5A70044D85F = { 100 | CreatedOnToolsVersion = 7.0; 101 | DevelopmentTeam = 7MP7B3NZVA; 102 | }; 103 | }; 104 | }; 105 | buildConfigurationList = 4E8116D41BB4B5A70044D85F /* Build configuration list for PBXProject "SwiftyAccordionCells" */; 106 | compatibilityVersion = "Xcode 3.2"; 107 | developmentRegion = English; 108 | hasScannedForEncodings = 0; 109 | knownRegions = ( 110 | en, 111 | Base, 112 | ); 113 | mainGroup = 4E8116D01BB4B5A70044D85F; 114 | productRefGroup = 4E8116DA1BB4B5A70044D85F /* Products */; 115 | projectDirPath = ""; 116 | projectRoot = ""; 117 | targets = ( 118 | 4E8116D81BB4B5A70044D85F /* SwiftyAccordionCells */, 119 | ); 120 | }; 121 | /* End PBXProject section */ 122 | 123 | /* Begin PBXResourcesBuildPhase section */ 124 | 4E8116D71BB4B5A70044D85F /* Resources */ = { 125 | isa = PBXResourcesBuildPhase; 126 | buildActionMask = 2147483647; 127 | files = ( 128 | 4E8116E71BB4B5A70044D85F /* LaunchScreen.storyboard in Resources */, 129 | 4E8116E41BB4B5A70044D85F /* Assets.xcassets in Resources */, 130 | 4E8116E21BB4B5A70044D85F /* Main.storyboard in Resources */, 131 | ); 132 | runOnlyForDeploymentPostprocessing = 0; 133 | }; 134 | /* End PBXResourcesBuildPhase section */ 135 | 136 | /* Begin PBXSourcesBuildPhase section */ 137 | 4E8116D51BB4B5A70044D85F /* Sources */ = { 138 | isa = PBXSourcesBuildPhase; 139 | buildActionMask = 2147483647; 140 | files = ( 141 | 4E81170C1BB4B6D80044D85F /* SwiftyAccordionCells.swift in Sources */, 142 | 4E8116DF1BB4B5A70044D85F /* ViewController.swift in Sources */, 143 | 4E8116DD1BB4B5A70044D85F /* AppDelegate.swift in Sources */, 144 | ); 145 | runOnlyForDeploymentPostprocessing = 0; 146 | }; 147 | /* End PBXSourcesBuildPhase section */ 148 | 149 | /* Begin PBXVariantGroup section */ 150 | 4E8116E01BB4B5A70044D85F /* Main.storyboard */ = { 151 | isa = PBXVariantGroup; 152 | children = ( 153 | 4E8116E11BB4B5A70044D85F /* Base */, 154 | ); 155 | name = Main.storyboard; 156 | sourceTree = ""; 157 | }; 158 | 4E8116E51BB4B5A70044D85F /* LaunchScreen.storyboard */ = { 159 | isa = PBXVariantGroup; 160 | children = ( 161 | 4E8116E61BB4B5A70044D85F /* Base */, 162 | ); 163 | name = LaunchScreen.storyboard; 164 | sourceTree = ""; 165 | }; 166 | /* End PBXVariantGroup section */ 167 | 168 | /* Begin XCBuildConfiguration section */ 169 | 4E8116FF1BB4B5A70044D85F /* Debug */ = { 170 | isa = XCBuildConfiguration; 171 | buildSettings = { 172 | ALWAYS_SEARCH_USER_PATHS = NO; 173 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 174 | CLANG_CXX_LIBRARY = "libc++"; 175 | CLANG_ENABLE_MODULES = YES; 176 | CLANG_ENABLE_OBJC_ARC = YES; 177 | CLANG_WARN_BOOL_CONVERSION = YES; 178 | CLANG_WARN_CONSTANT_CONVERSION = YES; 179 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 180 | CLANG_WARN_EMPTY_BODY = YES; 181 | CLANG_WARN_ENUM_CONVERSION = YES; 182 | CLANG_WARN_INT_CONVERSION = YES; 183 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 184 | CLANG_WARN_UNREACHABLE_CODE = YES; 185 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 186 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 187 | COPY_PHASE_STRIP = NO; 188 | DEBUG_INFORMATION_FORMAT = dwarf; 189 | ENABLE_STRICT_OBJC_MSGSEND = YES; 190 | ENABLE_TESTABILITY = YES; 191 | GCC_C_LANGUAGE_STANDARD = gnu99; 192 | GCC_DYNAMIC_NO_PIC = NO; 193 | GCC_NO_COMMON_BLOCKS = YES; 194 | GCC_OPTIMIZATION_LEVEL = 0; 195 | GCC_PREPROCESSOR_DEFINITIONS = ( 196 | "DEBUG=1", 197 | "$(inherited)", 198 | ); 199 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 200 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 201 | GCC_WARN_UNDECLARED_SELECTOR = YES; 202 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 203 | GCC_WARN_UNUSED_FUNCTION = YES; 204 | GCC_WARN_UNUSED_VARIABLE = YES; 205 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 206 | MTL_ENABLE_DEBUG_INFO = YES; 207 | ONLY_ACTIVE_ARCH = YES; 208 | SDKROOT = iphoneos; 209 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 210 | }; 211 | name = Debug; 212 | }; 213 | 4E8117001BB4B5A70044D85F /* Release */ = { 214 | isa = XCBuildConfiguration; 215 | buildSettings = { 216 | ALWAYS_SEARCH_USER_PATHS = NO; 217 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 218 | CLANG_CXX_LIBRARY = "libc++"; 219 | CLANG_ENABLE_MODULES = YES; 220 | CLANG_ENABLE_OBJC_ARC = YES; 221 | CLANG_WARN_BOOL_CONVERSION = YES; 222 | CLANG_WARN_CONSTANT_CONVERSION = YES; 223 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 224 | CLANG_WARN_EMPTY_BODY = YES; 225 | CLANG_WARN_ENUM_CONVERSION = YES; 226 | CLANG_WARN_INT_CONVERSION = YES; 227 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 228 | CLANG_WARN_UNREACHABLE_CODE = YES; 229 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 230 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 231 | COPY_PHASE_STRIP = NO; 232 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 233 | ENABLE_NS_ASSERTIONS = NO; 234 | ENABLE_STRICT_OBJC_MSGSEND = YES; 235 | GCC_C_LANGUAGE_STANDARD = gnu99; 236 | GCC_NO_COMMON_BLOCKS = YES; 237 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 238 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 239 | GCC_WARN_UNDECLARED_SELECTOR = YES; 240 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 241 | GCC_WARN_UNUSED_FUNCTION = YES; 242 | GCC_WARN_UNUSED_VARIABLE = YES; 243 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 244 | MTL_ENABLE_DEBUG_INFO = NO; 245 | SDKROOT = iphoneos; 246 | VALIDATE_PRODUCT = YES; 247 | }; 248 | name = Release; 249 | }; 250 | 4E8117021BB4B5A70044D85F /* Debug */ = { 251 | isa = XCBuildConfiguration; 252 | buildSettings = { 253 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 254 | CODE_SIGN_IDENTITY = "iPhone Developer"; 255 | INFOPLIST_FILE = SwiftyAccordionCells/Info.plist; 256 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 257 | PRODUCT_BUNDLE_IDENTIFIER = SwiftyAccordionCells; 258 | PRODUCT_NAME = "$(TARGET_NAME)"; 259 | }; 260 | name = Debug; 261 | }; 262 | 4E8117031BB4B5A70044D85F /* Release */ = { 263 | isa = XCBuildConfiguration; 264 | buildSettings = { 265 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 266 | CODE_SIGN_IDENTITY = "iPhone Developer"; 267 | INFOPLIST_FILE = SwiftyAccordionCells/Info.plist; 268 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 269 | PRODUCT_BUNDLE_IDENTIFIER = SwiftyAccordionCells; 270 | PRODUCT_NAME = "$(TARGET_NAME)"; 271 | }; 272 | name = Release; 273 | }; 274 | /* End XCBuildConfiguration section */ 275 | 276 | /* Begin XCConfigurationList section */ 277 | 4E8116D41BB4B5A70044D85F /* Build configuration list for PBXProject "SwiftyAccordionCells" */ = { 278 | isa = XCConfigurationList; 279 | buildConfigurations = ( 280 | 4E8116FF1BB4B5A70044D85F /* Debug */, 281 | 4E8117001BB4B5A70044D85F /* Release */, 282 | ); 283 | defaultConfigurationIsVisible = 0; 284 | defaultConfigurationName = Release; 285 | }; 286 | 4E8117011BB4B5A70044D85F /* Build configuration list for PBXNativeTarget "SwiftyAccordionCells" */ = { 287 | isa = XCConfigurationList; 288 | buildConfigurations = ( 289 | 4E8117021BB4B5A70044D85F /* Debug */, 290 | 4E8117031BB4B5A70044D85F /* Release */, 291 | ); 292 | defaultConfigurationIsVisible = 0; 293 | defaultConfigurationName = Release; 294 | }; 295 | /* End XCConfigurationList section */ 296 | }; 297 | rootObject = 4E8116D11BB4B5A70044D85F /* Project object */; 298 | } 299 | --------------------------------------------------------------------------------