├── .gitignore
├── .swift-version
├── .travis.yml
├── ABExpandableView.podspec
├── ABExpandableView
├── Assets
│ └── .gitkeep
└── Classes
│ ├── .gitkeep
│ ├── Models
│ ├── RowItem.swift
│ └── SectionItem.swift
│ ├── Resources
│ └── Assets.xcassets
│ │ ├── Contents.json
│ │ └── arrow_down.imageset
│ │ ├── Contents.json
│ │ ├── arrowDown.png
│ │ ├── arrowDown@2x.png
│ │ └── arrowDown@3x.png
│ ├── View
│ ├── Cells
│ │ └── SelectionCell.swift
│ ├── Expandable.storyboard
│ ├── ExpandableSectionsViewController.swift
│ └── HeaderView
│ │ ├── ExpandableHeaderView.swift
│ │ └── ExpandableHeaderView.xib
│ └── ViewModel
│ └── ExpandableSectionsViewModel.swift
├── Example
├── ABExpandableView.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── ABExpandableView-Example.xcscheme
├── ABExpandableView.xcworkspace
│ └── contents.xcworkspacedata
├── ABExpandableView
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── LaunchScreen.xib
│ │ └── Main.storyboard
│ ├── Images.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Info.plist
│ ├── MockDataProvider.swift
│ └── ViewController.swift
├── Podfile
├── Podfile.lock
├── Pods
│ ├── Local Podspecs
│ │ └── ABExpandableView.podspec.json
│ ├── Manifest.lock
│ ├── Pods.xcodeproj
│ │ └── project.pbxproj
│ └── Target Support Files
│ │ ├── ABExpandableView
│ │ ├── ABExpandableView-dummy.m
│ │ ├── ABExpandableView-prefix.pch
│ │ ├── ABExpandableView-umbrella.h
│ │ ├── ABExpandableView.modulemap
│ │ ├── ABExpandableView.xcconfig
│ │ └── Info.plist
│ │ ├── Pods-ABExpandableView_Example
│ │ ├── Info.plist
│ │ ├── Pods-ABExpandableView_Example-acknowledgements.markdown
│ │ ├── Pods-ABExpandableView_Example-acknowledgements.plist
│ │ ├── Pods-ABExpandableView_Example-dummy.m
│ │ ├── Pods-ABExpandableView_Example-frameworks.sh
│ │ ├── Pods-ABExpandableView_Example-resources.sh
│ │ ├── Pods-ABExpandableView_Example-umbrella.h
│ │ ├── Pods-ABExpandableView_Example.debug.xcconfig
│ │ ├── Pods-ABExpandableView_Example.modulemap
│ │ └── Pods-ABExpandableView_Example.release.xcconfig
│ │ └── Pods-ABExpandableView_Tests
│ │ ├── Info.plist
│ │ ├── Pods-ABExpandableView_Tests-acknowledgements.markdown
│ │ ├── Pods-ABExpandableView_Tests-acknowledgements.plist
│ │ ├── Pods-ABExpandableView_Tests-dummy.m
│ │ ├── Pods-ABExpandableView_Tests-frameworks.sh
│ │ ├── Pods-ABExpandableView_Tests-resources.sh
│ │ ├── Pods-ABExpandableView_Tests-umbrella.h
│ │ ├── Pods-ABExpandableView_Tests.debug.xcconfig
│ │ ├── Pods-ABExpandableView_Tests.modulemap
│ │ └── Pods-ABExpandableView_Tests.release.xcconfig
└── Tests
│ ├── Info.plist
│ └── Tests.swift
├── LICENSE
├── README.md
└── _Pods.xcodeproj
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Created by https://www.gitignore.io/api/swift
3 |
4 | ### Swift ###
5 | # Xcode
6 | #
7 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
8 |
9 | ## Build generated
10 | build/
11 | DerivedData/
12 |
13 | ## Various settings
14 | *.pbxuser
15 | !default.pbxuser
16 | *.mode1v3
17 | !default.mode1v3
18 | *.mode2v3
19 | !default.mode2v3
20 | *.perspectivev3
21 | !default.perspectivev3
22 | xcuserdata/
23 |
24 | ## Other
25 | *.moved-aside
26 | *.xccheckout
27 | *.xcscmblueprint
28 |
29 | ## Obj-C/Swift specific
30 | *.hmap
31 | *.ipa
32 | *.dSYM.zip
33 | *.dSYM
34 |
35 | ## Playgrounds
36 | timeline.xctimeline
37 | playground.xcworkspace
38 |
39 | # Swift Package Manager
40 | #
41 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
42 | # Packages/
43 | # Package.pins
44 | .build/
45 |
46 | # CocoaPods - Refactored to standalone file
47 |
48 | # Carthage - Refactored to standalone file
49 |
50 | # fastlane
51 | #
52 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
53 | # screenshots whenever they are needed.
54 | # For more information about the recommended setup visit:
55 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
56 |
57 | # fastlane/report.xml
58 | # fastlane/Preview.html
59 | # fastlane/screenshots
60 | # fastlane/test_output
61 |
62 | # End of https://www.gitignore.io/api/swift
--------------------------------------------------------------------------------
/.swift-version:
--------------------------------------------------------------------------------
1 | 4.0
2 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | {
2 | "language": "swift",
3 | "osx_image": "xcode9",
4 | "xcode_project": "Example/ABExpandableView.xcworkspace",
5 | "os": "osx"
6 | }
7 |
--------------------------------------------------------------------------------
/ABExpandableView.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # Be sure to run `pod lib lint ABExpandableView.podspec' to ensure this is a
3 | # valid spec before submitting.
4 | #
5 | # Any lines starting with a # are optional, but their use is encouraged
6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
7 | #
8 |
9 | Pod::Spec.new do |s|
10 | s.name = 'ABExpandableView'
11 | s.version = '1.0.0'
12 | s.summary = 'Expandable, collapsible, filterable and single/multi selectable table view.'
13 |
14 | s.description = <<-DESC
15 | This pod lets you to list data you want with sections which have ability to expand and collapse. You can also filter rows using searchbar text input. All rows are also selectible.
16 | When you complete your data selection, you will have selected ids with the delegation. All these process will let you do your operations with default animations.
17 | DESC
18 |
19 | s.homepage = 'https://github.com/alicanbatur/ABExpandableView'
20 | s.license = { :type => 'MIT', :file => 'LICENSE' }
21 | s.author = { 'alicanbatur' => 'alicanbatur@gmail.com' }
22 | s.source = { :git => 'https://github.com/alicanbatur/ABExpandableView.git', :tag => s.version.to_s }
23 | s.social_media_url = 'https://twitter.com/alicanbatur'
24 |
25 | s.ios.deployment_target = '9.0'
26 |
27 | s.source_files = 'ABExpandableView/Classes/**/*.{c,h,hh,m,mm,swift}'
28 |
29 | end
30 |
--------------------------------------------------------------------------------
/ABExpandableView/Assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alicanbatur/ABExpandableView/09234a135a1f58261327cb5214eb5cc0af123ad7/ABExpandableView/Assets/.gitkeep
--------------------------------------------------------------------------------
/ABExpandableView/Classes/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alicanbatur/ABExpandableView/09234a135a1f58261327cb5214eb5cc0af123ad7/ABExpandableView/Classes/.gitkeep
--------------------------------------------------------------------------------
/ABExpandableView/Classes/Models/RowItem.swift:
--------------------------------------------------------------------------------
1 | //
2 | // RowItem.swift
3 | // ABExpandableView
4 | //
5 | // Created by Ali Can Batur on 15/12/2017.
6 | //
7 |
8 | import Foundation
9 |
10 | public protocol RowItem: class {
11 | var identifier: String! { get }
12 | var name: String! { get }
13 | }
14 |
--------------------------------------------------------------------------------
/ABExpandableView/Classes/Models/SectionItem.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SectionItem.swift
3 | // ABExpandableView
4 | //
5 | // Created by Ali Can Batur on 15/12/2017.
6 | //
7 |
8 | import Foundation
9 |
10 | public protocol SectionItem: RowItem {
11 | var expanded: Bool { get set }
12 | var rows: [RowItem] { get set }
13 | var rawRows: [RowItem] { get set }
14 | var selectedRows: [RowItem] { get set }
15 | }
16 |
17 | /*
18 | SectionItem extension manages the selection of objects using id comparison.
19 | */
20 |
21 | extension SectionItem {
22 |
23 | func numberOfSelectedItems() -> Int {
24 | return selectedRows.count
25 | }
26 |
27 | func select(row: RowItem) {
28 | if !selectedRows.contains(where: { $0.identifier == row.identifier }) {
29 | selectedRows.append(row)
30 | }
31 | }
32 |
33 | func deselect(row: RowItem) {
34 | selectedRows = selectedRows.filter({ $0.identifier != row.identifier })
35 | }
36 |
37 | func isSelected(row: RowItem) -> Bool {
38 | return selectedRows.contains(where: { $0.identifier == row.identifier })
39 | }
40 |
41 | func filterRows(inputText: String) -> [RowItem] {
42 | rows = rawRows.filter({( item: RowItem) -> Bool in
43 | if inputText == "" { return true }
44 | return item.name.lowercased().range(of: inputText.lowercased()) != nil
45 | })
46 | return rows
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/ABExpandableView/Classes/Resources/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/ABExpandableView/Classes/Resources/Assets.xcassets/arrow_down.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "arrowDown.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "arrowDown@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "arrowDown@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/ABExpandableView/Classes/Resources/Assets.xcassets/arrow_down.imageset/arrowDown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alicanbatur/ABExpandableView/09234a135a1f58261327cb5214eb5cc0af123ad7/ABExpandableView/Classes/Resources/Assets.xcassets/arrow_down.imageset/arrowDown.png
--------------------------------------------------------------------------------
/ABExpandableView/Classes/Resources/Assets.xcassets/arrow_down.imageset/arrowDown@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alicanbatur/ABExpandableView/09234a135a1f58261327cb5214eb5cc0af123ad7/ABExpandableView/Classes/Resources/Assets.xcassets/arrow_down.imageset/arrowDown@2x.png
--------------------------------------------------------------------------------
/ABExpandableView/Classes/Resources/Assets.xcassets/arrow_down.imageset/arrowDown@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alicanbatur/ABExpandableView/09234a135a1f58261327cb5214eb5cc0af123ad7/ABExpandableView/Classes/Resources/Assets.xcassets/arrow_down.imageset/arrowDown@3x.png
--------------------------------------------------------------------------------
/ABExpandableView/Classes/View/Cells/SelectionCell.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SelectionCell.swift
3 | // ABExpandableView
4 | //
5 | // Created by Ali Can Batur on 15/12/2017.
6 | //
7 |
8 | import Foundation
9 |
10 | class SelectionCell: UITableViewCell {
11 |
12 | // MARK: - Reuse identifier
13 |
14 | class var reuseIdentifier: String {
15 | return String(describing: self)
16 | }
17 |
18 | override func setSelected(_ selected: Bool, animated: Bool) {
19 | super.setSelected(selected, animated: animated)
20 | accessoryType = selected ? .checkmark : .none
21 | }
22 |
23 | // MARK: - Public helper
24 |
25 | func populateCell(_ text: String) {
26 | textLabel?.text = text
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/ABExpandableView/Classes/View/Expandable.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 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
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 |
--------------------------------------------------------------------------------
/ABExpandableView/Classes/View/ExpandableSectionsViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ExpandableSectionsViewController.swift
3 | // ABExpandableView
4 | //
5 | // Created by Ali Can Batur on 14/12/2017.
6 | //
7 |
8 | import UIKit
9 |
10 | public protocol ExpandableSectionsViewControllerDelegate: class {
11 | func didSelectItems(_ items: [RowItem])
12 | }
13 |
14 | open class ExpandableSectionsViewController: UIViewController {
15 |
16 | @IBOutlet var tableView: UITableView!
17 | @IBOutlet var searchBar: UISearchBar!
18 | @IBOutlet var warningLabel: UILabel!
19 |
20 | private var viewModel: ExpandableSectionsViewModel!
21 |
22 | open weak var delegate: ExpandableSectionsViewControllerDelegate?
23 |
24 | // MARK: - Creation
25 |
26 | open class func newInstance(_ viewModel: ExpandableSectionsViewModel) -> ExpandableSectionsViewController {
27 | let bundle = Bundle(for: ExpandableSectionsViewController.self)
28 | let storyboard = UIStoryboard(name: "Expandable", bundle: bundle)
29 | let expandableSectionsViewController = storyboard.instantiateInitialViewController() as! ExpandableSectionsViewController
30 | expandableSectionsViewController.viewModel = viewModel
31 | return expandableSectionsViewController
32 | }
33 |
34 | // MARK: - View Lifecycle
35 |
36 | override open func viewDidLoad() {
37 | super.viewDidLoad()
38 |
39 | tableView.delegate = self
40 | tableView.dataSource = self
41 |
42 | searchBar.delegate = self
43 | searchBar.autocapitalizationType = .none
44 | }
45 |
46 | // MARK: - Keyboard Helpers
47 |
48 | private func hideKeyboard() {
49 | searchBar.setShowsCancelButton(false, animated: true)
50 | searchBar.resignFirstResponder()
51 | }
52 |
53 | // MARK: - Private UI Helpers
54 |
55 | private func updateSelectedItemsCountValue(on headerView: ExpandableHeaderView?, tableView: UITableView, section: Int) {
56 | var sectionHeader = headerView
57 | if headerView == nil {
58 | sectionHeader = tableView.headerView(forSection: section) as? ExpandableHeaderView
59 | }
60 | guard let header = sectionHeader else { return }
61 | header.selectedItemCount = viewModel.numberOfSelectedItems(at: section)
62 | }
63 |
64 | // MARK: - IBAction
65 |
66 | @IBAction func applyBarButtonTapped(_ sender: Any) {
67 | let items = viewModel.selectedItems()
68 | delegate?.didSelectItems(items)
69 | navigationController?.popViewController(animated: true)
70 | }
71 |
72 | }
73 |
74 | // MARK: - UITableViewDelegate
75 |
76 | extension ExpandableSectionsViewController: UITableViewDelegate {
77 |
78 | public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
79 | viewModel.selectItem(at: indexPath)
80 | updateSelectedItemsCountValue(on: nil, tableView: tableView, section: indexPath.section)
81 | }
82 |
83 | public func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
84 | viewModel.deSelectItem(at: indexPath)
85 | updateSelectedItemsCountValue(on: nil, tableView: tableView, section: indexPath.section)
86 | }
87 |
88 | }
89 |
90 | // MARK: - UITableViewDataSource
91 |
92 | extension ExpandableSectionsViewController: UITableViewDataSource {
93 |
94 | public func numberOfSections(in tableView: UITableView) -> Int {
95 | return viewModel.numberOfSections()
96 | }
97 |
98 | public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
99 | return viewModel.numberOfRows(at: section)
100 | }
101 |
102 | public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
103 | let cell = tableView.dequeueReusableCell(withIdentifier: SelectionCell.reuseIdentifier, for: indexPath) as! SelectionCell
104 | cell.populateCell(viewModel.name(at: indexPath))
105 | return cell
106 | }
107 |
108 | public func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
109 | if viewModel.shouldSelectCell(at: indexPath) {
110 | tableView.selectRow(at: indexPath, animated: true, scrollPosition: .none)
111 | }
112 | }
113 |
114 | public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
115 | return 44.0
116 | }
117 |
118 | public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
119 | let sectionHeaderView = ExpandableHeaderView.newInstance(section, delegate: self, title: viewModel.name(at: section), shouldRotateArrow: viewModel.isSectionExpanded(section))
120 | updateSelectedItemsCountValue(on: sectionHeaderView, tableView: tableView, section: section)
121 | return sectionHeaderView
122 | }
123 |
124 | }
125 |
126 | // MARK: - UISearchBarDelegate
127 |
128 | extension ExpandableSectionsViewController: UISearchBarDelegate {
129 |
130 | public func searchBar(_ searchBar: UISearchBar, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool {
131 | if text == "\n" {
132 | hideKeyboard()
133 | return false
134 | }
135 | searchBar.setShowsCancelButton(true, animated: true)
136 |
137 | if let castedText = searchBar.text as NSString? {
138 | viewModel.filterArray(with: castedText, range: range, text: text)
139 | }
140 |
141 | warningLabel.isHidden = !viewModel.hasItems
142 | tableView.reloadData()
143 | return true
144 | }
145 |
146 | public func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
147 | hideKeyboard()
148 | }
149 |
150 | public func searchBarTextDidBeginEditing(_ searchBar: UISearchBar) {
151 | searchBar.setShowsCancelButton(true, animated: true)
152 | }
153 |
154 | }
155 |
156 | // MARK: - HeaderViewDelegate
157 |
158 | extension ExpandableSectionsViewController: HeaderViewDelegate {
159 |
160 | func didTap(headerView: ExpandableHeaderView, section: Int) {
161 | viewModel.toggle(section)
162 | tableView.reloadSections(IndexSet(integer: section), with: .automatic)
163 | }
164 |
165 | }
166 |
--------------------------------------------------------------------------------
/ABExpandableView/Classes/View/HeaderView/ExpandableHeaderView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ExpandableHeaderView.swift
3 | // ABExpandableView
4 | //
5 | // Created by Ali Can Batur on 15/12/2017.
6 | //
7 |
8 | import Foundation
9 |
10 | protocol HeaderViewDelegate: class {
11 | func didTap(headerView: ExpandableHeaderView, section: Int)
12 | }
13 |
14 | class ExpandableHeaderView: UITableViewHeaderFooterView {
15 |
16 | @IBOutlet var arrowImageView: UIImageView!
17 | @IBOutlet var selectedItemCountLabel: UILabel!
18 | @IBOutlet var titleLabel: UILabel!
19 |
20 | private var section: Int?
21 |
22 | weak var delegate: HeaderViewDelegate?
23 |
24 | // MARK: - Creation
25 |
26 | open class func newInstance(_ section: Int, delegate: HeaderViewDelegate, title: String, shouldRotateArrow: Bool) -> ExpandableHeaderView {
27 | let bundle = Bundle(for: ExpandableHeaderView.self)
28 | let view = bundle.loadNibNamed("ExpandableHeaderView", owner: self, options: nil)?.first as! ExpandableHeaderView
29 | view.addGesture()
30 | view.section = section
31 | view.delegate = delegate
32 | view.title = title
33 | view.rotateArrow(shouldRotateArrow)
34 | return view
35 | }
36 |
37 | // MARK: - Public helpers
38 |
39 | var title: String = "" {
40 | didSet {
41 | titleLabel.text = title
42 | }
43 | }
44 |
45 | var selectedItemCount: Int = 0 {
46 | didSet {
47 | selectedItemCountLabel.isHidden = !(selectedItemCount > 0)
48 | selectedItemCountLabel.text = String(selectedItemCount)
49 | }
50 | }
51 |
52 | func rotateArrow(_ up: Bool) {
53 | if up {
54 | arrowImageView.transform = CGAffineTransform(rotationAngle: CGFloat(Double.pi))
55 | }
56 | }
57 |
58 | // MARK: - Private Helpers
59 |
60 | private func addGesture() {
61 | let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(ExpandableHeaderView.headerViewTapped(_:)))
62 | addGestureRecognizer(tapGestureRecognizer)
63 | }
64 |
65 | // MARK: - IBAction
66 |
67 | @IBAction func headerViewTapped(_ sender: Any) {
68 | guard let section = section else { return }
69 | delegate?.didTap(headerView: self, section: section)
70 | }
71 |
72 | }
73 |
74 |
--------------------------------------------------------------------------------
/ABExpandableView/Classes/View/HeaderView/ExpandableHeaderView.xib:
--------------------------------------------------------------------------------
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 |
34 |
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 |
--------------------------------------------------------------------------------
/ABExpandableView/Classes/ViewModel/ExpandableSectionsViewModel.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ExpandableSectionsViewModel.swift
3 | // ABExpandableView
4 | //
5 | // Created by Ali Can Batur on 20/12/2017.
6 | //
7 |
8 | import Foundation
9 |
10 | public protocol ExpandableSectionsViewModelProtocol {
11 | func numberOfSections() -> Int
12 | func numberOfRows(at section: Int) -> Int
13 | func name(at section: Int) -> String
14 | func name(at indexPath: IndexPath) -> String
15 |
16 | func filterArray(with castedText: NSString, range: NSRange, text: String)
17 | }
18 |
19 | public class ExpandableSectionsViewModel: ExpandableSectionsViewModelProtocol {
20 |
21 | private var items: [SectionItem]
22 | private var rawItems: [SectionItem]
23 |
24 | public init(_ items: [SectionItem]) {
25 | self.rawItems = items
26 | self.items = items
27 | }
28 |
29 | // MARK: - Selection Helpers
30 |
31 | var hasItems: Bool {
32 | return items.count == 0
33 | }
34 |
35 | func shouldSelectCell(at indexPath: IndexPath) -> Bool {
36 | let item = items[indexPath.section]
37 | let row = item.rows[indexPath.row]
38 | guard let rawItem = rawItem(identifier: item.identifier) else { return false }
39 | return rawItem.isSelected(row: row)
40 | }
41 |
42 | func selectItem(at indexPath: IndexPath) {
43 | let item = items[indexPath.section]
44 | let row = item.rows[indexPath.row]
45 | selectItemOfRawItems(section: item, row: row)
46 | }
47 |
48 | func deSelectItem(at indexPath: IndexPath) {
49 | let item = items[indexPath.section]
50 | let row = item.rows[indexPath.row]
51 | deselectItemOfRawItems(section: item, row: row)
52 | }
53 |
54 | func numberOfSelectedItems(at section: Int) -> Int {
55 | let item = items[section]
56 | guard let rawItem = rawItem(identifier: item.identifier) else { return 0 }
57 | return rawItem.numberOfSelectedItems()
58 | }
59 |
60 | func selectedItems() -> [RowItem] {
61 | var items = [RowItem]()
62 | for item in rawItems {
63 | items.append(contentsOf: item.selectedRows)
64 | }
65 | return items
66 | }
67 |
68 | // MARK: - Expand/Collapse Helpers
69 |
70 | func isSectionExpanded(_ section: Int) -> Bool {
71 | let item = items[section]
72 | return item.expanded
73 | }
74 |
75 | func toggle(_ section: Int) {
76 | let item = items[section]
77 | item.expanded = !item.expanded
78 | }
79 |
80 | // MARK: - Private Selection Helpers
81 |
82 | private func rawItem(identifier: String) -> SectionItem? {
83 | if let i = rawItems.index(where: { $0.identifier == identifier }) {
84 | return rawItems[i]
85 | }
86 | return nil
87 | }
88 |
89 | private func selectItemOfRawItems(section: SectionItem, row: RowItem) {
90 | guard let item = rawItem(identifier: section.identifier) else { return }
91 | item.select(row: row)
92 | }
93 |
94 | private func deselectItemOfRawItems(section: SectionItem, row: RowItem) {
95 | guard let item = rawItem(identifier: section.identifier) else { return }
96 | item.deselect(row: row)
97 | }
98 |
99 | // MARK: - Tableview Datasource Helpers
100 |
101 | public func numberOfSections() -> Int {
102 | return items.count
103 | }
104 |
105 | public func numberOfRows(at section: Int) -> Int {
106 | let item = items[section]
107 | if !item.expanded { return 0 }
108 | return item.rows.count
109 | }
110 |
111 | public func name(at section: Int) -> String {
112 | return items[section].name
113 | }
114 |
115 | public func name(at indexPath: IndexPath) -> String {
116 | return items[indexPath.section].rows[indexPath.row].name
117 | }
118 |
119 | // MARK: - SearchBar Text Filtering Helpers
120 |
121 | public func filterArray(with castedText: NSString, range: NSRange, text: String) {
122 | let inputText = castedText.replacingCharacters(in: range, with: text)
123 | items = rawItems.filter({( item: SectionItem) -> Bool in
124 | let rows = item.filterRows(inputText: inputText)
125 | return rows.count != 0
126 | })
127 | }
128 | }
129 |
--------------------------------------------------------------------------------
/Example/ABExpandableView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 13BD9B2AD96262517757CE7C /* Pods_ABExpandableView_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15CDE6AADB5CBDDC6B2BC415 /* Pods_ABExpandableView_Example.framework */; };
11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };
13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; };
14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; };
15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; };
16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };
17 | 6C4B2682989F0BD68E2A5CF2 /* Pods_ABExpandableView_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0BC136B5B75AE091834C276A /* Pods_ABExpandableView_Tests.framework */; };
18 | CF5DEBA41FF12A5B0081F6C3 /* MockDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF5DEBA31FF12A5B0081F6C3 /* MockDataProvider.swift */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = 607FACCF1AFB9204008FA782;
27 | remoteInfo = ABExpandableView;
28 | };
29 | /* End PBXContainerItemProxy section */
30 |
31 | /* Begin PBXFileReference section */
32 | 0BC136B5B75AE091834C276A /* Pods_ABExpandableView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ABExpandableView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
33 | 1302B58140FD07E8AD155C7E /* Pods-ABExpandableView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ABExpandableView_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests.debug.xcconfig"; sourceTree = ""; };
34 | 15CDE6AADB5CBDDC6B2BC415 /* Pods_ABExpandableView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ABExpandableView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
35 | 2F6FB63978A6C5D5B8C0FA4F /* Pods-ABExpandableView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ABExpandableView_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example.release.xcconfig"; sourceTree = ""; };
36 | 30136236EB457A45D6F7240C /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; };
37 | 3213E5C45F13A26E9FDF2A8E /* Pods-ABExpandableView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ABExpandableView_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests.release.xcconfig"; sourceTree = ""; };
38 | 39986B089C1A75E5B177520C /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; };
39 | 607FACD01AFB9204008FA782 /* ABExpandableView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ABExpandableView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
40 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
41 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
42 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
43 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
44 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
45 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
46 | 607FACE51AFB9204008FA782 /* ABExpandableView_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ABExpandableView_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
47 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; };
49 | 870F4695886C96490AE30B99 /* ABExpandableView.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = ABExpandableView.podspec; path = ../ABExpandableView.podspec; sourceTree = ""; };
50 | CF5DEBA31FF12A5B0081F6C3 /* MockDataProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockDataProvider.swift; sourceTree = ""; };
51 | F205A38123A0BCE2CFFCBBBC /* Pods-ABExpandableView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ABExpandableView_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example.debug.xcconfig"; sourceTree = ""; };
52 | /* End PBXFileReference section */
53 |
54 | /* Begin PBXFrameworksBuildPhase section */
55 | 607FACCD1AFB9204008FA782 /* Frameworks */ = {
56 | isa = PBXFrameworksBuildPhase;
57 | buildActionMask = 2147483647;
58 | files = (
59 | 13BD9B2AD96262517757CE7C /* Pods_ABExpandableView_Example.framework in Frameworks */,
60 | );
61 | runOnlyForDeploymentPostprocessing = 0;
62 | };
63 | 607FACE21AFB9204008FA782 /* Frameworks */ = {
64 | isa = PBXFrameworksBuildPhase;
65 | buildActionMask = 2147483647;
66 | files = (
67 | 6C4B2682989F0BD68E2A5CF2 /* Pods_ABExpandableView_Tests.framework in Frameworks */,
68 | );
69 | runOnlyForDeploymentPostprocessing = 0;
70 | };
71 | /* End PBXFrameworksBuildPhase section */
72 |
73 | /* Begin PBXGroup section */
74 | 607FACC71AFB9204008FA782 = {
75 | isa = PBXGroup;
76 | children = (
77 | 607FACF51AFB993E008FA782 /* Podspec Metadata */,
78 | 607FACD21AFB9204008FA782 /* Example for ABExpandableView */,
79 | 607FACE81AFB9204008FA782 /* Tests */,
80 | 607FACD11AFB9204008FA782 /* Products */,
81 | 6BC978358FB5F0E7AC68A8B4 /* Pods */,
82 | 99F1CAC35B125FB47D388E83 /* Frameworks */,
83 | );
84 | sourceTree = "";
85 | };
86 | 607FACD11AFB9204008FA782 /* Products */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 607FACD01AFB9204008FA782 /* ABExpandableView_Example.app */,
90 | 607FACE51AFB9204008FA782 /* ABExpandableView_Tests.xctest */,
91 | );
92 | name = Products;
93 | sourceTree = "";
94 | };
95 | 607FACD21AFB9204008FA782 /* Example for ABExpandableView */ = {
96 | isa = PBXGroup;
97 | children = (
98 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */,
99 | 607FACD71AFB9204008FA782 /* ViewController.swift */,
100 | CF5DEBA31FF12A5B0081F6C3 /* MockDataProvider.swift */,
101 | 607FACD91AFB9204008FA782 /* Main.storyboard */,
102 | 607FACDC1AFB9204008FA782 /* Images.xcassets */,
103 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */,
104 | 607FACD31AFB9204008FA782 /* Supporting Files */,
105 | );
106 | name = "Example for ABExpandableView";
107 | path = ABExpandableView;
108 | sourceTree = "";
109 | };
110 | 607FACD31AFB9204008FA782 /* Supporting Files */ = {
111 | isa = PBXGroup;
112 | children = (
113 | 607FACD41AFB9204008FA782 /* Info.plist */,
114 | );
115 | name = "Supporting Files";
116 | sourceTree = "";
117 | };
118 | 607FACE81AFB9204008FA782 /* Tests */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 607FACEB1AFB9204008FA782 /* Tests.swift */,
122 | 607FACE91AFB9204008FA782 /* Supporting Files */,
123 | );
124 | path = Tests;
125 | sourceTree = "";
126 | };
127 | 607FACE91AFB9204008FA782 /* Supporting Files */ = {
128 | isa = PBXGroup;
129 | children = (
130 | 607FACEA1AFB9204008FA782 /* Info.plist */,
131 | );
132 | name = "Supporting Files";
133 | sourceTree = "";
134 | };
135 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = {
136 | isa = PBXGroup;
137 | children = (
138 | 870F4695886C96490AE30B99 /* ABExpandableView.podspec */,
139 | 39986B089C1A75E5B177520C /* README.md */,
140 | 30136236EB457A45D6F7240C /* LICENSE */,
141 | );
142 | name = "Podspec Metadata";
143 | sourceTree = "";
144 | };
145 | 6BC978358FB5F0E7AC68A8B4 /* Pods */ = {
146 | isa = PBXGroup;
147 | children = (
148 | F205A38123A0BCE2CFFCBBBC /* Pods-ABExpandableView_Example.debug.xcconfig */,
149 | 2F6FB63978A6C5D5B8C0FA4F /* Pods-ABExpandableView_Example.release.xcconfig */,
150 | 1302B58140FD07E8AD155C7E /* Pods-ABExpandableView_Tests.debug.xcconfig */,
151 | 3213E5C45F13A26E9FDF2A8E /* Pods-ABExpandableView_Tests.release.xcconfig */,
152 | );
153 | name = Pods;
154 | sourceTree = "";
155 | };
156 | 99F1CAC35B125FB47D388E83 /* Frameworks */ = {
157 | isa = PBXGroup;
158 | children = (
159 | 15CDE6AADB5CBDDC6B2BC415 /* Pods_ABExpandableView_Example.framework */,
160 | 0BC136B5B75AE091834C276A /* Pods_ABExpandableView_Tests.framework */,
161 | );
162 | name = Frameworks;
163 | sourceTree = "";
164 | };
165 | /* End PBXGroup section */
166 |
167 | /* Begin PBXNativeTarget section */
168 | 607FACCF1AFB9204008FA782 /* ABExpandableView_Example */ = {
169 | isa = PBXNativeTarget;
170 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ABExpandableView_Example" */;
171 | buildPhases = (
172 | 9FFDD5A6C4035F87C9A0B62B /* [CP] Check Pods Manifest.lock */,
173 | 607FACCC1AFB9204008FA782 /* Sources */,
174 | 607FACCD1AFB9204008FA782 /* Frameworks */,
175 | 607FACCE1AFB9204008FA782 /* Resources */,
176 | 029BFCE7990D179158941D48 /* [CP] Embed Pods Frameworks */,
177 | 45C17089D682092BCFB8EDAB /* [CP] Copy Pods Resources */,
178 | );
179 | buildRules = (
180 | );
181 | dependencies = (
182 | );
183 | name = ABExpandableView_Example;
184 | productName = ABExpandableView;
185 | productReference = 607FACD01AFB9204008FA782 /* ABExpandableView_Example.app */;
186 | productType = "com.apple.product-type.application";
187 | };
188 | 607FACE41AFB9204008FA782 /* ABExpandableView_Tests */ = {
189 | isa = PBXNativeTarget;
190 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ABExpandableView_Tests" */;
191 | buildPhases = (
192 | 1E71F3CE54BF0680E02C468A /* [CP] Check Pods Manifest.lock */,
193 | 607FACE11AFB9204008FA782 /* Sources */,
194 | 607FACE21AFB9204008FA782 /* Frameworks */,
195 | 607FACE31AFB9204008FA782 /* Resources */,
196 | 332A2E9F245A925A4779B632 /* [CP] Embed Pods Frameworks */,
197 | F92B11776A9E3909FFBCC9DB /* [CP] Copy Pods Resources */,
198 | );
199 | buildRules = (
200 | );
201 | dependencies = (
202 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */,
203 | );
204 | name = ABExpandableView_Tests;
205 | productName = Tests;
206 | productReference = 607FACE51AFB9204008FA782 /* ABExpandableView_Tests.xctest */;
207 | productType = "com.apple.product-type.bundle.unit-test";
208 | };
209 | /* End PBXNativeTarget section */
210 |
211 | /* Begin PBXProject section */
212 | 607FACC81AFB9204008FA782 /* Project object */ = {
213 | isa = PBXProject;
214 | attributes = {
215 | LastSwiftUpdateCheck = 0830;
216 | LastUpgradeCheck = 0830;
217 | ORGANIZATIONNAME = CocoaPods;
218 | TargetAttributes = {
219 | 607FACCF1AFB9204008FA782 = {
220 | CreatedOnToolsVersion = 6.3.1;
221 | LastSwiftMigration = 0900;
222 | };
223 | 607FACE41AFB9204008FA782 = {
224 | CreatedOnToolsVersion = 6.3.1;
225 | LastSwiftMigration = 0900;
226 | TestTargetID = 607FACCF1AFB9204008FA782;
227 | };
228 | };
229 | };
230 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ABExpandableView" */;
231 | compatibilityVersion = "Xcode 3.2";
232 | developmentRegion = English;
233 | hasScannedForEncodings = 0;
234 | knownRegions = (
235 | en,
236 | Base,
237 | );
238 | mainGroup = 607FACC71AFB9204008FA782;
239 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */;
240 | projectDirPath = "";
241 | projectRoot = "";
242 | targets = (
243 | 607FACCF1AFB9204008FA782 /* ABExpandableView_Example */,
244 | 607FACE41AFB9204008FA782 /* ABExpandableView_Tests */,
245 | );
246 | };
247 | /* End PBXProject section */
248 |
249 | /* Begin PBXResourcesBuildPhase section */
250 | 607FACCE1AFB9204008FA782 /* Resources */ = {
251 | isa = PBXResourcesBuildPhase;
252 | buildActionMask = 2147483647;
253 | files = (
254 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */,
255 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
256 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,
257 | );
258 | runOnlyForDeploymentPostprocessing = 0;
259 | };
260 | 607FACE31AFB9204008FA782 /* Resources */ = {
261 | isa = PBXResourcesBuildPhase;
262 | buildActionMask = 2147483647;
263 | files = (
264 | );
265 | runOnlyForDeploymentPostprocessing = 0;
266 | };
267 | /* End PBXResourcesBuildPhase section */
268 |
269 | /* Begin PBXShellScriptBuildPhase section */
270 | 029BFCE7990D179158941D48 /* [CP] Embed Pods Frameworks */ = {
271 | isa = PBXShellScriptBuildPhase;
272 | buildActionMask = 2147483647;
273 | files = (
274 | );
275 | inputPaths = (
276 | );
277 | name = "[CP] Embed Pods Frameworks";
278 | outputPaths = (
279 | );
280 | runOnlyForDeploymentPostprocessing = 0;
281 | shellPath = /bin/sh;
282 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example-frameworks.sh\"\n";
283 | showEnvVarsInLog = 0;
284 | };
285 | 1E71F3CE54BF0680E02C468A /* [CP] Check Pods Manifest.lock */ = {
286 | isa = PBXShellScriptBuildPhase;
287 | buildActionMask = 2147483647;
288 | files = (
289 | );
290 | inputPaths = (
291 | );
292 | name = "[CP] Check Pods Manifest.lock";
293 | outputPaths = (
294 | );
295 | runOnlyForDeploymentPostprocessing = 0;
296 | shellPath = /bin/sh;
297 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
298 | showEnvVarsInLog = 0;
299 | };
300 | 332A2E9F245A925A4779B632 /* [CP] Embed Pods Frameworks */ = {
301 | isa = PBXShellScriptBuildPhase;
302 | buildActionMask = 2147483647;
303 | files = (
304 | );
305 | inputPaths = (
306 | );
307 | name = "[CP] Embed Pods Frameworks";
308 | outputPaths = (
309 | );
310 | runOnlyForDeploymentPostprocessing = 0;
311 | shellPath = /bin/sh;
312 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests-frameworks.sh\"\n";
313 | showEnvVarsInLog = 0;
314 | };
315 | 45C17089D682092BCFB8EDAB /* [CP] Copy Pods Resources */ = {
316 | isa = PBXShellScriptBuildPhase;
317 | buildActionMask = 2147483647;
318 | files = (
319 | );
320 | inputPaths = (
321 | );
322 | name = "[CP] Copy Pods Resources";
323 | outputPaths = (
324 | );
325 | runOnlyForDeploymentPostprocessing = 0;
326 | shellPath = /bin/sh;
327 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example-resources.sh\"\n";
328 | showEnvVarsInLog = 0;
329 | };
330 | 9FFDD5A6C4035F87C9A0B62B /* [CP] Check Pods Manifest.lock */ = {
331 | isa = PBXShellScriptBuildPhase;
332 | buildActionMask = 2147483647;
333 | files = (
334 | );
335 | inputPaths = (
336 | );
337 | name = "[CP] Check Pods Manifest.lock";
338 | outputPaths = (
339 | );
340 | runOnlyForDeploymentPostprocessing = 0;
341 | shellPath = /bin/sh;
342 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
343 | showEnvVarsInLog = 0;
344 | };
345 | F92B11776A9E3909FFBCC9DB /* [CP] Copy Pods Resources */ = {
346 | isa = PBXShellScriptBuildPhase;
347 | buildActionMask = 2147483647;
348 | files = (
349 | );
350 | inputPaths = (
351 | );
352 | name = "[CP] Copy Pods Resources";
353 | outputPaths = (
354 | );
355 | runOnlyForDeploymentPostprocessing = 0;
356 | shellPath = /bin/sh;
357 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests-resources.sh\"\n";
358 | showEnvVarsInLog = 0;
359 | };
360 | /* End PBXShellScriptBuildPhase section */
361 |
362 | /* Begin PBXSourcesBuildPhase section */
363 | 607FACCC1AFB9204008FA782 /* Sources */ = {
364 | isa = PBXSourcesBuildPhase;
365 | buildActionMask = 2147483647;
366 | files = (
367 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
368 | CF5DEBA41FF12A5B0081F6C3 /* MockDataProvider.swift in Sources */,
369 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
370 | );
371 | runOnlyForDeploymentPostprocessing = 0;
372 | };
373 | 607FACE11AFB9204008FA782 /* Sources */ = {
374 | isa = PBXSourcesBuildPhase;
375 | buildActionMask = 2147483647;
376 | files = (
377 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */,
378 | );
379 | runOnlyForDeploymentPostprocessing = 0;
380 | };
381 | /* End PBXSourcesBuildPhase section */
382 |
383 | /* Begin PBXTargetDependency section */
384 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = {
385 | isa = PBXTargetDependency;
386 | target = 607FACCF1AFB9204008FA782 /* ABExpandableView_Example */;
387 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */;
388 | };
389 | /* End PBXTargetDependency section */
390 |
391 | /* Begin PBXVariantGroup section */
392 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = {
393 | isa = PBXVariantGroup;
394 | children = (
395 | 607FACDA1AFB9204008FA782 /* Base */,
396 | );
397 | name = Main.storyboard;
398 | sourceTree = "";
399 | };
400 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = {
401 | isa = PBXVariantGroup;
402 | children = (
403 | 607FACDF1AFB9204008FA782 /* Base */,
404 | );
405 | name = LaunchScreen.xib;
406 | sourceTree = "";
407 | };
408 | /* End PBXVariantGroup section */
409 |
410 | /* Begin XCBuildConfiguration section */
411 | 607FACED1AFB9204008FA782 /* Debug */ = {
412 | isa = XCBuildConfiguration;
413 | buildSettings = {
414 | ALWAYS_SEARCH_USER_PATHS = NO;
415 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
416 | CLANG_CXX_LIBRARY = "libc++";
417 | CLANG_ENABLE_MODULES = YES;
418 | CLANG_ENABLE_OBJC_ARC = YES;
419 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
420 | CLANG_WARN_BOOL_CONVERSION = YES;
421 | CLANG_WARN_COMMA = YES;
422 | CLANG_WARN_CONSTANT_CONVERSION = YES;
423 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
424 | CLANG_WARN_EMPTY_BODY = YES;
425 | CLANG_WARN_ENUM_CONVERSION = YES;
426 | CLANG_WARN_INFINITE_RECURSION = YES;
427 | CLANG_WARN_INT_CONVERSION = YES;
428 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
429 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
430 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
431 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
432 | CLANG_WARN_STRICT_PROTOTYPES = YES;
433 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
434 | CLANG_WARN_UNREACHABLE_CODE = YES;
435 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
436 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
437 | COPY_PHASE_STRIP = NO;
438 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
439 | ENABLE_STRICT_OBJC_MSGSEND = YES;
440 | ENABLE_TESTABILITY = YES;
441 | GCC_C_LANGUAGE_STANDARD = gnu99;
442 | GCC_DYNAMIC_NO_PIC = NO;
443 | GCC_NO_COMMON_BLOCKS = YES;
444 | GCC_OPTIMIZATION_LEVEL = 0;
445 | GCC_PREPROCESSOR_DEFINITIONS = (
446 | "DEBUG=1",
447 | "$(inherited)",
448 | );
449 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
450 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
451 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
452 | GCC_WARN_UNDECLARED_SELECTOR = YES;
453 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
454 | GCC_WARN_UNUSED_FUNCTION = YES;
455 | GCC_WARN_UNUSED_VARIABLE = YES;
456 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
457 | MTL_ENABLE_DEBUG_INFO = YES;
458 | ONLY_ACTIVE_ARCH = YES;
459 | SDKROOT = iphoneos;
460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
461 | };
462 | name = Debug;
463 | };
464 | 607FACEE1AFB9204008FA782 /* Release */ = {
465 | isa = XCBuildConfiguration;
466 | buildSettings = {
467 | ALWAYS_SEARCH_USER_PATHS = NO;
468 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
469 | CLANG_CXX_LIBRARY = "libc++";
470 | CLANG_ENABLE_MODULES = YES;
471 | CLANG_ENABLE_OBJC_ARC = YES;
472 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
473 | CLANG_WARN_BOOL_CONVERSION = YES;
474 | CLANG_WARN_COMMA = YES;
475 | CLANG_WARN_CONSTANT_CONVERSION = YES;
476 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
477 | CLANG_WARN_EMPTY_BODY = YES;
478 | CLANG_WARN_ENUM_CONVERSION = YES;
479 | CLANG_WARN_INFINITE_RECURSION = YES;
480 | CLANG_WARN_INT_CONVERSION = YES;
481 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
482 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
483 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
484 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
485 | CLANG_WARN_STRICT_PROTOTYPES = YES;
486 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
487 | CLANG_WARN_UNREACHABLE_CODE = YES;
488 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
489 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
490 | COPY_PHASE_STRIP = NO;
491 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
492 | ENABLE_NS_ASSERTIONS = NO;
493 | ENABLE_STRICT_OBJC_MSGSEND = YES;
494 | GCC_C_LANGUAGE_STANDARD = gnu99;
495 | GCC_NO_COMMON_BLOCKS = YES;
496 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
497 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
498 | GCC_WARN_UNDECLARED_SELECTOR = YES;
499 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
500 | GCC_WARN_UNUSED_FUNCTION = YES;
501 | GCC_WARN_UNUSED_VARIABLE = YES;
502 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
503 | MTL_ENABLE_DEBUG_INFO = NO;
504 | SDKROOT = iphoneos;
505 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
506 | VALIDATE_PRODUCT = YES;
507 | };
508 | name = Release;
509 | };
510 | 607FACF01AFB9204008FA782 /* Debug */ = {
511 | isa = XCBuildConfiguration;
512 | baseConfigurationReference = F205A38123A0BCE2CFFCBBBC /* Pods-ABExpandableView_Example.debug.xcconfig */;
513 | buildSettings = {
514 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
515 | INFOPLIST_FILE = ABExpandableView/Info.plist;
516 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
517 | MODULE_NAME = ExampleApp;
518 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
519 | PRODUCT_NAME = "$(TARGET_NAME)";
520 | SWIFT_SWIFT3_OBJC_INFERENCE = Default;
521 | SWIFT_VERSION = 4.0;
522 | };
523 | name = Debug;
524 | };
525 | 607FACF11AFB9204008FA782 /* Release */ = {
526 | isa = XCBuildConfiguration;
527 | baseConfigurationReference = 2F6FB63978A6C5D5B8C0FA4F /* Pods-ABExpandableView_Example.release.xcconfig */;
528 | buildSettings = {
529 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
530 | INFOPLIST_FILE = ABExpandableView/Info.plist;
531 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
532 | MODULE_NAME = ExampleApp;
533 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
534 | PRODUCT_NAME = "$(TARGET_NAME)";
535 | SWIFT_SWIFT3_OBJC_INFERENCE = Default;
536 | SWIFT_VERSION = 4.0;
537 | };
538 | name = Release;
539 | };
540 | 607FACF31AFB9204008FA782 /* Debug */ = {
541 | isa = XCBuildConfiguration;
542 | baseConfigurationReference = 1302B58140FD07E8AD155C7E /* Pods-ABExpandableView_Tests.debug.xcconfig */;
543 | buildSettings = {
544 | FRAMEWORK_SEARCH_PATHS = (
545 | "$(SDKROOT)/Developer/Library/Frameworks",
546 | "$(inherited)",
547 | );
548 | GCC_PREPROCESSOR_DEFINITIONS = (
549 | "DEBUG=1",
550 | "$(inherited)",
551 | );
552 | INFOPLIST_FILE = Tests/Info.plist;
553 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
554 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
555 | PRODUCT_NAME = "$(TARGET_NAME)";
556 | SWIFT_SWIFT3_OBJC_INFERENCE = Default;
557 | SWIFT_VERSION = 4.0;
558 | };
559 | name = Debug;
560 | };
561 | 607FACF41AFB9204008FA782 /* Release */ = {
562 | isa = XCBuildConfiguration;
563 | baseConfigurationReference = 3213E5C45F13A26E9FDF2A8E /* Pods-ABExpandableView_Tests.release.xcconfig */;
564 | buildSettings = {
565 | FRAMEWORK_SEARCH_PATHS = (
566 | "$(SDKROOT)/Developer/Library/Frameworks",
567 | "$(inherited)",
568 | );
569 | INFOPLIST_FILE = Tests/Info.plist;
570 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
571 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
572 | PRODUCT_NAME = "$(TARGET_NAME)";
573 | SWIFT_SWIFT3_OBJC_INFERENCE = Default;
574 | SWIFT_VERSION = 4.0;
575 | };
576 | name = Release;
577 | };
578 | /* End XCBuildConfiguration section */
579 |
580 | /* Begin XCConfigurationList section */
581 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ABExpandableView" */ = {
582 | isa = XCConfigurationList;
583 | buildConfigurations = (
584 | 607FACED1AFB9204008FA782 /* Debug */,
585 | 607FACEE1AFB9204008FA782 /* Release */,
586 | );
587 | defaultConfigurationIsVisible = 0;
588 | defaultConfigurationName = Release;
589 | };
590 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ABExpandableView_Example" */ = {
591 | isa = XCConfigurationList;
592 | buildConfigurations = (
593 | 607FACF01AFB9204008FA782 /* Debug */,
594 | 607FACF11AFB9204008FA782 /* Release */,
595 | );
596 | defaultConfigurationIsVisible = 0;
597 | defaultConfigurationName = Release;
598 | };
599 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ABExpandableView_Tests" */ = {
600 | isa = XCConfigurationList;
601 | buildConfigurations = (
602 | 607FACF31AFB9204008FA782 /* Debug */,
603 | 607FACF41AFB9204008FA782 /* Release */,
604 | );
605 | defaultConfigurationIsVisible = 0;
606 | defaultConfigurationName = Release;
607 | };
608 | /* End XCConfigurationList section */
609 | };
610 | rootObject = 607FACC81AFB9204008FA782 /* Project object */;
611 | }
612 |
--------------------------------------------------------------------------------
/Example/ABExpandableView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Example/ABExpandableView.xcodeproj/xcshareddata/xcschemes/ABExpandableView-Example.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
45 |
46 |
48 |
54 |
55 |
56 |
57 |
58 |
64 |
65 |
66 |
67 |
68 |
69 |
80 |
82 |
88 |
89 |
90 |
91 |
92 |
93 |
99 |
101 |
107 |
108 |
109 |
110 |
112 |
113 |
116 |
117 |
118 |
--------------------------------------------------------------------------------
/Example/ABExpandableView.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Example/ABExpandableView/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // ABExpandableView
4 | //
5 | // Created by alicanbatur on 12/14/2017.
6 | // Copyright (c) 2017 alicanbatur. 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 |
--------------------------------------------------------------------------------
/Example/ABExpandableView/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Example/ABExpandableView/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 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
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 |
--------------------------------------------------------------------------------
/Example/ABExpandableView/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 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Example/ABExpandableView/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.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 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Example/ABExpandableView/MockDataProvider.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MockDataProvider.swift
3 | // ABExpandableView_Example
4 | //
5 | // Created by Ali Can Batur on 25/12/2017.
6 | // Copyright © 2017 CocoaPods. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import ABExpandableView
11 |
12 | class Town: RowItem {
13 | var identifier: String!
14 | var name: String!
15 |
16 | init(identifier: String, name: String) {
17 | self.identifier = identifier
18 | self.name = name
19 | }
20 | }
21 |
22 | class City: SectionItem {
23 |
24 | var identifier: String!
25 | var name: String!
26 |
27 | var expanded: Bool = true
28 |
29 | var rows: [RowItem] = [RowItem]()
30 | var rawRows: [RowItem] = [RowItem]() {
31 | didSet {
32 | rows = rawRows
33 | }
34 | }
35 | var selectedRows: [RowItem] = [RowItem]()
36 |
37 | }
38 |
39 | class MockDataProvider {
40 |
41 | class func createMockData() -> [SectionItem] {
42 | var array = [SectionItem]()
43 |
44 | let izmir = City()
45 | izmir.identifier = "35"
46 | izmir.name = "İzmir"
47 | let bornova = Town(identifier: "1", name: "Bornova")
48 | let urla = Town(identifier: "2", name: "Urla")
49 | let konak = Town(identifier: "3", name: "Konak")
50 | let izmirRawRows = [bornova, urla, konak]
51 | izmir.rawRows = izmirRawRows
52 | array.append(izmir)
53 |
54 | let istanbul = City()
55 | istanbul.identifier = "34"
56 | istanbul.name = "İstanbul"
57 | let kadikoy = Town(identifier: "4", name: "Kadıköy")
58 | let maltepe = Town(identifier: "5", name: "Maltepe")
59 | let beykoz = Town(identifier: "6", name: "Beykoz")
60 | let istanbulRawRows = [kadikoy, maltepe, beykoz]
61 | istanbul.rawRows = istanbulRawRows
62 | array.append(istanbul)
63 |
64 | return array
65 | }
66 |
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/Example/ABExpandableView/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // ABExpandableView
4 | //
5 | // Created by alicanbatur on 12/14/2017.
6 | // Copyright (c) 2017 alicanbatur. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import ABExpandableView
11 |
12 | class ViewController: UIViewController {
13 |
14 | @IBOutlet weak var textView: UITextView!
15 |
16 | // MARK: - IBAction
17 |
18 | @IBAction func buttonTapped(_ sender: Any) {
19 | let expandableSectionsViewModel = ExpandableSectionsViewModel(MockDataProvider.createMockData())
20 | let expandableSectionViewController = ExpandableSectionsViewController.newInstance(expandableSectionsViewModel)
21 | expandableSectionViewController.title = "Choose Town(s)"
22 | expandableSectionViewController.delegate = self
23 | self.navigationController?.pushViewController(expandableSectionViewController, animated: true)
24 | }
25 | }
26 |
27 | extension ViewController: ExpandableSectionsViewControllerDelegate {
28 |
29 | func didSelectItems(_ items: [RowItem]) {
30 | let names = items.flatMap { $0.name }.joined(separator: ", ")
31 | textView.text = names
32 | }
33 |
34 | }
35 |
36 |
--------------------------------------------------------------------------------
/Example/Podfile:
--------------------------------------------------------------------------------
1 | use_frameworks!
2 |
3 | target 'ABExpandableView_Example' do
4 | pod 'ABExpandableView', :path => '../'
5 |
6 | target 'ABExpandableView_Tests' do
7 | inherit! :search_paths
8 | end
9 |
10 | end
11 |
--------------------------------------------------------------------------------
/Example/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - ABExpandableView (0.1.0)
3 |
4 | DEPENDENCIES:
5 | - ABExpandableView (from `../`)
6 |
7 | EXTERNAL SOURCES:
8 | ABExpandableView:
9 | :path: "../"
10 |
11 | SPEC CHECKSUMS:
12 | ABExpandableView: c3f8d8c04cf73c586dd703e6dd4e21adfcc3506f
13 |
14 | PODFILE CHECKSUM: f7f9a9eb9af9dc05b86ffb16138c75d59e38ba4d
15 |
16 | COCOAPODS: 1.2.0.beta.1
17 |
--------------------------------------------------------------------------------
/Example/Pods/Local Podspecs/ABExpandableView.podspec.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ABExpandableView",
3 | "version": "0.1.0",
4 | "summary": "A short description of ABExpandableView.",
5 | "description": "TODO: Add long description of the pod here.",
6 | "homepage": "https://github.com/alicanbatur/ABExpandableView",
7 | "license": {
8 | "type": "MIT",
9 | "file": "LICENSE"
10 | },
11 | "authors": {
12 | "alicanbatur": "alicanbatur@gmail.com"
13 | },
14 | "source": {
15 | "git": "https://github.com/alicanbatur/ABExpandableView.git",
16 | "tag": "0.1.0"
17 | },
18 | "platforms": {
19 | "ios": "8.0"
20 | },
21 | "source_files": "ABExpandableView/Classes/**/*"
22 | }
23 |
--------------------------------------------------------------------------------
/Example/Pods/Manifest.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - ABExpandableView (0.1.0)
3 |
4 | DEPENDENCIES:
5 | - ABExpandableView (from `../`)
6 |
7 | EXTERNAL SOURCES:
8 | ABExpandableView:
9 | :path: "../"
10 |
11 | SPEC CHECKSUMS:
12 | ABExpandableView: c3f8d8c04cf73c586dd703e6dd4e21adfcc3506f
13 |
14 | PODFILE CHECKSUM: f7f9a9eb9af9dc05b86ffb16138c75d59e38ba4d
15 |
16 | COCOAPODS: 1.2.0.beta.1
17 |
--------------------------------------------------------------------------------
/Example/Pods/Pods.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 025F809079CF1E0A0E73EDDBB96D3B2D /* Pods-ABExpandableView_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 53981AAD23C6FEA27F605029C280344A /* Pods-ABExpandableView_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
11 | 1089DCF0F24EBD80D1D5562146EF2B22 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; };
12 | 372AA7CBA0FA14E56BBF1A648EF16B01 /* ABExpandableView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A893194FC979799A2B448409A2C835 /* ABExpandableView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
13 | 7AB33C82B4E65EDE9C14129FC1DD1F48 /* Pods-ABExpandableView_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 8C7051CEF889F1CB50D76E297ABCCBE7 /* Pods-ABExpandableView_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
14 | 819EA0903FF9F7FFDEFD1D34742599AC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; };
15 | 81AD7D2035EEDA53DE74F8558E8D3764 /* Pods-ABExpandableView_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 36086E2A3BEE60135CCA23800AF6E23F /* Pods-ABExpandableView_Example-dummy.m */; };
16 | 9AFE487F18B6D0716802C8D8C0AC76C8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; };
17 | CF1B8C6F1FEA685D008B7006 /* ExpandableSectionsViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF1B8C6E1FEA685D008B7006 /* ExpandableSectionsViewModel.swift */; };
18 | CF1B8C721FEAA12E008B7006 /* Expandable.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CFC1CB291FE31C6700FF9F3E /* Expandable.storyboard */; };
19 | CF1B8C751FEAA2A0008B7006 /* ExpandableHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = CF3102BC1FE3DBB500658587 /* ExpandableHeaderView.xib */; };
20 | CF3102BD1FE3DBB500658587 /* SelectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF3102B91FE3DBB500658587 /* SelectionCell.swift */; };
21 | CF3102BE1FE3DBB500658587 /* ExpandableHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF3102BB1FE3DBB500658587 /* ExpandableHeaderView.swift */; };
22 | CF3102C41FE3DBE700658587 /* RowItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF3102C01FE3DBE700658587 /* RowItem.swift */; };
23 | CF3102C51FE3DBE700658587 /* SectionItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF3102C11FE3DBE700658587 /* SectionItem.swift */; };
24 | CF892FDC1FF2728B00242A16 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CF3102C31FE3DBE700658587 /* Assets.xcassets */; };
25 | CFC1CB2B1FE31C6700FF9F3E /* ExpandableSectionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CFC1CB2A1FE31C6700FF9F3E /* ExpandableSectionsViewController.swift */; };
26 | D3615B444E5F4011FBB055722D41BE0B /* Pods-ABExpandableView_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7A352218EF4CB21E6026FD3BA01DBDE7 /* Pods-ABExpandableView_Tests-dummy.m */; };
27 | FE947B27766BF250350A221693DED20D /* ABExpandableView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C8F9349582D1E73F6AE0FC97E8DBC39E /* ABExpandableView-dummy.m */; };
28 | /* End PBXBuildFile section */
29 |
30 | /* Begin PBXContainerItemProxy section */
31 | BA4FB7CADA24B2611BC5FFCD8928DDB7 /* PBXContainerItemProxy */ = {
32 | isa = PBXContainerItemProxy;
33 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;
34 | proxyType = 1;
35 | remoteGlobalIDString = CB1A7ED4A4F44CF6731787471D608572;
36 | remoteInfo = ABExpandableView;
37 | };
38 | /* End PBXContainerItemProxy section */
39 |
40 | /* Begin PBXFileReference section */
41 | 13A893194FC979799A2B448409A2C835 /* ABExpandableView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ABExpandableView-umbrella.h"; sourceTree = ""; };
42 | 141B9A30F02335E77D9C3288A3B25E43 /* Pods-ABExpandableView_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ABExpandableView_Example-acknowledgements.plist"; sourceTree = ""; };
43 | 15BEB936AB665B0FCA914EA41B13A3D9 /* Pods-ABExpandableView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ABExpandableView_Tests.release.xcconfig"; sourceTree = ""; };
44 | 1B226D508F6602D08F55AA40586A7BDA /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | 29454722539946976852A6EFF28776E9 /* ABExpandableView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = ABExpandableView.modulemap; sourceTree = ""; };
46 | 339ED3F1639D53817890C919169B9043 /* Pods-ABExpandableView_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ABExpandableView_Example-resources.sh"; sourceTree = ""; };
47 | 36086E2A3BEE60135CCA23800AF6E23F /* Pods-ABExpandableView_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ABExpandableView_Example-dummy.m"; sourceTree = ""; };
48 | 3ABA2A4733CB0D1A468163134A4E2580 /* Pods-ABExpandableView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ABExpandableView_Example.release.xcconfig"; sourceTree = ""; };
49 | 3AD5B0B0C7863461258E830458077048 /* ABExpandableView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ABExpandableView.framework; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 3AFCF7161FE3461392FB26BC92E6145A /* Pods-ABExpandableView_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ABExpandableView_Tests-acknowledgements.markdown"; sourceTree = ""; };
51 | 53981AAD23C6FEA27F605029C280344A /* Pods-ABExpandableView_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ABExpandableView_Tests-umbrella.h"; sourceTree = ""; };
52 | 62AA0E3C693A490D88943735B5A7C9B8 /* Pods-ABExpandableView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ABExpandableView_Example.debug.xcconfig"; sourceTree = ""; };
53 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
54 | 66E50BE944CDA530A7F563A0219ACE83 /* ABExpandableView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ABExpandableView-prefix.pch"; sourceTree = ""; };
55 | 7A352218EF4CB21E6026FD3BA01DBDE7 /* Pods-ABExpandableView_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ABExpandableView_Tests-dummy.m"; sourceTree = ""; };
56 | 8142B8CA96D6AB4C1E6CFD2759A015E1 /* Pods-ABExpandableView_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-ABExpandableView_Tests.modulemap"; sourceTree = ""; };
57 | 8C7051CEF889F1CB50D76E297ABCCBE7 /* Pods-ABExpandableView_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ABExpandableView_Example-umbrella.h"; sourceTree = ""; };
58 | 8DF2D475E1880772F390984CFD1E02F4 /* Pods_ABExpandableView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ABExpandableView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
59 | 8E73B28B4F4D680E46711ADD64EB3DB5 /* Pods-ABExpandableView_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ABExpandableView_Tests-acknowledgements.plist"; sourceTree = ""; };
60 | 917D4F1BCE3724C7F203EBBEC908C878 /* Pods-ABExpandableView_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ABExpandableView_Example-acknowledgements.markdown"; sourceTree = ""; };
61 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
62 | 9795F6C9D824E2ACD8E6587F3BF26B9B /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
63 | 9A618B1705B3DD0B6E3B7421651D05D0 /* ABExpandableView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ABExpandableView.xcconfig; sourceTree = ""; };
64 | 9AF4DDA23DF6BB793D0F82FEEF1204F9 /* Pods_ABExpandableView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ABExpandableView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
65 | A6221FBA09E43E1545423A5A7A561515 /* Pods-ABExpandableView_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ABExpandableView_Example-frameworks.sh"; sourceTree = ""; };
66 | B853C15AFDDC3807B27AD9E14D603E62 /* Pods-ABExpandableView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ABExpandableView_Tests.debug.xcconfig"; sourceTree = ""; };
67 | C8F9349582D1E73F6AE0FC97E8DBC39E /* ABExpandableView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ABExpandableView-dummy.m"; sourceTree = ""; };
68 | CF1B8C6E1FEA685D008B7006 /* ExpandableSectionsViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExpandableSectionsViewModel.swift; sourceTree = ""; };
69 | CF3102B91FE3DBB500658587 /* SelectionCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SelectionCell.swift; sourceTree = ""; };
70 | CF3102BB1FE3DBB500658587 /* ExpandableHeaderView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExpandableHeaderView.swift; sourceTree = ""; };
71 | CF3102BC1FE3DBB500658587 /* ExpandableHeaderView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ExpandableHeaderView.xib; sourceTree = ""; };
72 | CF3102C01FE3DBE700658587 /* RowItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowItem.swift; sourceTree = ""; };
73 | CF3102C11FE3DBE700658587 /* SectionItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SectionItem.swift; sourceTree = ""; };
74 | CF3102C31FE3DBE700658587 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
75 | CFC1CB291FE31C6700FF9F3E /* Expandable.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Expandable.storyboard; sourceTree = ""; };
76 | CFC1CB2A1FE31C6700FF9F3E /* ExpandableSectionsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExpandableSectionsViewController.swift; sourceTree = ""; };
77 | D564176A3D796F51DD1DFC25AEF7FB67 /* Pods-ABExpandableView_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ABExpandableView_Tests-resources.sh"; sourceTree = ""; };
78 | D70D7C3ED85A8BECBE3C32E48202FEAD /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
79 | DF3A1B173D54A13BF0172BA4C4877F2A /* Pods-ABExpandableView_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ABExpandableView_Tests-frameworks.sh"; sourceTree = ""; };
80 | FAAB219C584CFE6471D173996B124B7B /* Pods-ABExpandableView_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-ABExpandableView_Example.modulemap"; sourceTree = ""; };
81 | /* End PBXFileReference section */
82 |
83 | /* Begin PBXFrameworksBuildPhase section */
84 | 0E162A402A5D515E056AE43E28161ED9 /* Frameworks */ = {
85 | isa = PBXFrameworksBuildPhase;
86 | buildActionMask = 2147483647;
87 | files = (
88 | 9AFE487F18B6D0716802C8D8C0AC76C8 /* Foundation.framework in Frameworks */,
89 | );
90 | runOnlyForDeploymentPostprocessing = 0;
91 | };
92 | 5414F81A10A918B1C70261A905B94929 /* Frameworks */ = {
93 | isa = PBXFrameworksBuildPhase;
94 | buildActionMask = 2147483647;
95 | files = (
96 | 1089DCF0F24EBD80D1D5562146EF2B22 /* Foundation.framework in Frameworks */,
97 | );
98 | runOnlyForDeploymentPostprocessing = 0;
99 | };
100 | 9DEF848BA39490D1913244EC0174DF9B /* Frameworks */ = {
101 | isa = PBXFrameworksBuildPhase;
102 | buildActionMask = 2147483647;
103 | files = (
104 | 819EA0903FF9F7FFDEFD1D34742599AC /* Foundation.framework in Frameworks */,
105 | );
106 | runOnlyForDeploymentPostprocessing = 0;
107 | };
108 | /* End PBXFrameworksBuildPhase section */
109 |
110 | /* Begin PBXGroup section */
111 | 1F986406F8CE09A545F2726131C5BE1D /* Pods-ABExpandableView_Tests */ = {
112 | isa = PBXGroup;
113 | children = (
114 | 9795F6C9D824E2ACD8E6587F3BF26B9B /* Info.plist */,
115 | 8142B8CA96D6AB4C1E6CFD2759A015E1 /* Pods-ABExpandableView_Tests.modulemap */,
116 | 3AFCF7161FE3461392FB26BC92E6145A /* Pods-ABExpandableView_Tests-acknowledgements.markdown */,
117 | 8E73B28B4F4D680E46711ADD64EB3DB5 /* Pods-ABExpandableView_Tests-acknowledgements.plist */,
118 | 7A352218EF4CB21E6026FD3BA01DBDE7 /* Pods-ABExpandableView_Tests-dummy.m */,
119 | DF3A1B173D54A13BF0172BA4C4877F2A /* Pods-ABExpandableView_Tests-frameworks.sh */,
120 | D564176A3D796F51DD1DFC25AEF7FB67 /* Pods-ABExpandableView_Tests-resources.sh */,
121 | 53981AAD23C6FEA27F605029C280344A /* Pods-ABExpandableView_Tests-umbrella.h */,
122 | B853C15AFDDC3807B27AD9E14D603E62 /* Pods-ABExpandableView_Tests.debug.xcconfig */,
123 | 15BEB936AB665B0FCA914EA41B13A3D9 /* Pods-ABExpandableView_Tests.release.xcconfig */,
124 | );
125 | name = "Pods-ABExpandableView_Tests";
126 | path = "Target Support Files/Pods-ABExpandableView_Tests";
127 | sourceTree = "";
128 | };
129 | 4B5359EB9D230DCD7AF3B3E656BB65FE /* Support Files */ = {
130 | isa = PBXGroup;
131 | children = (
132 | 29454722539946976852A6EFF28776E9 /* ABExpandableView.modulemap */,
133 | 9A618B1705B3DD0B6E3B7421651D05D0 /* ABExpandableView.xcconfig */,
134 | C8F9349582D1E73F6AE0FC97E8DBC39E /* ABExpandableView-dummy.m */,
135 | 66E50BE944CDA530A7F563A0219ACE83 /* ABExpandableView-prefix.pch */,
136 | 13A893194FC979799A2B448409A2C835 /* ABExpandableView-umbrella.h */,
137 | D70D7C3ED85A8BECBE3C32E48202FEAD /* Info.plist */,
138 | );
139 | name = "Support Files";
140 | path = "Example/Pods/Target Support Files/ABExpandableView";
141 | sourceTree = "";
142 | };
143 | 5D4B5AE0372277FE11E71D3BEC055BF9 /* Products */ = {
144 | isa = PBXGroup;
145 | children = (
146 | 3AD5B0B0C7863461258E830458077048 /* ABExpandableView.framework */,
147 | 8DF2D475E1880772F390984CFD1E02F4 /* Pods_ABExpandableView_Example.framework */,
148 | 9AF4DDA23DF6BB793D0F82FEEF1204F9 /* Pods_ABExpandableView_Tests.framework */,
149 | );
150 | name = Products;
151 | sourceTree = "";
152 | };
153 | 764870999266B08B5D482DA314A1CA75 /* ABExpandableView */ = {
154 | isa = PBXGroup;
155 | children = (
156 | F1EFA665B92342F6A38FC10FE85A45B5 /* ABExpandableView */,
157 | 4B5359EB9D230DCD7AF3B3E656BB65FE /* Support Files */,
158 | );
159 | name = ABExpandableView;
160 | path = ../..;
161 | sourceTree = "";
162 | };
163 | 7DB346D0F39D3F0E887471402A8071AB = {
164 | isa = PBXGroup;
165 | children = (
166 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */,
167 | AF3E79590945467C8A145547ED771DF1 /* Development Pods */,
168 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */,
169 | 5D4B5AE0372277FE11E71D3BEC055BF9 /* Products */,
170 | 93932BB05E2D37250732565BA9E5EAE6 /* Targets Support Files */,
171 | );
172 | sourceTree = "";
173 | };
174 | 93932BB05E2D37250732565BA9E5EAE6 /* Targets Support Files */ = {
175 | isa = PBXGroup;
176 | children = (
177 | CD8B3EFB7615409A945418DACCEF1475 /* Pods-ABExpandableView_Example */,
178 | 1F986406F8CE09A545F2726131C5BE1D /* Pods-ABExpandableView_Tests */,
179 | );
180 | name = "Targets Support Files";
181 | sourceTree = "";
182 | };
183 | AF3E79590945467C8A145547ED771DF1 /* Development Pods */ = {
184 | isa = PBXGroup;
185 | children = (
186 | 764870999266B08B5D482DA314A1CA75 /* ABExpandableView */,
187 | );
188 | name = "Development Pods";
189 | sourceTree = "";
190 | };
191 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = {
192 | isa = PBXGroup;
193 | children = (
194 | D35AF013A5F0BAD4F32504907A52519E /* iOS */,
195 | );
196 | name = Frameworks;
197 | sourceTree = "";
198 | };
199 | CD8B3EFB7615409A945418DACCEF1475 /* Pods-ABExpandableView_Example */ = {
200 | isa = PBXGroup;
201 | children = (
202 | 1B226D508F6602D08F55AA40586A7BDA /* Info.plist */,
203 | FAAB219C584CFE6471D173996B124B7B /* Pods-ABExpandableView_Example.modulemap */,
204 | 917D4F1BCE3724C7F203EBBEC908C878 /* Pods-ABExpandableView_Example-acknowledgements.markdown */,
205 | 141B9A30F02335E77D9C3288A3B25E43 /* Pods-ABExpandableView_Example-acknowledgements.plist */,
206 | 36086E2A3BEE60135CCA23800AF6E23F /* Pods-ABExpandableView_Example-dummy.m */,
207 | A6221FBA09E43E1545423A5A7A561515 /* Pods-ABExpandableView_Example-frameworks.sh */,
208 | 339ED3F1639D53817890C919169B9043 /* Pods-ABExpandableView_Example-resources.sh */,
209 | 8C7051CEF889F1CB50D76E297ABCCBE7 /* Pods-ABExpandableView_Example-umbrella.h */,
210 | 62AA0E3C693A490D88943735B5A7C9B8 /* Pods-ABExpandableView_Example.debug.xcconfig */,
211 | 3ABA2A4733CB0D1A468163134A4E2580 /* Pods-ABExpandableView_Example.release.xcconfig */,
212 | );
213 | name = "Pods-ABExpandableView_Example";
214 | path = "Target Support Files/Pods-ABExpandableView_Example";
215 | sourceTree = "";
216 | };
217 | CF1B8C6D1FEA684A008B7006 /* ViewModel */ = {
218 | isa = PBXGroup;
219 | children = (
220 | CF1B8C6E1FEA685D008B7006 /* ExpandableSectionsViewModel.swift */,
221 | );
222 | path = ViewModel;
223 | sourceTree = "";
224 | };
225 | CF3102B81FE3DBB500658587 /* Cells */ = {
226 | isa = PBXGroup;
227 | children = (
228 | CF3102B91FE3DBB500658587 /* SelectionCell.swift */,
229 | );
230 | path = Cells;
231 | sourceTree = "";
232 | };
233 | CF3102BA1FE3DBB500658587 /* HeaderView */ = {
234 | isa = PBXGroup;
235 | children = (
236 | CF3102BC1FE3DBB500658587 /* ExpandableHeaderView.xib */,
237 | CF3102BB1FE3DBB500658587 /* ExpandableHeaderView.swift */,
238 | );
239 | path = HeaderView;
240 | sourceTree = "";
241 | };
242 | CF3102BF1FE3DBE700658587 /* Models */ = {
243 | isa = PBXGroup;
244 | children = (
245 | CF3102C01FE3DBE700658587 /* RowItem.swift */,
246 | CF3102C11FE3DBE700658587 /* SectionItem.swift */,
247 | );
248 | path = Models;
249 | sourceTree = "";
250 | };
251 | CF3102C21FE3DBE700658587 /* Resources */ = {
252 | isa = PBXGroup;
253 | children = (
254 | CF3102C31FE3DBE700658587 /* Assets.xcassets */,
255 | );
256 | path = Resources;
257 | sourceTree = "";
258 | };
259 | CFC1CB251FE31C4800FF9F3E /* View */ = {
260 | isa = PBXGroup;
261 | children = (
262 | CFC1CB291FE31C6700FF9F3E /* Expandable.storyboard */,
263 | CFC1CB2A1FE31C6700FF9F3E /* ExpandableSectionsViewController.swift */,
264 | CF3102B81FE3DBB500658587 /* Cells */,
265 | CF3102BA1FE3DBB500658587 /* HeaderView */,
266 | );
267 | path = View;
268 | sourceTree = "";
269 | };
270 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = {
271 | isa = PBXGroup;
272 | children = (
273 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */,
274 | );
275 | name = iOS;
276 | sourceTree = "";
277 | };
278 | DE024D5222A10136B241B6C3E94509B0 /* Classes */ = {
279 | isa = PBXGroup;
280 | children = (
281 | CF1B8C6D1FEA684A008B7006 /* ViewModel */,
282 | CFC1CB251FE31C4800FF9F3E /* View */,
283 | CF3102BF1FE3DBE700658587 /* Models */,
284 | CF3102C21FE3DBE700658587 /* Resources */,
285 | );
286 | path = Classes;
287 | sourceTree = "";
288 | };
289 | F1EFA665B92342F6A38FC10FE85A45B5 /* ABExpandableView */ = {
290 | isa = PBXGroup;
291 | children = (
292 | DE024D5222A10136B241B6C3E94509B0 /* Classes */,
293 | );
294 | path = ABExpandableView;
295 | sourceTree = "";
296 | };
297 | /* End PBXGroup section */
298 |
299 | /* Begin PBXHeadersBuildPhase section */
300 | 0D865FA7E8EEB5DA3C08318771A4FE3A /* Headers */ = {
301 | isa = PBXHeadersBuildPhase;
302 | buildActionMask = 2147483647;
303 | files = (
304 | 7AB33C82B4E65EDE9C14129FC1DD1F48 /* Pods-ABExpandableView_Example-umbrella.h in Headers */,
305 | );
306 | runOnlyForDeploymentPostprocessing = 0;
307 | };
308 | 2E216A9B83E5D57AAA4344B76D3321CB /* Headers */ = {
309 | isa = PBXHeadersBuildPhase;
310 | buildActionMask = 2147483647;
311 | files = (
312 | 025F809079CF1E0A0E73EDDBB96D3B2D /* Pods-ABExpandableView_Tests-umbrella.h in Headers */,
313 | );
314 | runOnlyForDeploymentPostprocessing = 0;
315 | };
316 | 4F37391246240EB313AB8BB741716E2E /* Headers */ = {
317 | isa = PBXHeadersBuildPhase;
318 | buildActionMask = 2147483647;
319 | files = (
320 | 372AA7CBA0FA14E56BBF1A648EF16B01 /* ABExpandableView-umbrella.h in Headers */,
321 | );
322 | runOnlyForDeploymentPostprocessing = 0;
323 | };
324 | /* End PBXHeadersBuildPhase section */
325 |
326 | /* Begin PBXNativeTarget section */
327 | 30A54F2253060DFD06A99A02604CFB98 /* Pods-ABExpandableView_Example */ = {
328 | isa = PBXNativeTarget;
329 | buildConfigurationList = 6DE9F880B4954955980F255595E6E676 /* Build configuration list for PBXNativeTarget "Pods-ABExpandableView_Example" */;
330 | buildPhases = (
331 | FCA4CA77A5CD79215A9404034904C4C6 /* Sources */,
332 | 0E162A402A5D515E056AE43E28161ED9 /* Frameworks */,
333 | 0D865FA7E8EEB5DA3C08318771A4FE3A /* Headers */,
334 | );
335 | buildRules = (
336 | );
337 | dependencies = (
338 | C896983470975181E880814C64DB2C74 /* PBXTargetDependency */,
339 | );
340 | name = "Pods-ABExpandableView_Example";
341 | productName = "Pods-ABExpandableView_Example";
342 | productReference = 8DF2D475E1880772F390984CFD1E02F4 /* Pods_ABExpandableView_Example.framework */;
343 | productType = "com.apple.product-type.framework";
344 | };
345 | CB1A7ED4A4F44CF6731787471D608572 /* ABExpandableView */ = {
346 | isa = PBXNativeTarget;
347 | buildConfigurationList = C85D9A82307F734990296F51121351D2 /* Build configuration list for PBXNativeTarget "ABExpandableView" */;
348 | buildPhases = (
349 | 35E4A3FA2FC511D848B598F22ABC30EE /* Sources */,
350 | 5414F81A10A918B1C70261A905B94929 /* Frameworks */,
351 | 4F37391246240EB313AB8BB741716E2E /* Headers */,
352 | CF1B8C711FEAA126008B7006 /* Resources */,
353 | );
354 | buildRules = (
355 | );
356 | dependencies = (
357 | );
358 | name = ABExpandableView;
359 | productName = ABExpandableView;
360 | productReference = 3AD5B0B0C7863461258E830458077048 /* ABExpandableView.framework */;
361 | productType = "com.apple.product-type.framework";
362 | };
363 | EECC2E9C312D7D5C8725A03978ADEAF8 /* Pods-ABExpandableView_Tests */ = {
364 | isa = PBXNativeTarget;
365 | buildConfigurationList = 39CFA20678F10788953951146CD320DC /* Build configuration list for PBXNativeTarget "Pods-ABExpandableView_Tests" */;
366 | buildPhases = (
367 | 29182589C28D46FA5499DD6C0E946475 /* Sources */,
368 | 9DEF848BA39490D1913244EC0174DF9B /* Frameworks */,
369 | 2E216A9B83E5D57AAA4344B76D3321CB /* Headers */,
370 | );
371 | buildRules = (
372 | );
373 | dependencies = (
374 | );
375 | name = "Pods-ABExpandableView_Tests";
376 | productName = "Pods-ABExpandableView_Tests";
377 | productReference = 9AF4DDA23DF6BB793D0F82FEEF1204F9 /* Pods_ABExpandableView_Tests.framework */;
378 | productType = "com.apple.product-type.framework";
379 | };
380 | /* End PBXNativeTarget section */
381 |
382 | /* Begin PBXProject section */
383 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = {
384 | isa = PBXProject;
385 | attributes = {
386 | LastSwiftUpdateCheck = 0830;
387 | LastUpgradeCheck = 0700;
388 | TargetAttributes = {
389 | CB1A7ED4A4F44CF6731787471D608572 = {
390 | LastSwiftMigration = 0910;
391 | };
392 | };
393 | };
394 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */;
395 | compatibilityVersion = "Xcode 3.2";
396 | developmentRegion = English;
397 | hasScannedForEncodings = 0;
398 | knownRegions = (
399 | en,
400 | );
401 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB;
402 | productRefGroup = 5D4B5AE0372277FE11E71D3BEC055BF9 /* Products */;
403 | projectDirPath = "";
404 | projectRoot = "";
405 | targets = (
406 | CB1A7ED4A4F44CF6731787471D608572 /* ABExpandableView */,
407 | 30A54F2253060DFD06A99A02604CFB98 /* Pods-ABExpandableView_Example */,
408 | EECC2E9C312D7D5C8725A03978ADEAF8 /* Pods-ABExpandableView_Tests */,
409 | );
410 | };
411 | /* End PBXProject section */
412 |
413 | /* Begin PBXResourcesBuildPhase section */
414 | CF1B8C711FEAA126008B7006 /* Resources */ = {
415 | isa = PBXResourcesBuildPhase;
416 | buildActionMask = 2147483647;
417 | files = (
418 | CF1B8C721FEAA12E008B7006 /* Expandable.storyboard in Resources */,
419 | CF892FDC1FF2728B00242A16 /* Assets.xcassets in Resources */,
420 | CF1B8C751FEAA2A0008B7006 /* ExpandableHeaderView.xib in Resources */,
421 | );
422 | runOnlyForDeploymentPostprocessing = 0;
423 | };
424 | /* End PBXResourcesBuildPhase section */
425 |
426 | /* Begin PBXSourcesBuildPhase section */
427 | 29182589C28D46FA5499DD6C0E946475 /* Sources */ = {
428 | isa = PBXSourcesBuildPhase;
429 | buildActionMask = 2147483647;
430 | files = (
431 | D3615B444E5F4011FBB055722D41BE0B /* Pods-ABExpandableView_Tests-dummy.m in Sources */,
432 | );
433 | runOnlyForDeploymentPostprocessing = 0;
434 | };
435 | 35E4A3FA2FC511D848B598F22ABC30EE /* Sources */ = {
436 | isa = PBXSourcesBuildPhase;
437 | buildActionMask = 2147483647;
438 | files = (
439 | CF3102C51FE3DBE700658587 /* SectionItem.swift in Sources */,
440 | CFC1CB2B1FE31C6700FF9F3E /* ExpandableSectionsViewController.swift in Sources */,
441 | CF3102BE1FE3DBB500658587 /* ExpandableHeaderView.swift in Sources */,
442 | FE947B27766BF250350A221693DED20D /* ABExpandableView-dummy.m in Sources */,
443 | CF1B8C6F1FEA685D008B7006 /* ExpandableSectionsViewModel.swift in Sources */,
444 | CF3102BD1FE3DBB500658587 /* SelectionCell.swift in Sources */,
445 | CF3102C41FE3DBE700658587 /* RowItem.swift in Sources */,
446 | );
447 | runOnlyForDeploymentPostprocessing = 0;
448 | };
449 | FCA4CA77A5CD79215A9404034904C4C6 /* Sources */ = {
450 | isa = PBXSourcesBuildPhase;
451 | buildActionMask = 2147483647;
452 | files = (
453 | 81AD7D2035EEDA53DE74F8558E8D3764 /* Pods-ABExpandableView_Example-dummy.m in Sources */,
454 | );
455 | runOnlyForDeploymentPostprocessing = 0;
456 | };
457 | /* End PBXSourcesBuildPhase section */
458 |
459 | /* Begin PBXTargetDependency section */
460 | C896983470975181E880814C64DB2C74 /* PBXTargetDependency */ = {
461 | isa = PBXTargetDependency;
462 | name = ABExpandableView;
463 | target = CB1A7ED4A4F44CF6731787471D608572 /* ABExpandableView */;
464 | targetProxy = BA4FB7CADA24B2611BC5FFCD8928DDB7 /* PBXContainerItemProxy */;
465 | };
466 | /* End PBXTargetDependency section */
467 |
468 | /* Begin XCBuildConfiguration section */
469 | 0D065942EE51431BDF648D01FC2E6455 /* Debug */ = {
470 | isa = XCBuildConfiguration;
471 | baseConfigurationReference = 62AA0E3C693A490D88943735B5A7C9B8 /* Pods-ABExpandableView_Example.debug.xcconfig */;
472 | buildSettings = {
473 | CODE_SIGN_IDENTITY = "";
474 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
475 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
476 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
477 | CURRENT_PROJECT_VERSION = 1;
478 | DEFINES_MODULE = YES;
479 | DYLIB_COMPATIBILITY_VERSION = 1;
480 | DYLIB_CURRENT_VERSION = 1;
481 | DYLIB_INSTALL_NAME_BASE = "@rpath";
482 | INFOPLIST_FILE = "Target Support Files/Pods-ABExpandableView_Example/Info.plist";
483 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
484 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
485 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
486 | MACH_O_TYPE = staticlib;
487 | MODULEMAP_FILE = "Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example.modulemap";
488 | OTHER_LDFLAGS = "";
489 | OTHER_LIBTOOLFLAGS = "";
490 | PODS_ROOT = "$(SRCROOT)";
491 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
492 | PRODUCT_NAME = Pods_ABExpandableView_Example;
493 | SDKROOT = iphoneos;
494 | SKIP_INSTALL = YES;
495 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
496 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
497 | TARGETED_DEVICE_FAMILY = "1,2";
498 | VERSIONING_SYSTEM = "apple-generic";
499 | VERSION_INFO_PREFIX = "";
500 | };
501 | name = Debug;
502 | };
503 | 17348B62A71969F6F74ECB45DAFEEAC3 /* Release */ = {
504 | isa = XCBuildConfiguration;
505 | baseConfigurationReference = 15BEB936AB665B0FCA914EA41B13A3D9 /* Pods-ABExpandableView_Tests.release.xcconfig */;
506 | buildSettings = {
507 | CODE_SIGN_IDENTITY = "";
508 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
509 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
510 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
511 | CURRENT_PROJECT_VERSION = 1;
512 | DEFINES_MODULE = YES;
513 | DYLIB_COMPATIBILITY_VERSION = 1;
514 | DYLIB_CURRENT_VERSION = 1;
515 | DYLIB_INSTALL_NAME_BASE = "@rpath";
516 | INFOPLIST_FILE = "Target Support Files/Pods-ABExpandableView_Tests/Info.plist";
517 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
518 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
519 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
520 | MACH_O_TYPE = staticlib;
521 | MODULEMAP_FILE = "Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests.modulemap";
522 | OTHER_LDFLAGS = "";
523 | OTHER_LIBTOOLFLAGS = "";
524 | PODS_ROOT = "$(SRCROOT)";
525 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
526 | PRODUCT_NAME = Pods_ABExpandableView_Tests;
527 | SDKROOT = iphoneos;
528 | SKIP_INSTALL = YES;
529 | TARGETED_DEVICE_FAMILY = "1,2";
530 | VALIDATE_PRODUCT = YES;
531 | VERSIONING_SYSTEM = "apple-generic";
532 | VERSION_INFO_PREFIX = "";
533 | };
534 | name = Release;
535 | };
536 | 2D95ADE90B4FECAA756A944C570291E0 /* Debug */ = {
537 | isa = XCBuildConfiguration;
538 | buildSettings = {
539 | ALWAYS_SEARCH_USER_PATHS = NO;
540 | CLANG_ANALYZER_NONNULL = YES;
541 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
542 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
543 | CLANG_CXX_LIBRARY = "libc++";
544 | CLANG_ENABLE_MODULES = YES;
545 | CLANG_ENABLE_OBJC_ARC = YES;
546 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
547 | CLANG_WARN_BOOL_CONVERSION = YES;
548 | CLANG_WARN_COMMA = YES;
549 | CLANG_WARN_CONSTANT_CONVERSION = YES;
550 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
551 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
552 | CLANG_WARN_EMPTY_BODY = YES;
553 | CLANG_WARN_ENUM_CONVERSION = YES;
554 | CLANG_WARN_INFINITE_RECURSION = YES;
555 | CLANG_WARN_INT_CONVERSION = YES;
556 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
557 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
558 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
559 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
560 | CLANG_WARN_STRICT_PROTOTYPES = YES;
561 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
562 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
563 | CLANG_WARN_UNREACHABLE_CODE = YES;
564 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
565 | CODE_SIGNING_REQUIRED = NO;
566 | COPY_PHASE_STRIP = NO;
567 | DEBUG_INFORMATION_FORMAT = dwarf;
568 | ENABLE_STRICT_OBJC_MSGSEND = YES;
569 | ENABLE_TESTABILITY = YES;
570 | GCC_C_LANGUAGE_STANDARD = gnu11;
571 | GCC_DYNAMIC_NO_PIC = NO;
572 | GCC_NO_COMMON_BLOCKS = YES;
573 | GCC_OPTIMIZATION_LEVEL = 0;
574 | GCC_PREPROCESSOR_DEFINITIONS = (
575 | "POD_CONFIGURATION_DEBUG=1",
576 | "DEBUG=1",
577 | "$(inherited)",
578 | );
579 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
580 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
581 | GCC_WARN_UNDECLARED_SELECTOR = YES;
582 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
583 | GCC_WARN_UNUSED_FUNCTION = YES;
584 | GCC_WARN_UNUSED_VARIABLE = YES;
585 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
586 | MTL_ENABLE_DEBUG_INFO = YES;
587 | ONLY_ACTIVE_ARCH = YES;
588 | PRODUCT_NAME = "$(TARGET_NAME)";
589 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/;
590 | STRIP_INSTALLED_PRODUCT = NO;
591 | SYMROOT = "${SRCROOT}/../build";
592 | };
593 | name = Debug;
594 | };
595 | 731DC216E1A58545B559F6E0A2418060 /* Release */ = {
596 | isa = XCBuildConfiguration;
597 | buildSettings = {
598 | ALWAYS_SEARCH_USER_PATHS = NO;
599 | CLANG_ANALYZER_NONNULL = YES;
600 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
601 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
602 | CLANG_CXX_LIBRARY = "libc++";
603 | CLANG_ENABLE_MODULES = YES;
604 | CLANG_ENABLE_OBJC_ARC = YES;
605 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
606 | CLANG_WARN_BOOL_CONVERSION = YES;
607 | CLANG_WARN_COMMA = YES;
608 | CLANG_WARN_CONSTANT_CONVERSION = YES;
609 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
610 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
611 | CLANG_WARN_EMPTY_BODY = YES;
612 | CLANG_WARN_ENUM_CONVERSION = YES;
613 | CLANG_WARN_INFINITE_RECURSION = YES;
614 | CLANG_WARN_INT_CONVERSION = YES;
615 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
616 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
617 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
618 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
619 | CLANG_WARN_STRICT_PROTOTYPES = YES;
620 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
621 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
622 | CLANG_WARN_UNREACHABLE_CODE = YES;
623 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
624 | CODE_SIGNING_REQUIRED = NO;
625 | COPY_PHASE_STRIP = NO;
626 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
627 | ENABLE_NS_ASSERTIONS = NO;
628 | ENABLE_STRICT_OBJC_MSGSEND = YES;
629 | GCC_C_LANGUAGE_STANDARD = gnu11;
630 | GCC_NO_COMMON_BLOCKS = YES;
631 | GCC_PREPROCESSOR_DEFINITIONS = (
632 | "POD_CONFIGURATION_RELEASE=1",
633 | "$(inherited)",
634 | );
635 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
636 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
637 | GCC_WARN_UNDECLARED_SELECTOR = YES;
638 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
639 | GCC_WARN_UNUSED_FUNCTION = YES;
640 | GCC_WARN_UNUSED_VARIABLE = YES;
641 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
642 | MTL_ENABLE_DEBUG_INFO = NO;
643 | PRODUCT_NAME = "$(TARGET_NAME)";
644 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/;
645 | STRIP_INSTALLED_PRODUCT = NO;
646 | SYMROOT = "${SRCROOT}/../build";
647 | };
648 | name = Release;
649 | };
650 | 8F61177BAF569B387DAD621C56AE1DF1 /* Debug */ = {
651 | isa = XCBuildConfiguration;
652 | baseConfigurationReference = B853C15AFDDC3807B27AD9E14D603E62 /* Pods-ABExpandableView_Tests.debug.xcconfig */;
653 | buildSettings = {
654 | CODE_SIGN_IDENTITY = "";
655 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
656 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
657 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
658 | CURRENT_PROJECT_VERSION = 1;
659 | DEFINES_MODULE = YES;
660 | DYLIB_COMPATIBILITY_VERSION = 1;
661 | DYLIB_CURRENT_VERSION = 1;
662 | DYLIB_INSTALL_NAME_BASE = "@rpath";
663 | INFOPLIST_FILE = "Target Support Files/Pods-ABExpandableView_Tests/Info.plist";
664 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
665 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
666 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
667 | MACH_O_TYPE = staticlib;
668 | MODULEMAP_FILE = "Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests.modulemap";
669 | OTHER_LDFLAGS = "";
670 | OTHER_LIBTOOLFLAGS = "";
671 | PODS_ROOT = "$(SRCROOT)";
672 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
673 | PRODUCT_NAME = Pods_ABExpandableView_Tests;
674 | SDKROOT = iphoneos;
675 | SKIP_INSTALL = YES;
676 | TARGETED_DEVICE_FAMILY = "1,2";
677 | VERSIONING_SYSTEM = "apple-generic";
678 | VERSION_INFO_PREFIX = "";
679 | };
680 | name = Debug;
681 | };
682 | A3632CD509D82026B57A3237885EFB40 /* Debug */ = {
683 | isa = XCBuildConfiguration;
684 | baseConfigurationReference = 9A618B1705B3DD0B6E3B7421651D05D0 /* ABExpandableView.xcconfig */;
685 | buildSettings = {
686 | CLANG_ENABLE_MODULES = YES;
687 | CODE_SIGN_IDENTITY = "";
688 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
689 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
690 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
691 | CURRENT_PROJECT_VERSION = 1;
692 | DEFINES_MODULE = YES;
693 | DYLIB_COMPATIBILITY_VERSION = 1;
694 | DYLIB_CURRENT_VERSION = 1;
695 | DYLIB_INSTALL_NAME_BASE = "@rpath";
696 | GCC_PREFIX_HEADER = "Target Support Files/ABExpandableView/ABExpandableView-prefix.pch";
697 | INFOPLIST_FILE = "Target Support Files/ABExpandableView/Info.plist";
698 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
699 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
700 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
701 | MODULEMAP_FILE = "Target Support Files/ABExpandableView/ABExpandableView.modulemap";
702 | PRODUCT_NAME = ABExpandableView;
703 | SDKROOT = iphoneos;
704 | SKIP_INSTALL = YES;
705 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
706 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
707 | SWIFT_VERSION = 4.0;
708 | TARGETED_DEVICE_FAMILY = "1,2";
709 | VERSIONING_SYSTEM = "apple-generic";
710 | VERSION_INFO_PREFIX = "";
711 | };
712 | name = Debug;
713 | };
714 | AFC58D97AAED25E3536448FE34F22376 /* Release */ = {
715 | isa = XCBuildConfiguration;
716 | baseConfigurationReference = 3ABA2A4733CB0D1A468163134A4E2580 /* Pods-ABExpandableView_Example.release.xcconfig */;
717 | buildSettings = {
718 | CODE_SIGN_IDENTITY = "";
719 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
720 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
721 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
722 | CURRENT_PROJECT_VERSION = 1;
723 | DEFINES_MODULE = YES;
724 | DYLIB_COMPATIBILITY_VERSION = 1;
725 | DYLIB_CURRENT_VERSION = 1;
726 | DYLIB_INSTALL_NAME_BASE = "@rpath";
727 | INFOPLIST_FILE = "Target Support Files/Pods-ABExpandableView_Example/Info.plist";
728 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
729 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
730 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
731 | MACH_O_TYPE = staticlib;
732 | MODULEMAP_FILE = "Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example.modulemap";
733 | OTHER_LDFLAGS = "";
734 | OTHER_LIBTOOLFLAGS = "";
735 | PODS_ROOT = "$(SRCROOT)";
736 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
737 | PRODUCT_NAME = Pods_ABExpandableView_Example;
738 | SDKROOT = iphoneos;
739 | SKIP_INSTALL = YES;
740 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
741 | TARGETED_DEVICE_FAMILY = "1,2";
742 | VALIDATE_PRODUCT = YES;
743 | VERSIONING_SYSTEM = "apple-generic";
744 | VERSION_INFO_PREFIX = "";
745 | };
746 | name = Release;
747 | };
748 | C902E8D522C76BDFC986C73C7A9760AB /* Release */ = {
749 | isa = XCBuildConfiguration;
750 | baseConfigurationReference = 9A618B1705B3DD0B6E3B7421651D05D0 /* ABExpandableView.xcconfig */;
751 | buildSettings = {
752 | CLANG_ENABLE_MODULES = YES;
753 | CODE_SIGN_IDENTITY = "";
754 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
755 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
756 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
757 | CURRENT_PROJECT_VERSION = 1;
758 | DEFINES_MODULE = YES;
759 | DYLIB_COMPATIBILITY_VERSION = 1;
760 | DYLIB_CURRENT_VERSION = 1;
761 | DYLIB_INSTALL_NAME_BASE = "@rpath";
762 | GCC_PREFIX_HEADER = "Target Support Files/ABExpandableView/ABExpandableView-prefix.pch";
763 | INFOPLIST_FILE = "Target Support Files/ABExpandableView/Info.plist";
764 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
765 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
766 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
767 | MODULEMAP_FILE = "Target Support Files/ABExpandableView/ABExpandableView.modulemap";
768 | PRODUCT_NAME = ABExpandableView;
769 | SDKROOT = iphoneos;
770 | SKIP_INSTALL = YES;
771 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
772 | SWIFT_VERSION = 4.0;
773 | TARGETED_DEVICE_FAMILY = "1,2";
774 | VALIDATE_PRODUCT = YES;
775 | VERSIONING_SYSTEM = "apple-generic";
776 | VERSION_INFO_PREFIX = "";
777 | };
778 | name = Release;
779 | };
780 | /* End XCBuildConfiguration section */
781 |
782 | /* Begin XCConfigurationList section */
783 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = {
784 | isa = XCConfigurationList;
785 | buildConfigurations = (
786 | 2D95ADE90B4FECAA756A944C570291E0 /* Debug */,
787 | 731DC216E1A58545B559F6E0A2418060 /* Release */,
788 | );
789 | defaultConfigurationIsVisible = 0;
790 | defaultConfigurationName = Release;
791 | };
792 | 39CFA20678F10788953951146CD320DC /* Build configuration list for PBXNativeTarget "Pods-ABExpandableView_Tests" */ = {
793 | isa = XCConfigurationList;
794 | buildConfigurations = (
795 | 8F61177BAF569B387DAD621C56AE1DF1 /* Debug */,
796 | 17348B62A71969F6F74ECB45DAFEEAC3 /* Release */,
797 | );
798 | defaultConfigurationIsVisible = 0;
799 | defaultConfigurationName = Release;
800 | };
801 | 6DE9F880B4954955980F255595E6E676 /* Build configuration list for PBXNativeTarget "Pods-ABExpandableView_Example" */ = {
802 | isa = XCConfigurationList;
803 | buildConfigurations = (
804 | 0D065942EE51431BDF648D01FC2E6455 /* Debug */,
805 | AFC58D97AAED25E3536448FE34F22376 /* Release */,
806 | );
807 | defaultConfigurationIsVisible = 0;
808 | defaultConfigurationName = Release;
809 | };
810 | C85D9A82307F734990296F51121351D2 /* Build configuration list for PBXNativeTarget "ABExpandableView" */ = {
811 | isa = XCConfigurationList;
812 | buildConfigurations = (
813 | A3632CD509D82026B57A3237885EFB40 /* Debug */,
814 | C902E8D522C76BDFC986C73C7A9760AB /* Release */,
815 | );
816 | defaultConfigurationIsVisible = 0;
817 | defaultConfigurationName = Release;
818 | };
819 | /* End XCConfigurationList section */
820 | };
821 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */;
822 | }
823 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/ABExpandableView/ABExpandableView-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_ABExpandableView : NSObject
3 | @end
4 | @implementation PodsDummy_ABExpandableView
5 | @end
6 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/ABExpandableView/ABExpandableView-prefix.pch:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/ABExpandableView/ABExpandableView-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double ABExpandableViewVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char ABExpandableViewVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/ABExpandableView/ABExpandableView.modulemap:
--------------------------------------------------------------------------------
1 | framework module ABExpandableView {
2 | umbrella header "ABExpandableView-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/ABExpandableView/ABExpandableView.xcconfig:
--------------------------------------------------------------------------------
1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/ABExpandableView
2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public"
4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
5 | PODS_BUILD_DIR = $BUILD_DIR
6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../..
9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
10 | SKIP_INSTALL = YES
11 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/ABExpandableView/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 | FMWK
17 | CFBundleShortVersionString
18 | 0.1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/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 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example-acknowledgements.markdown:
--------------------------------------------------------------------------------
1 | # Acknowledgements
2 | This application makes use of the following third party libraries:
3 |
4 | ## ABExpandableView
5 |
6 | Copyright (c) 2017 alicanbatur
7 |
8 | Permission is hereby granted, free of charge, to any person obtaining a copy
9 | of this software and associated documentation files (the "Software"), to deal
10 | in the Software without restriction, including without limitation the rights
11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 | copies of the Software, and to permit persons to whom the Software is
13 | furnished to do so, subject to the following conditions:
14 |
15 | The above copyright notice and this permission notice shall be included in
16 | all copies or substantial portions of the Software.
17 |
18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | THE SOFTWARE.
25 |
26 | Generated by CocoaPods - https://cocoapods.org
27 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example-acknowledgements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreferenceSpecifiers
6 |
7 |
8 | FooterText
9 | This application makes use of the following third party libraries:
10 | Title
11 | Acknowledgements
12 | Type
13 | PSGroupSpecifier
14 |
15 |
16 | FooterText
17 | Copyright (c) 2017 alicanbatur <alicanbatur@gmail.com>
18 |
19 | Permission is hereby granted, free of charge, to any person obtaining a copy
20 | of this software and associated documentation files (the "Software"), to deal
21 | in the Software without restriction, including without limitation the rights
22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23 | copies of the Software, and to permit persons to whom the Software is
24 | furnished to do so, subject to the following conditions:
25 |
26 | The above copyright notice and this permission notice shall be included in
27 | all copies or substantial portions of the Software.
28 |
29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
35 | THE SOFTWARE.
36 |
37 | License
38 | MIT
39 | Title
40 | ABExpandableView
41 | Type
42 | PSGroupSpecifier
43 |
44 |
45 | FooterText
46 | Generated by CocoaPods - https://cocoapods.org
47 | Title
48 |
49 | Type
50 | PSGroupSpecifier
51 |
52 |
53 | StringsTable
54 | Acknowledgements
55 | Title
56 | Acknowledgements
57 |
58 |
59 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods_ABExpandableView_Example : NSObject
3 | @end
4 | @implementation PodsDummy_Pods_ABExpandableView_Example
5 | @end
6 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example-frameworks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
6 |
7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
8 |
9 | install_framework()
10 | {
11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
12 | local source="${BUILT_PRODUCTS_DIR}/$1"
13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
15 | elif [ -r "$1" ]; then
16 | local source="$1"
17 | fi
18 |
19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
20 |
21 | if [ -L "${source}" ]; then
22 | echo "Symlinked..."
23 | source="$(readlink "${source}")"
24 | fi
25 |
26 | # use filter instead of exclude so missing patterns dont' throw errors
27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
29 |
30 | local basename
31 | basename="$(basename -s .framework "$1")"
32 | binary="${destination}/${basename}.framework/${basename}"
33 | if ! [ -r "$binary" ]; then
34 | binary="${destination}/${basename}"
35 | fi
36 |
37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device
38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
39 | strip_invalid_archs "$binary"
40 | fi
41 |
42 | # Resign the code if required by the build settings to avoid unstable apps
43 | code_sign_if_enabled "${destination}/$(basename "$1")"
44 |
45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
47 | local swift_runtime_libs
48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]})
49 | for lib in $swift_runtime_libs; do
50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
52 | code_sign_if_enabled "${destination}/${lib}"
53 | done
54 | fi
55 | }
56 |
57 | # Signs a framework with the provided identity
58 | code_sign_if_enabled() {
59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
60 | # Use the current code_sign_identitiy
61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1""
63 |
64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
65 | code_sign_cmd="$code_sign_cmd &"
66 | fi
67 | echo "$code_sign_cmd"
68 | eval "$code_sign_cmd"
69 | fi
70 | }
71 |
72 | # Strip invalid architectures
73 | strip_invalid_archs() {
74 | binary="$1"
75 | # Get architectures for current file
76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)"
77 | stripped=""
78 | for arch in $archs; do
79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then
80 | # Strip non-valid architectures in-place
81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1
82 | stripped="$stripped $arch"
83 | fi
84 | done
85 | if [[ "$stripped" ]]; then
86 | echo "Stripped $binary of architectures:$stripped"
87 | fi
88 | }
89 |
90 |
91 | if [[ "$CONFIGURATION" == "Debug" ]]; then
92 | install_framework "$BUILT_PRODUCTS_DIR/ABExpandableView/ABExpandableView.framework"
93 | fi
94 | if [[ "$CONFIGURATION" == "Release" ]]; then
95 | install_framework "$BUILT_PRODUCTS_DIR/ABExpandableView/ABExpandableView.framework"
96 | fi
97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
98 | wait
99 | fi
100 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example-resources.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
5 |
6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
7 | > "$RESOURCES_TO_COPY"
8 |
9 | XCASSET_FILES=()
10 |
11 | case "${TARGETED_DEVICE_FAMILY}" in
12 | 1,2)
13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
14 | ;;
15 | 1)
16 | TARGET_DEVICE_ARGS="--target-device iphone"
17 | ;;
18 | 2)
19 | TARGET_DEVICE_ARGS="--target-device ipad"
20 | ;;
21 | 3)
22 | TARGET_DEVICE_ARGS="--target-device tv"
23 | ;;
24 | *)
25 | TARGET_DEVICE_ARGS="--target-device mac"
26 | ;;
27 | esac
28 |
29 | install_resource()
30 | {
31 | if [[ "$1" = /* ]] ; then
32 | RESOURCE_PATH="$1"
33 | else
34 | RESOURCE_PATH="${PODS_ROOT}/$1"
35 | fi
36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then
37 | cat << EOM
38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
39 | EOM
40 | exit 1
41 | fi
42 | case $RESOURCE_PATH in
43 | *.storyboard)
44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}"
45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
46 | ;;
47 | *.xib)
48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}"
49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
50 | ;;
51 | *.framework)
52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
56 | ;;
57 | *.xcdatamodel)
58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\""
59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
60 | ;;
61 | *.xcdatamodeld)
62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\""
63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
64 | ;;
65 | *.xcmappingmodel)
66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\""
67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
68 | ;;
69 | *.xcassets)
70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH"
71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
72 | ;;
73 | *)
74 | echo "$RESOURCE_PATH"
75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY"
76 | ;;
77 | esac
78 | }
79 |
80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
85 | fi
86 | rm -f "$RESOURCES_TO_COPY"
87 |
88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
89 | then
90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets).
91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
92 | while read line; do
93 | if [[ $line != "${PODS_ROOT}*" ]]; then
94 | XCASSET_FILES+=("$line")
95 | fi
96 | done <<<"$OTHER_XCASSETS"
97 |
98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
99 | fi
100 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double Pods_ABExpandableView_ExampleVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char Pods_ABExpandableView_ExampleVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example.debug.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ABExpandableView"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/ABExpandableView/ABExpandableView.framework/Headers"
6 | OTHER_LDFLAGS = $(inherited) -framework "ABExpandableView"
7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
8 | PODS_BUILD_DIR = $BUILD_DIR
9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_ROOT = ${SRCROOT}/Pods
11 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example.modulemap:
--------------------------------------------------------------------------------
1 | framework module Pods_ABExpandableView_Example {
2 | umbrella header "Pods-ABExpandableView_Example-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Example/Pods-ABExpandableView_Example.release.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ABExpandableView"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/ABExpandableView/ABExpandableView.framework/Headers"
6 | OTHER_LDFLAGS = $(inherited) -framework "ABExpandableView"
7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
8 | PODS_BUILD_DIR = $BUILD_DIR
9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_ROOT = ${SRCROOT}/Pods
11 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/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 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests-acknowledgements.markdown:
--------------------------------------------------------------------------------
1 | # Acknowledgements
2 | This application makes use of the following third party libraries:
3 | Generated by CocoaPods - https://cocoapods.org
4 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests-acknowledgements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreferenceSpecifiers
6 |
7 |
8 | FooterText
9 | This application makes use of the following third party libraries:
10 | Title
11 | Acknowledgements
12 | Type
13 | PSGroupSpecifier
14 |
15 |
16 | FooterText
17 | Generated by CocoaPods - https://cocoapods.org
18 | Title
19 |
20 | Type
21 | PSGroupSpecifier
22 |
23 |
24 | StringsTable
25 | Acknowledgements
26 | Title
27 | Acknowledgements
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods_ABExpandableView_Tests : NSObject
3 | @end
4 | @implementation PodsDummy_Pods_ABExpandableView_Tests
5 | @end
6 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests-frameworks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
6 |
7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
8 |
9 | install_framework()
10 | {
11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
12 | local source="${BUILT_PRODUCTS_DIR}/$1"
13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
15 | elif [ -r "$1" ]; then
16 | local source="$1"
17 | fi
18 |
19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
20 |
21 | if [ -L "${source}" ]; then
22 | echo "Symlinked..."
23 | source="$(readlink "${source}")"
24 | fi
25 |
26 | # use filter instead of exclude so missing patterns dont' throw errors
27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
29 |
30 | local basename
31 | basename="$(basename -s .framework "$1")"
32 | binary="${destination}/${basename}.framework/${basename}"
33 | if ! [ -r "$binary" ]; then
34 | binary="${destination}/${basename}"
35 | fi
36 |
37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device
38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
39 | strip_invalid_archs "$binary"
40 | fi
41 |
42 | # Resign the code if required by the build settings to avoid unstable apps
43 | code_sign_if_enabled "${destination}/$(basename "$1")"
44 |
45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
47 | local swift_runtime_libs
48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]})
49 | for lib in $swift_runtime_libs; do
50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
52 | code_sign_if_enabled "${destination}/${lib}"
53 | done
54 | fi
55 | }
56 |
57 | # Signs a framework with the provided identity
58 | code_sign_if_enabled() {
59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
60 | # Use the current code_sign_identitiy
61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1""
63 |
64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
65 | code_sign_cmd="$code_sign_cmd &"
66 | fi
67 | echo "$code_sign_cmd"
68 | eval "$code_sign_cmd"
69 | fi
70 | }
71 |
72 | # Strip invalid architectures
73 | strip_invalid_archs() {
74 | binary="$1"
75 | # Get architectures for current file
76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)"
77 | stripped=""
78 | for arch in $archs; do
79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then
80 | # Strip non-valid architectures in-place
81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1
82 | stripped="$stripped $arch"
83 | fi
84 | done
85 | if [[ "$stripped" ]]; then
86 | echo "Stripped $binary of architectures:$stripped"
87 | fi
88 | }
89 |
90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
91 | wait
92 | fi
93 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests-resources.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
5 |
6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
7 | > "$RESOURCES_TO_COPY"
8 |
9 | XCASSET_FILES=()
10 |
11 | case "${TARGETED_DEVICE_FAMILY}" in
12 | 1,2)
13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
14 | ;;
15 | 1)
16 | TARGET_DEVICE_ARGS="--target-device iphone"
17 | ;;
18 | 2)
19 | TARGET_DEVICE_ARGS="--target-device ipad"
20 | ;;
21 | 3)
22 | TARGET_DEVICE_ARGS="--target-device tv"
23 | ;;
24 | *)
25 | TARGET_DEVICE_ARGS="--target-device mac"
26 | ;;
27 | esac
28 |
29 | install_resource()
30 | {
31 | if [[ "$1" = /* ]] ; then
32 | RESOURCE_PATH="$1"
33 | else
34 | RESOURCE_PATH="${PODS_ROOT}/$1"
35 | fi
36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then
37 | cat << EOM
38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
39 | EOM
40 | exit 1
41 | fi
42 | case $RESOURCE_PATH in
43 | *.storyboard)
44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}"
45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
46 | ;;
47 | *.xib)
48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}"
49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
50 | ;;
51 | *.framework)
52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
56 | ;;
57 | *.xcdatamodel)
58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\""
59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
60 | ;;
61 | *.xcdatamodeld)
62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\""
63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
64 | ;;
65 | *.xcmappingmodel)
66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\""
67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
68 | ;;
69 | *.xcassets)
70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH"
71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
72 | ;;
73 | *)
74 | echo "$RESOURCE_PATH"
75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY"
76 | ;;
77 | esac
78 | }
79 |
80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
85 | fi
86 | rm -f "$RESOURCES_TO_COPY"
87 |
88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
89 | then
90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets).
91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
92 | while read line; do
93 | if [[ $line != "${PODS_ROOT}*" ]]; then
94 | XCASSET_FILES+=("$line")
95 | fi
96 | done <<<"$OTHER_XCASSETS"
97 |
98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
99 | fi
100 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double Pods_ABExpandableView_TestsVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char Pods_ABExpandableView_TestsVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests.debug.xcconfig:
--------------------------------------------------------------------------------
1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ABExpandableView"
2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/ABExpandableView/ABExpandableView.framework/Headers"
5 | PODS_BUILD_DIR = $BUILD_DIR
6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}/Pods
8 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests.modulemap:
--------------------------------------------------------------------------------
1 | framework module Pods_ABExpandableView_Tests {
2 | umbrella header "Pods-ABExpandableView_Tests-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Example/Pods/Target Support Files/Pods-ABExpandableView_Tests/Pods-ABExpandableView_Tests.release.xcconfig:
--------------------------------------------------------------------------------
1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ABExpandableView"
2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/ABExpandableView/ABExpandableView.framework/Headers"
5 | PODS_BUILD_DIR = $BUILD_DIR
6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}/Pods
8 |
--------------------------------------------------------------------------------
/Example/Tests/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 |
--------------------------------------------------------------------------------
/Example/Tests/Tests.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import XCTest
3 | import ABExpandableView
4 |
5 | class Tests: XCTestCase {
6 |
7 | override func setUp() {
8 | super.setUp()
9 | // Put setup code here. This method is called before the invocation of each test method in the class.
10 | }
11 |
12 | override func tearDown() {
13 | // Put teardown code here. This method is called after the invocation of each test method in the class.
14 | super.tearDown()
15 | }
16 |
17 | func testExample() {
18 | // This is an example of a functional test case.
19 | XCTAssert(true, "Pass")
20 | }
21 |
22 | func testPerformanceExample() {
23 | // This is an example of a performance test case.
24 | self.measure() {
25 | // Put the code you want to measure the time of here.
26 | }
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2017 alicanbatur
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ABExpandableView
2 |
3 | [](https://travis-ci.org/alicanbatur/ABExpandableView)
4 | [](http://cocoapods.org/pods/ABExpandableView)
5 | [](http://cocoapods.org/pods/ABExpandableView)
6 | [](http://cocoapods.org/pods/ABExpandableView)
7 |
8 |
9 |
10 |
11 |
12 | ## Example
13 |
14 | To run the example project, clone the repo, and run `pod install` from the Example directory first. Then run `ABExpandableView.xcworkspace` which is under `/Example` folder.
15 |
16 | ## Requirements
17 | - Swift 4
18 | - Xcode 9
19 |
20 | ## Installation
21 |
22 | ABExpandableView is available through [CocoaPods](http://cocoapods.org). To install
23 | it, simply add the following line to your Podfile:
24 |
25 | ```ruby
26 | pod 'ABExpandableView'
27 | ```
28 | ## Usage
29 |
30 | First, import `ABExpandableView` to your project.
31 |
32 | You should have 2 kinds of model objects to use this view that one of them should be section and the other one should be row.
33 |
34 | Consider, Section and Row classes are your objects.
35 |
36 | ```swift
37 | class Section: SectionItem {
38 | var identifier: String!
39 | var name: String!
40 |
41 | var expanded: Bool = true
42 |
43 | var rows: [RowItem] = [RowItem]()
44 | var rawRows: [RowItem] = [RowItem]() {
45 | didSet {
46 | rows = rawRows
47 | }
48 | }
49 | var selectedRows: [RowItem] = [RowItem]()
50 | }
51 |
52 | class Row: RowItem {
53 | var identifier: String!
54 | var name: String!
55 | }
56 |
57 | class MockDataProvider {
58 |
59 | class func createMockData() -> [SectionItem] {
60 | var array = [SectionItem]()
61 |
62 | let izmir = City()
63 | izmir.identifier = "35"
64 | izmir.name = "İzmir"
65 | let bornova = Town(identifier: "1", name: "Bornova")
66 | let urla = Town(identifier: "2", name: "Urla")
67 | let konak = Town(identifier: "3", name: "Konak")
68 | let izmirRawRows = [bornova, urla, konak]
69 | izmir.rawRows = izmirRawRows
70 | array.append(izmir)
71 |
72 | let istanbul = City()
73 | istanbul.identifier = "34"
74 | istanbul.name = "İstanbul"
75 | let kadikoy = Town(identifier: "4", name: "Kadıköy")
76 | let maltepe = Town(identifier: "5", name: "Maltepe")
77 | let beykoz = Town(identifier: "6", name: "Beykoz")
78 | let istanbulRawRows = [kadikoy, maltepe, beykoz]
79 | istanbul.rawRows = istanbulRawRows
80 | array.append(istanbul)
81 |
82 | return array
83 | }
84 |
85 | }
86 | ```
87 |
88 | After you create your models, you should open ABExpandableView with injecting those model array.
89 |
90 | ```swift
91 | @IBAction func buttonTapped(_ sender: Any) {
92 | let cities = MockDataProvider.createMockData()
93 | let expandableSectionsViewModel = ExpandableSectionsViewModel(cities)
94 | let expandableSectionViewController = ExpandableSectionsViewController.newInstance(expandableSectionsViewModel)
95 | expandableSectionViewController.title = "Choose Town(s)"
96 | expandableSectionViewController.delegate = self
97 | self.navigationController?.pushViewController(expandableSectionViewController, animated: true)
98 | }
99 | ```
100 |
101 | Here, let ABExpandableView handle the rest.
102 |
103 | One last thing;
104 | You can get selected items using the delegation;
105 |
106 | ```swift
107 | func didSelectItems(_ items: [RowItem]) {
108 | let names = items.flatMap { $0.name }.joined(separator: ", ")
109 | // "Bornova, Kadıköy"
110 | }
111 | ```
112 |
113 | ## Author
114 |
115 | alicanbatur, alicanbatur@gmail.com
116 |
117 | ## License
118 |
119 | ABExpandableView is available under the MIT license. See the LICENSE file for more info.
120 |
--------------------------------------------------------------------------------
/_Pods.xcodeproj:
--------------------------------------------------------------------------------
1 | Example/Pods/Pods.xcodeproj
--------------------------------------------------------------------------------