├── .gitignore ├── .swift-version ├── .travis.yml ├── LICENSE ├── README.md ├── ReuseCellConfigure.podspec ├── ReuseCellConfigure └── ReuseCellConfigure.swift └── ReuseCellConfigureSample ├── Podfile ├── Podfile.lock ├── Pods ├── Local Podspecs │ └── ReuseCellConfigure.podspec.json ├── Manifest.lock ├── Pods.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── ReuseCellConfigure.xcscheme └── Target Support Files │ ├── Pods-ReuseCellConfigureSample │ ├── Info.plist │ ├── Pods-ReuseCellConfigureSample-acknowledgements.markdown │ ├── Pods-ReuseCellConfigureSample-acknowledgements.plist │ ├── Pods-ReuseCellConfigureSample-dummy.m │ ├── Pods-ReuseCellConfigureSample-frameworks.sh │ ├── Pods-ReuseCellConfigureSample-resources.sh │ ├── Pods-ReuseCellConfigureSample-umbrella.h │ ├── Pods-ReuseCellConfigureSample.debug.xcconfig │ ├── Pods-ReuseCellConfigureSample.modulemap │ └── Pods-ReuseCellConfigureSample.release.xcconfig │ └── ReuseCellConfigure │ ├── Info.plist │ ├── ReuseCellConfigure-dummy.m │ ├── ReuseCellConfigure-prefix.pch │ ├── ReuseCellConfigure-umbrella.h │ ├── ReuseCellConfigure.modulemap │ └── ReuseCellConfigure.xcconfig ├── ReuseCellConfigureSample.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── ReuseCellConfigureSample.xcworkspace └── contents.xcworkspacedata └── ReuseCellConfigureSample ├── AppDelegate.swift ├── Assets.xcassets └── AppIcon.appiconset │ └── Contents.json ├── Base.lproj ├── LaunchScreen.storyboard └── Main.storyboard ├── CollectionView ├── Cells │ ├── CollectionViewCellProtocol.swift │ ├── LeftCollectionViewCell.swift │ ├── LeftCollectionViewCell.xib │ ├── RightCollectionViewCell.swift │ └── RightCollectionViewCell.xib └── CollectionViewController.swift ├── Info.plist ├── TableView ├── Cells │ ├── LeftIconTableViewCell.swift │ ├── LeftIconTableViewCell.xib │ ├── RightIconTableViewCell.swift │ ├── RightIconTableViewCell.xib │ └── TableViewCellProtocol.swift └── TableViewController.swift └── ViewController.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 4.0 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | script: 12 | - set -o pipefail && xcodebuild test -workspace Example/ReuseCellConfigure.xcworkspace -scheme ReuseCellConfigure-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty 13 | - pod lib lint 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 suzuki-taiki 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 | # ReuseCellConfigure 2 | 3 | [![Platform](http://img.shields.io/badge/platform-ios-blue.svg?style=flat 4 | )](https://developer.apple.com/iphone/index.action) 5 | [![Language](http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat 6 | )](https://developer.apple.com/swift) 7 | [![Version](https://img.shields.io/cocoapods/v/ReuseCellConfigure.svg?style=flat)](http://cocoapods.org/pods/ReuseCellConfigure) 8 | [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 9 | [![License](https://img.shields.io/cocoapods/l/ReuseCellConfigure.svg?style=flat)](http://cocoapods.org/pods/ReuseCellConfigure) 10 | 11 | You can configure ReusableCell without casting! 12 | 13 | ## Usage 14 | 15 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 16 | 17 | If you install from pod, you have to write `import ReuseCellConfigure`. 18 | 19 | ```swift 20 | // LeftIconTableViewCell.swift 21 | class LeftIconTableViewCell: UITableViewCell, ReusableViewProtocol { 22 | typealias RegisterType = RegisterNib 23 | } 24 | 25 | // ViewController.swift 26 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 27 | let cell: UITableViewCell? 28 | let alphabet = String(describing: UnicodeScalar("A".unicodeScalars.first!.value + UInt32(indexPath.row))!) 29 | switch indexPath.row % 2 { 30 | case 0: 31 | cell = tableView.dequeue(with: LeftIconTableViewCell.self) { cell in 32 | cell.alphabetLabel.text = alphabet 33 | cell.randomBackgoundColor() 34 | } 35 | case 1: 36 | cell = tableView.dequeue(with: RightIconTableViewCell.self) { cell in 37 | cell.alphabetLabel.text = alphabet 38 | } 39 | default: 40 | cell = tableView.dequeueReusableCell(withIdentifier: "UITableViewCell") 41 | } 42 | return cell! 43 | } 44 | ``` 45 | 46 | ```swift 47 | // ReusableHeaderView.swift 48 | class LeftIconTableViewCell: UICollectionReusableView, ReusableViewProtocol { 49 | typealias RegisterType = RegisterClass 50 | } 51 | 52 | // ViewController.swift 53 | func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView { 54 | let reusableView: UICollectionReusableView? = nil 55 | switch UICollectionView.ElementKind(rawValue: kind) { 56 | case .Some(.Header): 57 | return collectionView.dequeue(with: ReusableHeaderView.self, of: .Header, for: indexPath) { view in 58 | view.backgroundColor = .redColor() 59 | } 60 | case .Some(.Footer): 61 | return collectionView.dequeue(with: ReusableHeaderView.self, of: .Footer, for: indexPath) { view in 62 | view.backgroundColor = .blueColor() 63 | } 64 | default: 65 | return reusableView 66 | } 67 | } 68 | ``` 69 | 70 | ## Requirements 71 | 72 | - Xcode 9.1 or greater 73 | - iOS 8.0 or greater 74 | 75 | ## Installation 76 | 77 | #### CocoaPods 78 | 79 | ReuseCellConfigure is available through [CocoaPods](http://cocoapods.org). To install 80 | it, simply add the following line to your Podfile: 81 | 82 | ```ruby 83 | pod "ReuseCellConfigure" 84 | ``` 85 | 86 | #### Carthage 87 | 88 | If you’re using [Carthage](https://github.com/Carthage/Carthage), simply add 89 | ReuseCellConfigure to your `Cartfile`: 90 | 91 | ``` 92 | github "marty-suzuki/ReuseCellConfigure" 93 | ``` 94 | Make sure to add `ReuseCellConfigure.framework` to "Linked Frameworks and Libraries" and "copy-frameworks" Build Phases. 95 | 96 | ## Author 97 | 98 | Taiki Suzuki, s1180183@gmail.com 99 | 100 | ## License 101 | 102 | ReuseCellConfigure is available under the MIT license. See the LICENSE file for more info. 103 | -------------------------------------------------------------------------------- /ReuseCellConfigure.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint ReuseCellConfigure.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 = "ReuseCellConfigure" 11 | s.version = "0.4.0" 12 | s.summary = "You can configure ReusableCell without casting!" 13 | 14 | s.homepage = "https://github.com/marty-suzuki/ReuseCellConfigure" 15 | s.license = 'MIT' 16 | s.author = { "Taiki Suzuki" => "s1180183@gmail.com" } 17 | s.source = { :git => "https://github.com/marty-suzuki/ReuseCellConfigure.git", :tag => s.version.to_s } 18 | s.social_media_url = 'https://twitter.com/marty_suzuki' 19 | 20 | s.platform = :ios, '8.0' 21 | s.requires_arc = true 22 | 23 | s.source_files = 'ReuseCellConfigure/*.{swift}' 24 | #s.resource_bundles = { 25 | # 'ReuseCellConfigure' => ['Pod/Assets/*.png'] 26 | #} 27 | 28 | # s.public_header_files = 'Pod/Classes/**/*.h' 29 | s.frameworks = 'UIKit' 30 | # s.dependency 'AFNetworking', '~> 2.3' 31 | end 32 | -------------------------------------------------------------------------------- /ReuseCellConfigure/ReuseCellConfigure.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ReuseCellConfigure.swift 3 | // ReuseCellConfigure 4 | // 5 | // Created by Taiki Suzuki on 2016/01/02. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | //MARK: - ReusableViewProtocol 12 | public protocol ReusableViewRegisterType {} 13 | public enum RegisterNib: ReusableViewRegisterType {} 14 | public enum RegisterClass: ReusableViewRegisterType {} 15 | 16 | public protocol ReusableViewProtocol { 17 | associatedtype RegisterType: ReusableViewRegisterType 18 | static var identifier: String { get } 19 | static var nib: UINib? { get } 20 | } 21 | 22 | extension ReusableViewProtocol { 23 | public static var identifier: String { 24 | return String(describing: self) 25 | } 26 | } 27 | 28 | extension ReusableViewProtocol where RegisterType == RegisterNib { 29 | public static var nib: UINib? { 30 | return UINib(nibName: identifier, bundle: nil) 31 | } 32 | } 33 | 34 | extension ReusableViewProtocol where RegisterType == RegisterClass { 35 | public static var nib: UINib? { 36 | return nil 37 | } 38 | } 39 | 40 | //MARK: - UITableView Extension 41 | public extension UITableView { 42 | public typealias ReusableCell = ReusableViewProtocol & UITableViewCell 43 | public typealias ReusableView = ReusableViewProtocol & UITableViewHeaderFooterView 44 | 45 | public func register(with type: T.Type) where T.RegisterType == RegisterNib { 46 | register(T.nib, forCellReuseIdentifier: T.identifier) 47 | } 48 | 49 | public func register(with type: T.Type) where T.RegisterType == RegisterClass { 50 | register(T.self, forCellReuseIdentifier: T.identifier) 51 | } 52 | 53 | public func register(with type: T.Type) where T.RegisterType == RegisterNib { 54 | register(T.nib, forCellReuseIdentifier: T.identifier) 55 | } 56 | 57 | public func register(with type: T.Type) where T.RegisterType == RegisterClass { 58 | register(T.self, forCellReuseIdentifier: T.identifier) 59 | } 60 | 61 | public func dequeue(with type: T.Type, configure: (T) -> Void) -> UITableViewCell? { 62 | let cell = dequeueReusableCell(withIdentifier: T.identifier) 63 | if let cell = cell as? T { 64 | configure(cell) 65 | } 66 | return cell 67 | } 68 | 69 | public func dequeue(with type: T.Type, for indexPath: IndexPath, configure: (T) -> Void) -> UITableViewCell { 70 | let reusableCell = dequeueReusableCell(withIdentifier: T.identifier, for: indexPath) 71 | guard let cell = reusableCell as? T else { return reusableCell } 72 | configure(cell) 73 | return cell 74 | } 75 | 76 | public func dequeue(with type: T.Type, configure: (T) -> Void) -> UITableViewHeaderFooterView? { 77 | let view = dequeueReusableHeaderFooterView(withIdentifier: T.identifier) 78 | if let view = view as? T { 79 | configure(view) 80 | } 81 | return view 82 | } 83 | } 84 | 85 | //MARK: - UICollectionView Extension 86 | public extension UICollectionView { 87 | public typealias ReusableCell = ReusableViewProtocol & UICollectionViewCell 88 | public typealias ReusableView = ReusableViewProtocol & UICollectionReusableView 89 | 90 | public enum ElementKind { 91 | case header 92 | case footer 93 | 94 | public init?(rawValue: String) { 95 | switch rawValue { 96 | case UICollectionElementKindSectionHeader: self = .header 97 | case UICollectionElementKindSectionFooter: self = .footer 98 | default: return nil 99 | } 100 | } 101 | 102 | public var value: String { 103 | switch self { 104 | case .header: return UICollectionElementKindSectionHeader 105 | case .footer: return UICollectionElementKindSectionFooter 106 | } 107 | } 108 | } 109 | 110 | public func register(with type: T.Type) where T.RegisterType == RegisterNib { 111 | register(T.nib, forCellWithReuseIdentifier: T.identifier) 112 | } 113 | 114 | public func register(with type: T.Type) where T.RegisterType == RegisterClass { 115 | register(T.self, forCellWithReuseIdentifier: T.identifier) 116 | } 117 | 118 | public func register(with type: T.Type, of kind: ElementKind) where T.RegisterType == RegisterNib { 119 | register(T.nib, forSupplementaryViewOfKind: kind.value, withReuseIdentifier: T.identifier) 120 | } 121 | 122 | public func register(with type: T.Type, of kind: ElementKind) where T.RegisterType == RegisterClass { 123 | register(T.self, forSupplementaryViewOfKind: kind.value, withReuseIdentifier: T.identifier) 124 | } 125 | 126 | public func dequeue(with type: T.Type, for indexPath: IndexPath, configure: (T) -> Void) -> UICollectionViewCell { 127 | let cell = dequeueReusableCell(withReuseIdentifier: T.identifier, for: indexPath) 128 | if let cell = cell as? T { 129 | configure(cell) 130 | } 131 | return cell 132 | } 133 | 134 | public func dequeue(with type: T.Type, of elementKind: ElementKind, for indexPath: IndexPath, configure: (T) -> Void) -> UICollectionReusableView { 135 | let view = dequeueReusableSupplementaryView(ofKind: elementKind.value, withReuseIdentifier: T.identifier, for: indexPath) 136 | if let view = view as? T { 137 | configure(view) 138 | } 139 | return view 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | platform :ios, '8.0' 3 | # Uncomment this line if you're using Swift 4 | use_frameworks! 5 | 6 | target 'ReuseCellConfigureSample' do 7 | pod 'ReuseCellConfigure', :path => '../' 8 | end 9 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ReuseCellConfigure (0.3.0) 3 | 4 | DEPENDENCIES: 5 | - ReuseCellConfigure (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ReuseCellConfigure: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ReuseCellConfigure: fb72675eee381b0158066d1fd52db26ade5bc956 13 | 14 | PODFILE CHECKSUM: 845a989830855f545c6c6b16d5cb8af1b43d3beb 15 | 16 | COCOAPODS: 1.1.0.rc.2 17 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Local Podspecs/ReuseCellConfigure.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReuseCellConfigure", 3 | "version": "0.3.0", 4 | "summary": "You can configure ReusableCell without casting!", 5 | "homepage": "https://github.com/marty-suzuki/ReuseCellConfigure", 6 | "license": "MIT", 7 | "authors": { 8 | "Taiki Suzuki": "s1180183@gmail.com" 9 | }, 10 | "source": { 11 | "git": "https://github.com/marty-suzuki/ReuseCellConfigure.git", 12 | "tag": "0.3.0" 13 | }, 14 | "social_media_url": "https://twitter.com/marty_suzuki", 15 | "platforms": { 16 | "ios": "8.0" 17 | }, 18 | "requires_arc": true, 19 | "source_files": "ReuseCellConfigure/*.{swift}", 20 | "frameworks": "UIKit" 21 | } 22 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ReuseCellConfigure (0.3.0) 3 | 4 | DEPENDENCIES: 5 | - ReuseCellConfigure (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ReuseCellConfigure: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ReuseCellConfigure: fb72675eee381b0158066d1fd52db26ade5bc956 13 | 14 | PODFILE CHECKSUM: 845a989830855f545c6c6b16d5cb8af1b43d3beb 15 | 16 | COCOAPODS: 1.1.0.rc.2 17 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/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 | 125B653C19DE58A4F83D29C31CB74C92 /* Pods-ReuseCellConfigureSample-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 56B136BC712425331ABB9B58D9097E32 /* Pods-ReuseCellConfigureSample-dummy.m */; }; 11 | 12A6F1F4B130F5A3479951AAACB0C15E /* ReuseCellConfigure-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A1267C3E00FCC93F7C48C39338EA7AF1 /* ReuseCellConfigure-dummy.m */; }; 12 | 411DB1FB6BA3E43AD5A579BADFF8C7D5 /* ReuseCellConfigure-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = CAB48F283EE5F7A981DD007D2600C097 /* ReuseCellConfigure-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 85FB8E10D1E0BF7D28E82F927E17213D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A2A6FF208CEC4C2861F1E9D42D651453 /* Foundation.framework */; }; 14 | C2CDE478A20B75CBD90D322863874864 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A2A6FF208CEC4C2861F1E9D42D651453 /* Foundation.framework */; }; 15 | C4BB1B1E2DF2A8F03D363AF6E0832A1E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E86668F20F252C440D1015B816BE59C5 /* UIKit.framework */; }; 16 | C550148CA0DBA438E34D8509B14B1E16 /* Pods-ReuseCellConfigureSample-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 17C35AA74FD2F70A26AD3EF014C4CAAA /* Pods-ReuseCellConfigureSample-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | EA60FB7E8EEE81E042DA6ED6E426D4EE /* ReuseCellConfigure.swift in Sources */ = {isa = PBXBuildFile; fileRef = 058BC1774C22B81F520AB94C96CA78C7 /* ReuseCellConfigure.swift */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 1B401D88AB4594D0CD3674C3E369F0F3 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 54CA48FFD556B4B09DBB50F338DF69A8; 26 | remoteInfo = ReuseCellConfigure; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 058BC1774C22B81F520AB94C96CA78C7 /* ReuseCellConfigure.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ReuseCellConfigure.swift; sourceTree = ""; }; 32 | 0B17A66D78210B4C863F448ACEA49EC1 /* ReuseCellConfigure-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ReuseCellConfigure-prefix.pch"; sourceTree = ""; }; 33 | 12A2E61F7945ACE77223210F4127DBAB /* Pods-ReuseCellConfigureSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ReuseCellConfigureSample.debug.xcconfig"; sourceTree = ""; }; 34 | 17C35AA74FD2F70A26AD3EF014C4CAAA /* Pods-ReuseCellConfigureSample-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ReuseCellConfigureSample-umbrella.h"; sourceTree = ""; }; 35 | 1D3B6794D04B5A891568D01366EAE409 /* Pods-ReuseCellConfigureSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ReuseCellConfigureSample.release.xcconfig"; sourceTree = ""; }; 36 | 272A5534D2403B755672FA7C8325438A /* ReuseCellConfigure.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = ReuseCellConfigure.modulemap; sourceTree = ""; }; 37 | 353B3BC980730DEFBC485BED04D93F93 /* Pods-ReuseCellConfigureSample.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-ReuseCellConfigureSample.modulemap"; sourceTree = ""; }; 38 | 56B136BC712425331ABB9B58D9097E32 /* Pods-ReuseCellConfigureSample-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ReuseCellConfigureSample-dummy.m"; sourceTree = ""; }; 39 | 5F249F1B82AF87A5580041F284765A17 /* Pods-ReuseCellConfigureSample-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ReuseCellConfigureSample-resources.sh"; sourceTree = ""; }; 40 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 41 | 98AB056C8E742C1594AD3D54BA26A893 /* ReuseCellConfigure.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ReuseCellConfigure.xcconfig; sourceTree = ""; }; 42 | A1267C3E00FCC93F7C48C39338EA7AF1 /* ReuseCellConfigure-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ReuseCellConfigure-dummy.m"; sourceTree = ""; }; 43 | A2A6FF208CEC4C2861F1E9D42D651453 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 44 | C2D6F0DBEC7254993C8931B058DCAB9F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | C5112952A4706223BBAEF2D66501FAE7 /* Pods-ReuseCellConfigureSample-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ReuseCellConfigureSample-frameworks.sh"; sourceTree = ""; }; 46 | C9CFDE43B4D9333E6DD2D3B969A81F33 /* Pods-ReuseCellConfigureSample-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ReuseCellConfigureSample-acknowledgements.plist"; sourceTree = ""; }; 47 | CAB48F283EE5F7A981DD007D2600C097 /* ReuseCellConfigure-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ReuseCellConfigure-umbrella.h"; sourceTree = ""; }; 48 | CB571C6E4424AE06B2E6646A857A59D5 /* ReuseCellConfigure.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ReuseCellConfigure.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | DB4CF71F1CE9818C9B7CD54B2C262CD6 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | E86668F20F252C440D1015B816BE59C5 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 51 | EE3501A511E57E41515B23DE9211B30D /* Pods_ReuseCellConfigureSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ReuseCellConfigureSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | FCFA681EDD01448DA940CBA32B7912CF /* Pods-ReuseCellConfigureSample-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ReuseCellConfigureSample-acknowledgements.markdown"; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 5CFFF0F1747D6B9FC4C73EE53BF98C08 /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 85FB8E10D1E0BF7D28E82F927E17213D /* Foundation.framework in Frameworks */, 61 | C4BB1B1E2DF2A8F03D363AF6E0832A1E /* UIKit.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | AD938E563B82BFD28D1BD1DDAA66597E /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | C2CDE478A20B75CBD90D322863874864 /* Foundation.framework in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | /* End PBXFrameworksBuildPhase section */ 74 | 75 | /* Begin PBXGroup section */ 76 | 0423655209335B732001ACA39E59BC51 /* Products */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | EE3501A511E57E41515B23DE9211B30D /* Pods_ReuseCellConfigureSample.framework */, 80 | CB571C6E4424AE06B2E6646A857A59D5 /* ReuseCellConfigure.framework */, 81 | ); 82 | name = Products; 83 | sourceTree = ""; 84 | }; 85 | 190F3250CA27A8695DBB5D1605EC6B03 /* Pods-ReuseCellConfigureSample */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | DB4CF71F1CE9818C9B7CD54B2C262CD6 /* Info.plist */, 89 | 353B3BC980730DEFBC485BED04D93F93 /* Pods-ReuseCellConfigureSample.modulemap */, 90 | FCFA681EDD01448DA940CBA32B7912CF /* Pods-ReuseCellConfigureSample-acknowledgements.markdown */, 91 | C9CFDE43B4D9333E6DD2D3B969A81F33 /* Pods-ReuseCellConfigureSample-acknowledgements.plist */, 92 | 56B136BC712425331ABB9B58D9097E32 /* Pods-ReuseCellConfigureSample-dummy.m */, 93 | C5112952A4706223BBAEF2D66501FAE7 /* Pods-ReuseCellConfigureSample-frameworks.sh */, 94 | 5F249F1B82AF87A5580041F284765A17 /* Pods-ReuseCellConfigureSample-resources.sh */, 95 | 17C35AA74FD2F70A26AD3EF014C4CAAA /* Pods-ReuseCellConfigureSample-umbrella.h */, 96 | 12A2E61F7945ACE77223210F4127DBAB /* Pods-ReuseCellConfigureSample.debug.xcconfig */, 97 | 1D3B6794D04B5A891568D01366EAE409 /* Pods-ReuseCellConfigureSample.release.xcconfig */, 98 | ); 99 | name = "Pods-ReuseCellConfigureSample"; 100 | path = "Target Support Files/Pods-ReuseCellConfigureSample"; 101 | sourceTree = ""; 102 | }; 103 | 20846705573EE810C36B0E4B62C48459 /* ReuseCellConfigure */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 632C808D8ABF8FD15BA9D35C133C8B47 /* ReuseCellConfigure */, 107 | EF03FC4E8912E33558BB142DA2CF66D8 /* Support Files */, 108 | ); 109 | name = ReuseCellConfigure; 110 | path = ../..; 111 | sourceTree = ""; 112 | }; 113 | 2F8275F042EE4F164F87DC561474B114 /* Targets Support Files */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 190F3250CA27A8695DBB5D1605EC6B03 /* Pods-ReuseCellConfigureSample */, 117 | ); 118 | name = "Targets Support Files"; 119 | sourceTree = ""; 120 | }; 121 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | F302CD3B306AF1ED96B9AF31FCDBC26C /* iOS */, 125 | ); 126 | name = Frameworks; 127 | sourceTree = ""; 128 | }; 129 | 632C808D8ABF8FD15BA9D35C133C8B47 /* ReuseCellConfigure */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 058BC1774C22B81F520AB94C96CA78C7 /* ReuseCellConfigure.swift */, 133 | ); 134 | path = ReuseCellConfigure; 135 | sourceTree = ""; 136 | }; 137 | 7DB346D0F39D3F0E887471402A8071AB = { 138 | isa = PBXGroup; 139 | children = ( 140 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 141 | 9457A10F4C5EA5A13B99ED4C46B71740 /* Development Pods */, 142 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */, 143 | 0423655209335B732001ACA39E59BC51 /* Products */, 144 | 2F8275F042EE4F164F87DC561474B114 /* Targets Support Files */, 145 | ); 146 | sourceTree = ""; 147 | }; 148 | 9457A10F4C5EA5A13B99ED4C46B71740 /* Development Pods */ = { 149 | isa = PBXGroup; 150 | children = ( 151 | 20846705573EE810C36B0E4B62C48459 /* ReuseCellConfigure */, 152 | ); 153 | name = "Development Pods"; 154 | sourceTree = ""; 155 | }; 156 | EF03FC4E8912E33558BB142DA2CF66D8 /* Support Files */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | C2D6F0DBEC7254993C8931B058DCAB9F /* Info.plist */, 160 | 272A5534D2403B755672FA7C8325438A /* ReuseCellConfigure.modulemap */, 161 | 98AB056C8E742C1594AD3D54BA26A893 /* ReuseCellConfigure.xcconfig */, 162 | A1267C3E00FCC93F7C48C39338EA7AF1 /* ReuseCellConfigure-dummy.m */, 163 | 0B17A66D78210B4C863F448ACEA49EC1 /* ReuseCellConfigure-prefix.pch */, 164 | CAB48F283EE5F7A981DD007D2600C097 /* ReuseCellConfigure-umbrella.h */, 165 | ); 166 | name = "Support Files"; 167 | path = "ReuseCellConfigureSample/Pods/Target Support Files/ReuseCellConfigure"; 168 | sourceTree = ""; 169 | }; 170 | F302CD3B306AF1ED96B9AF31FCDBC26C /* iOS */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | A2A6FF208CEC4C2861F1E9D42D651453 /* Foundation.framework */, 174 | E86668F20F252C440D1015B816BE59C5 /* UIKit.framework */, 175 | ); 176 | name = iOS; 177 | sourceTree = ""; 178 | }; 179 | /* End PBXGroup section */ 180 | 181 | /* Begin PBXHeadersBuildPhase section */ 182 | 5CA60DF26B89CF43ABF15EAE94999FCA /* Headers */ = { 183 | isa = PBXHeadersBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 411DB1FB6BA3E43AD5A579BADFF8C7D5 /* ReuseCellConfigure-umbrella.h in Headers */, 187 | ); 188 | runOnlyForDeploymentPostprocessing = 0; 189 | }; 190 | C5931F386A95D76A6659C302A7EB67C4 /* Headers */ = { 191 | isa = PBXHeadersBuildPhase; 192 | buildActionMask = 2147483647; 193 | files = ( 194 | C550148CA0DBA438E34D8509B14B1E16 /* Pods-ReuseCellConfigureSample-umbrella.h in Headers */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXHeadersBuildPhase section */ 199 | 200 | /* Begin PBXNativeTarget section */ 201 | 46E1B0384F071528F6AB9AF340599BB2 /* Pods-ReuseCellConfigureSample */ = { 202 | isa = PBXNativeTarget; 203 | buildConfigurationList = 402EAFFF7F0BE0CE1E01DFC7460E341C /* Build configuration list for PBXNativeTarget "Pods-ReuseCellConfigureSample" */; 204 | buildPhases = ( 205 | 001AE28FBB8A74675817F6B3ED66D424 /* Sources */, 206 | AD938E563B82BFD28D1BD1DDAA66597E /* Frameworks */, 207 | C5931F386A95D76A6659C302A7EB67C4 /* Headers */, 208 | ); 209 | buildRules = ( 210 | ); 211 | dependencies = ( 212 | E4A1EC87A76907AAC298D2E5C7DD1009 /* PBXTargetDependency */, 213 | ); 214 | name = "Pods-ReuseCellConfigureSample"; 215 | productName = "Pods-ReuseCellConfigureSample"; 216 | productReference = EE3501A511E57E41515B23DE9211B30D /* Pods_ReuseCellConfigureSample.framework */; 217 | productType = "com.apple.product-type.framework"; 218 | }; 219 | 54CA48FFD556B4B09DBB50F338DF69A8 /* ReuseCellConfigure */ = { 220 | isa = PBXNativeTarget; 221 | buildConfigurationList = CD250E582608B15D2E9A0AF3F25EC8FD /* Build configuration list for PBXNativeTarget "ReuseCellConfigure" */; 222 | buildPhases = ( 223 | DAB8514F7E5151BE2883B0AC1999670D /* Sources */, 224 | 5CFFF0F1747D6B9FC4C73EE53BF98C08 /* Frameworks */, 225 | 5CA60DF26B89CF43ABF15EAE94999FCA /* Headers */, 226 | ); 227 | buildRules = ( 228 | ); 229 | dependencies = ( 230 | ); 231 | name = ReuseCellConfigure; 232 | productName = ReuseCellConfigure; 233 | productReference = CB571C6E4424AE06B2E6646A857A59D5 /* ReuseCellConfigure.framework */; 234 | productType = "com.apple.product-type.framework"; 235 | }; 236 | /* End PBXNativeTarget section */ 237 | 238 | /* Begin PBXProject section */ 239 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 240 | isa = PBXProject; 241 | attributes = { 242 | LastSwiftUpdateCheck = 0730; 243 | LastUpgradeCheck = 0700; 244 | }; 245 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 246 | compatibilityVersion = "Xcode 3.2"; 247 | developmentRegion = English; 248 | hasScannedForEncodings = 0; 249 | knownRegions = ( 250 | en, 251 | ); 252 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 253 | productRefGroup = 0423655209335B732001ACA39E59BC51 /* Products */; 254 | projectDirPath = ""; 255 | projectRoot = ""; 256 | targets = ( 257 | 46E1B0384F071528F6AB9AF340599BB2 /* Pods-ReuseCellConfigureSample */, 258 | 54CA48FFD556B4B09DBB50F338DF69A8 /* ReuseCellConfigure */, 259 | ); 260 | }; 261 | /* End PBXProject section */ 262 | 263 | /* Begin PBXSourcesBuildPhase section */ 264 | 001AE28FBB8A74675817F6B3ED66D424 /* Sources */ = { 265 | isa = PBXSourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | 125B653C19DE58A4F83D29C31CB74C92 /* Pods-ReuseCellConfigureSample-dummy.m in Sources */, 269 | ); 270 | runOnlyForDeploymentPostprocessing = 0; 271 | }; 272 | DAB8514F7E5151BE2883B0AC1999670D /* Sources */ = { 273 | isa = PBXSourcesBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | 12A6F1F4B130F5A3479951AAACB0C15E /* ReuseCellConfigure-dummy.m in Sources */, 277 | EA60FB7E8EEE81E042DA6ED6E426D4EE /* ReuseCellConfigure.swift in Sources */, 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | }; 281 | /* End PBXSourcesBuildPhase section */ 282 | 283 | /* Begin PBXTargetDependency section */ 284 | E4A1EC87A76907AAC298D2E5C7DD1009 /* PBXTargetDependency */ = { 285 | isa = PBXTargetDependency; 286 | name = ReuseCellConfigure; 287 | target = 54CA48FFD556B4B09DBB50F338DF69A8 /* ReuseCellConfigure */; 288 | targetProxy = 1B401D88AB4594D0CD3674C3E369F0F3 /* PBXContainerItemProxy */; 289 | }; 290 | /* End PBXTargetDependency section */ 291 | 292 | /* Begin XCBuildConfiguration section */ 293 | 015A368F878AC3E2CEAE21DDE8026304 /* Debug */ = { 294 | isa = XCBuildConfiguration; 295 | buildSettings = { 296 | ALWAYS_SEARCH_USER_PATHS = NO; 297 | CLANG_ANALYZER_NONNULL = YES; 298 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 299 | CLANG_CXX_LIBRARY = "libc++"; 300 | CLANG_ENABLE_MODULES = YES; 301 | CLANG_ENABLE_OBJC_ARC = YES; 302 | CLANG_WARN_BOOL_CONVERSION = YES; 303 | CLANG_WARN_CONSTANT_CONVERSION = YES; 304 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 305 | CLANG_WARN_EMPTY_BODY = YES; 306 | CLANG_WARN_ENUM_CONVERSION = YES; 307 | CLANG_WARN_INT_CONVERSION = YES; 308 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 309 | CLANG_WARN_UNREACHABLE_CODE = YES; 310 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 311 | CODE_SIGNING_REQUIRED = NO; 312 | COPY_PHASE_STRIP = NO; 313 | ENABLE_TESTABILITY = YES; 314 | GCC_C_LANGUAGE_STANDARD = gnu99; 315 | GCC_DYNAMIC_NO_PIC = NO; 316 | GCC_OPTIMIZATION_LEVEL = 0; 317 | GCC_PREPROCESSOR_DEFINITIONS = ( 318 | "POD_CONFIGURATION_DEBUG=1", 319 | "DEBUG=1", 320 | "$(inherited)", 321 | ); 322 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 323 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 324 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 325 | GCC_WARN_UNDECLARED_SELECTOR = YES; 326 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 327 | GCC_WARN_UNUSED_FUNCTION = YES; 328 | GCC_WARN_UNUSED_VARIABLE = YES; 329 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 330 | ONLY_ACTIVE_ARCH = YES; 331 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 332 | STRIP_INSTALLED_PRODUCT = NO; 333 | SYMROOT = "${SRCROOT}/../build"; 334 | }; 335 | name = Debug; 336 | }; 337 | 44CDBB6D11DE06DB64D6268622BDC47E /* Release */ = { 338 | isa = XCBuildConfiguration; 339 | buildSettings = { 340 | ALWAYS_SEARCH_USER_PATHS = NO; 341 | CLANG_ANALYZER_NONNULL = YES; 342 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 343 | CLANG_CXX_LIBRARY = "libc++"; 344 | CLANG_ENABLE_MODULES = YES; 345 | CLANG_ENABLE_OBJC_ARC = YES; 346 | CLANG_WARN_BOOL_CONVERSION = YES; 347 | CLANG_WARN_CONSTANT_CONVERSION = YES; 348 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 349 | CLANG_WARN_EMPTY_BODY = YES; 350 | CLANG_WARN_ENUM_CONVERSION = YES; 351 | CLANG_WARN_INT_CONVERSION = YES; 352 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 353 | CLANG_WARN_UNREACHABLE_CODE = YES; 354 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 355 | CODE_SIGNING_REQUIRED = NO; 356 | COPY_PHASE_STRIP = YES; 357 | ENABLE_NS_ASSERTIONS = NO; 358 | GCC_C_LANGUAGE_STANDARD = gnu99; 359 | GCC_PREPROCESSOR_DEFINITIONS = ( 360 | "POD_CONFIGURATION_RELEASE=1", 361 | "$(inherited)", 362 | ); 363 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 364 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 365 | GCC_WARN_UNDECLARED_SELECTOR = YES; 366 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 367 | GCC_WARN_UNUSED_FUNCTION = YES; 368 | GCC_WARN_UNUSED_VARIABLE = YES; 369 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 370 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 371 | STRIP_INSTALLED_PRODUCT = NO; 372 | SYMROOT = "${SRCROOT}/../build"; 373 | VALIDATE_PRODUCT = YES; 374 | }; 375 | name = Release; 376 | }; 377 | 7189367AC9D670735F564C65928E9B35 /* Release */ = { 378 | isa = XCBuildConfiguration; 379 | baseConfigurationReference = 1D3B6794D04B5A891568D01366EAE409 /* Pods-ReuseCellConfigureSample.release.xcconfig */; 380 | buildSettings = { 381 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 382 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 383 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 384 | CURRENT_PROJECT_VERSION = 1; 385 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 386 | DEFINES_MODULE = YES; 387 | DYLIB_COMPATIBILITY_VERSION = 1; 388 | DYLIB_CURRENT_VERSION = 1; 389 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 390 | ENABLE_STRICT_OBJC_MSGSEND = YES; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | INFOPLIST_FILE = "Target Support Files/Pods-ReuseCellConfigureSample/Info.plist"; 393 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 394 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 395 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 396 | MACH_O_TYPE = staticlib; 397 | MODULEMAP_FILE = "Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample.modulemap"; 398 | MTL_ENABLE_DEBUG_INFO = NO; 399 | OTHER_LDFLAGS = ""; 400 | OTHER_LIBTOOLFLAGS = ""; 401 | PODS_ROOT = "$(SRCROOT)"; 402 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 403 | PRODUCT_NAME = Pods_ReuseCellConfigureSample; 404 | SDKROOT = iphoneos; 405 | SKIP_INSTALL = YES; 406 | TARGETED_DEVICE_FAMILY = "1,2"; 407 | VERSIONING_SYSTEM = "apple-generic"; 408 | VERSION_INFO_PREFIX = ""; 409 | }; 410 | name = Release; 411 | }; 412 | 76C24E2412C330CFF62BC5AEF3FAF268 /* Release */ = { 413 | isa = XCBuildConfiguration; 414 | baseConfigurationReference = 98AB056C8E742C1594AD3D54BA26A893 /* ReuseCellConfigure.xcconfig */; 415 | buildSettings = { 416 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 418 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 419 | CURRENT_PROJECT_VERSION = 1; 420 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 421 | DEFINES_MODULE = YES; 422 | DYLIB_COMPATIBILITY_VERSION = 1; 423 | DYLIB_CURRENT_VERSION = 1; 424 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | GCC_NO_COMMON_BLOCKS = YES; 427 | GCC_PREFIX_HEADER = "Target Support Files/ReuseCellConfigure/ReuseCellConfigure-prefix.pch"; 428 | INFOPLIST_FILE = "Target Support Files/ReuseCellConfigure/Info.plist"; 429 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 431 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 432 | MODULEMAP_FILE = "Target Support Files/ReuseCellConfigure/ReuseCellConfigure.modulemap"; 433 | MTL_ENABLE_DEBUG_INFO = NO; 434 | PRODUCT_NAME = ReuseCellConfigure; 435 | SDKROOT = iphoneos; 436 | SKIP_INSTALL = YES; 437 | SWIFT_VERSION = 3.0; 438 | TARGETED_DEVICE_FAMILY = "1,2"; 439 | VERSIONING_SYSTEM = "apple-generic"; 440 | VERSION_INFO_PREFIX = ""; 441 | }; 442 | name = Release; 443 | }; 444 | A67B8EF6DE9C94533DD02DD8CD302A65 /* Debug */ = { 445 | isa = XCBuildConfiguration; 446 | baseConfigurationReference = 12A2E61F7945ACE77223210F4127DBAB /* Pods-ReuseCellConfigureSample.debug.xcconfig */; 447 | buildSettings = { 448 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 449 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 450 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 451 | CURRENT_PROJECT_VERSION = 1; 452 | DEBUG_INFORMATION_FORMAT = dwarf; 453 | DEFINES_MODULE = YES; 454 | DYLIB_COMPATIBILITY_VERSION = 1; 455 | DYLIB_CURRENT_VERSION = 1; 456 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 457 | ENABLE_STRICT_OBJC_MSGSEND = YES; 458 | GCC_NO_COMMON_BLOCKS = YES; 459 | INFOPLIST_FILE = "Target Support Files/Pods-ReuseCellConfigureSample/Info.plist"; 460 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 461 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 462 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 463 | MACH_O_TYPE = staticlib; 464 | MODULEMAP_FILE = "Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample.modulemap"; 465 | MTL_ENABLE_DEBUG_INFO = YES; 466 | OTHER_LDFLAGS = ""; 467 | OTHER_LIBTOOLFLAGS = ""; 468 | PODS_ROOT = "$(SRCROOT)"; 469 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 470 | PRODUCT_NAME = Pods_ReuseCellConfigureSample; 471 | SDKROOT = iphoneos; 472 | SKIP_INSTALL = YES; 473 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 474 | TARGETED_DEVICE_FAMILY = "1,2"; 475 | VERSIONING_SYSTEM = "apple-generic"; 476 | VERSION_INFO_PREFIX = ""; 477 | }; 478 | name = Debug; 479 | }; 480 | EF7B6984D9586058BDEDFFB6573C68A3 /* Debug */ = { 481 | isa = XCBuildConfiguration; 482 | baseConfigurationReference = 98AB056C8E742C1594AD3D54BA26A893 /* ReuseCellConfigure.xcconfig */; 483 | buildSettings = { 484 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 485 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 486 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 487 | CURRENT_PROJECT_VERSION = 1; 488 | DEBUG_INFORMATION_FORMAT = dwarf; 489 | DEFINES_MODULE = YES; 490 | DYLIB_COMPATIBILITY_VERSION = 1; 491 | DYLIB_CURRENT_VERSION = 1; 492 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 493 | ENABLE_STRICT_OBJC_MSGSEND = YES; 494 | GCC_NO_COMMON_BLOCKS = YES; 495 | GCC_PREFIX_HEADER = "Target Support Files/ReuseCellConfigure/ReuseCellConfigure-prefix.pch"; 496 | INFOPLIST_FILE = "Target Support Files/ReuseCellConfigure/Info.plist"; 497 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 498 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 499 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 500 | MODULEMAP_FILE = "Target Support Files/ReuseCellConfigure/ReuseCellConfigure.modulemap"; 501 | MTL_ENABLE_DEBUG_INFO = YES; 502 | PRODUCT_NAME = ReuseCellConfigure; 503 | SDKROOT = iphoneos; 504 | SKIP_INSTALL = YES; 505 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 506 | SWIFT_VERSION = 3.0; 507 | TARGETED_DEVICE_FAMILY = "1,2"; 508 | VERSIONING_SYSTEM = "apple-generic"; 509 | VERSION_INFO_PREFIX = ""; 510 | }; 511 | name = Debug; 512 | }; 513 | /* End XCBuildConfiguration section */ 514 | 515 | /* Begin XCConfigurationList section */ 516 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 517 | isa = XCConfigurationList; 518 | buildConfigurations = ( 519 | 015A368F878AC3E2CEAE21DDE8026304 /* Debug */, 520 | 44CDBB6D11DE06DB64D6268622BDC47E /* Release */, 521 | ); 522 | defaultConfigurationIsVisible = 0; 523 | defaultConfigurationName = Release; 524 | }; 525 | 402EAFFF7F0BE0CE1E01DFC7460E341C /* Build configuration list for PBXNativeTarget "Pods-ReuseCellConfigureSample" */ = { 526 | isa = XCConfigurationList; 527 | buildConfigurations = ( 528 | A67B8EF6DE9C94533DD02DD8CD302A65 /* Debug */, 529 | 7189367AC9D670735F564C65928E9B35 /* Release */, 530 | ); 531 | defaultConfigurationIsVisible = 0; 532 | defaultConfigurationName = Release; 533 | }; 534 | CD250E582608B15D2E9A0AF3F25EC8FD /* Build configuration list for PBXNativeTarget "ReuseCellConfigure" */ = { 535 | isa = XCConfigurationList; 536 | buildConfigurations = ( 537 | EF7B6984D9586058BDEDFFB6573C68A3 /* Debug */, 538 | 76C24E2412C330CFF62BC5AEF3FAF268 /* Release */, 539 | ); 540 | defaultConfigurationIsVisible = 0; 541 | defaultConfigurationName = Release; 542 | }; 543 | /* End XCConfigurationList section */ 544 | }; 545 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 546 | } 547 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Pods.xcodeproj/xcshareddata/xcschemes/ReuseCellConfigure.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/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 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ReuseCellConfigure 5 | 6 | Copyright (c) 2016 suzuki-taiki 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 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample-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) 2016 suzuki-taiki <suzuki_taiki@cyberagent.co.jp> 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 | ReuseCellConfigure 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 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ReuseCellConfigureSample : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ReuseCellConfigureSample 5 | @end 6 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample-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 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/ReuseCellConfigure/ReuseCellConfigure.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/ReuseCellConfigure/ReuseCellConfigure.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample-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 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | 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}" 48 | 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} 49 | ;; 50 | *.xib) 51 | 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}" 52 | 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} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | 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}" 102 | fi 103 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_ReuseCellConfigureSampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_ReuseCellConfigureSampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ReuseCellConfigure" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/ReuseCellConfigure/ReuseCellConfigure.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "ReuseCellConfigure" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ReuseCellConfigureSample { 2 | umbrella header "Pods-ReuseCellConfigureSample-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ReuseCellConfigure" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/ReuseCellConfigure/ReuseCellConfigure.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "ReuseCellConfigure" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/ReuseCellConfigure/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.3.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/ReuseCellConfigure/ReuseCellConfigure-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ReuseCellConfigure : NSObject 3 | @end 4 | @implementation PodsDummy_ReuseCellConfigure 5 | @end 6 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/ReuseCellConfigure/ReuseCellConfigure-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/ReuseCellConfigure/ReuseCellConfigure-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double ReuseCellConfigureVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char ReuseCellConfigureVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/ReuseCellConfigure/ReuseCellConfigure.modulemap: -------------------------------------------------------------------------------- 1 | framework module ReuseCellConfigure { 2 | umbrella header "ReuseCellConfigure-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/Pods/Target Support Files/ReuseCellConfigure/ReuseCellConfigure.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/ReuseCellConfigure 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_LDFLAGS = -framework "UIKit" 5 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2B523C478B1D51C09092AA3A /* Pods_ReuseCellConfigureSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9226030AE9EF6E1227D6CC80 /* Pods_ReuseCellConfigureSample.framework */; }; 11 | 37A2793E1C3C203A00691403 /* TableViewCellProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A2793D1C3C203A00691403 /* TableViewCellProtocol.swift */; }; 12 | 37A2794F1C3C3C8A00691403 /* CollectionViewCellProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A2794A1C3C3C8A00691403 /* CollectionViewCellProtocol.swift */; }; 13 | 37A279501C3C3C8A00691403 /* LeftCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A2794B1C3C3C8A00691403 /* LeftCollectionViewCell.swift */; }; 14 | 37A279511C3C3C8A00691403 /* LeftCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 37A2794C1C3C3C8A00691403 /* LeftCollectionViewCell.xib */; }; 15 | 37A279521C3C3C8A00691403 /* RightCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37A2794D1C3C3C8A00691403 /* RightCollectionViewCell.swift */; }; 16 | 37A279531C3C3C8A00691403 /* RightCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 37A2794E1C3C3C8A00691403 /* RightCollectionViewCell.xib */; }; 17 | 9D1D2AF81C36D169006A4E62 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D1D2AF71C36D169006A4E62 /* AppDelegate.swift */; }; 18 | 9D1D2AFA1C36D169006A4E62 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D1D2AF91C36D169006A4E62 /* ViewController.swift */; }; 19 | 9D1D2AFD1C36D169006A4E62 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9D1D2AFB1C36D169006A4E62 /* Main.storyboard */; }; 20 | 9D1D2AFF1C36D169006A4E62 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9D1D2AFE1C36D169006A4E62 /* Assets.xcassets */; }; 21 | 9D1D2B021C36D169006A4E62 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9D1D2B001C36D169006A4E62 /* LaunchScreen.storyboard */; }; 22 | 9D1D2B161C3BD955006A4E62 /* CollectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D1D2B151C3BD955006A4E62 /* CollectionViewController.swift */; }; 23 | 9D1D2B181C3BD961006A4E62 /* TableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D1D2B171C3BD961006A4E62 /* TableViewController.swift */; }; 24 | 9D1D2B1B1C3BDA89006A4E62 /* LeftIconTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D1D2B191C3BDA89006A4E62 /* LeftIconTableViewCell.swift */; }; 25 | 9D1D2B1C1C3BDA89006A4E62 /* LeftIconTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9D1D2B1A1C3BDA89006A4E62 /* LeftIconTableViewCell.xib */; }; 26 | 9D1D2B1F1C3BDA9F006A4E62 /* RightIconTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D1D2B1D1C3BDA9F006A4E62 /* RightIconTableViewCell.swift */; }; 27 | 9D1D2B201C3BDA9F006A4E62 /* RightIconTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9D1D2B1E1C3BDA9F006A4E62 /* RightIconTableViewCell.xib */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 35F15AF8FC0737D1BE1B5686 /* Pods-ReuseCellConfigureSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReuseCellConfigureSample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample.debug.xcconfig"; sourceTree = ""; }; 32 | 37A2793D1C3C203A00691403 /* TableViewCellProtocol.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableViewCellProtocol.swift; sourceTree = ""; }; 33 | 37A2794A1C3C3C8A00691403 /* CollectionViewCellProtocol.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionViewCellProtocol.swift; sourceTree = ""; }; 34 | 37A2794B1C3C3C8A00691403 /* LeftCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LeftCollectionViewCell.swift; sourceTree = ""; }; 35 | 37A2794C1C3C3C8A00691403 /* LeftCollectionViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LeftCollectionViewCell.xib; sourceTree = ""; }; 36 | 37A2794D1C3C3C8A00691403 /* RightCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RightCollectionViewCell.swift; sourceTree = ""; }; 37 | 37A2794E1C3C3C8A00691403 /* RightCollectionViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = RightCollectionViewCell.xib; sourceTree = ""; }; 38 | 9226030AE9EF6E1227D6CC80 /* Pods_ReuseCellConfigureSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ReuseCellConfigureSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 9577821012F97E1BADCEADF7 /* Pods-ReuseCellConfigureSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReuseCellConfigureSample.release.xcconfig"; path = "Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample.release.xcconfig"; sourceTree = ""; }; 40 | 9D1D2AF41C36D169006A4E62 /* ReuseCellConfigureSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReuseCellConfigureSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 9D1D2AF71C36D169006A4E62 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 42 | 9D1D2AF91C36D169006A4E62 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 43 | 9D1D2AFC1C36D169006A4E62 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 44 | 9D1D2AFE1C36D169006A4E62 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 45 | 9D1D2B011C36D169006A4E62 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 46 | 9D1D2B031C36D169006A4E62 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 9D1D2B151C3BD955006A4E62 /* CollectionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionViewController.swift; sourceTree = ""; }; 48 | 9D1D2B171C3BD961006A4E62 /* TableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableViewController.swift; sourceTree = ""; }; 49 | 9D1D2B191C3BDA89006A4E62 /* LeftIconTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LeftIconTableViewCell.swift; sourceTree = ""; }; 50 | 9D1D2B1A1C3BDA89006A4E62 /* LeftIconTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LeftIconTableViewCell.xib; sourceTree = ""; }; 51 | 9D1D2B1D1C3BDA9F006A4E62 /* RightIconTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RightIconTableViewCell.swift; sourceTree = ""; }; 52 | 9D1D2B1E1C3BDA9F006A4E62 /* RightIconTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = RightIconTableViewCell.xib; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 9D1D2AF11C36D169006A4E62 /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 2B523C478B1D51C09092AA3A /* Pods_ReuseCellConfigureSample.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | 37A279491C3C3C8A00691403 /* Cells */ = { 68 | isa = PBXGroup; 69 | children = ( 70 | 37A2794A1C3C3C8A00691403 /* CollectionViewCellProtocol.swift */, 71 | 37A2794B1C3C3C8A00691403 /* LeftCollectionViewCell.swift */, 72 | 37A2794C1C3C3C8A00691403 /* LeftCollectionViewCell.xib */, 73 | 37A2794D1C3C3C8A00691403 /* RightCollectionViewCell.swift */, 74 | 37A2794E1C3C3C8A00691403 /* RightCollectionViewCell.xib */, 75 | ); 76 | path = Cells; 77 | sourceTree = ""; 78 | }; 79 | 8C68BFEBC18EB777C47E23BD /* Pods */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 35F15AF8FC0737D1BE1B5686 /* Pods-ReuseCellConfigureSample.debug.xcconfig */, 83 | 9577821012F97E1BADCEADF7 /* Pods-ReuseCellConfigureSample.release.xcconfig */, 84 | ); 85 | name = Pods; 86 | sourceTree = ""; 87 | }; 88 | 9D1D2AEB1C36D169006A4E62 = { 89 | isa = PBXGroup; 90 | children = ( 91 | 9D1D2AF61C36D169006A4E62 /* ReuseCellConfigureSample */, 92 | 9D1D2AF51C36D169006A4E62 /* Products */, 93 | 8C68BFEBC18EB777C47E23BD /* Pods */, 94 | A5BAF581C4C4AA45CCD52340 /* Frameworks */, 95 | ); 96 | sourceTree = ""; 97 | }; 98 | 9D1D2AF51C36D169006A4E62 /* Products */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 9D1D2AF41C36D169006A4E62 /* ReuseCellConfigureSample.app */, 102 | ); 103 | name = Products; 104 | sourceTree = ""; 105 | }; 106 | 9D1D2AF61C36D169006A4E62 /* ReuseCellConfigureSample */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 9D1D2B111C3BD830006A4E62 /* CollectionView */, 110 | 9D1D2B131C3BD830006A4E62 /* TableView */, 111 | 9D1D2AF71C36D169006A4E62 /* AppDelegate.swift */, 112 | 9D1D2AF91C36D169006A4E62 /* ViewController.swift */, 113 | 9D1D2AFB1C36D169006A4E62 /* Main.storyboard */, 114 | 9D1D2AFE1C36D169006A4E62 /* Assets.xcassets */, 115 | 9D1D2B001C36D169006A4E62 /* LaunchScreen.storyboard */, 116 | 9D1D2B031C36D169006A4E62 /* Info.plist */, 117 | ); 118 | path = ReuseCellConfigureSample; 119 | sourceTree = ""; 120 | }; 121 | 9D1D2B111C3BD830006A4E62 /* CollectionView */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 9D1D2B151C3BD955006A4E62 /* CollectionViewController.swift */, 125 | 37A279491C3C3C8A00691403 /* Cells */, 126 | ); 127 | path = CollectionView; 128 | sourceTree = ""; 129 | }; 130 | 9D1D2B131C3BD830006A4E62 /* TableView */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 9D1D2B171C3BD961006A4E62 /* TableViewController.swift */, 134 | 9D1D2B141C3BD830006A4E62 /* Cells */, 135 | ); 136 | path = TableView; 137 | sourceTree = ""; 138 | }; 139 | 9D1D2B141C3BD830006A4E62 /* Cells */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 37A2793D1C3C203A00691403 /* TableViewCellProtocol.swift */, 143 | 9D1D2B191C3BDA89006A4E62 /* LeftIconTableViewCell.swift */, 144 | 9D1D2B1A1C3BDA89006A4E62 /* LeftIconTableViewCell.xib */, 145 | 9D1D2B1D1C3BDA9F006A4E62 /* RightIconTableViewCell.swift */, 146 | 9D1D2B1E1C3BDA9F006A4E62 /* RightIconTableViewCell.xib */, 147 | ); 148 | path = Cells; 149 | sourceTree = ""; 150 | }; 151 | A5BAF581C4C4AA45CCD52340 /* Frameworks */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 9226030AE9EF6E1227D6CC80 /* Pods_ReuseCellConfigureSample.framework */, 155 | ); 156 | name = Frameworks; 157 | sourceTree = ""; 158 | }; 159 | /* End PBXGroup section */ 160 | 161 | /* Begin PBXNativeTarget section */ 162 | 9D1D2AF31C36D169006A4E62 /* ReuseCellConfigureSample */ = { 163 | isa = PBXNativeTarget; 164 | buildConfigurationList = 9D1D2B061C36D169006A4E62 /* Build configuration list for PBXNativeTarget "ReuseCellConfigureSample" */; 165 | buildPhases = ( 166 | F44CB827E77ED279A5079E08 /* [CP] Check Pods Manifest.lock */, 167 | 9D1D2AF01C36D169006A4E62 /* Sources */, 168 | 9D1D2AF11C36D169006A4E62 /* Frameworks */, 169 | 9D1D2AF21C36D169006A4E62 /* Resources */, 170 | 3FAB0BD86D01EBC8314EBE84 /* [CP] Embed Pods Frameworks */, 171 | 84DEDF318D69AAE3CB87B3BF /* [CP] Copy Pods Resources */, 172 | ); 173 | buildRules = ( 174 | ); 175 | dependencies = ( 176 | ); 177 | name = ReuseCellConfigureSample; 178 | productName = ReuseCellConfigureSample; 179 | productReference = 9D1D2AF41C36D169006A4E62 /* ReuseCellConfigureSample.app */; 180 | productType = "com.apple.product-type.application"; 181 | }; 182 | /* End PBXNativeTarget section */ 183 | 184 | /* Begin PBXProject section */ 185 | 9D1D2AEC1C36D169006A4E62 /* Project object */ = { 186 | isa = PBXProject; 187 | attributes = { 188 | LastSwiftUpdateCheck = 0720; 189 | LastUpgradeCheck = 0800; 190 | ORGANIZATIONNAME = "szk-atmosphere"; 191 | TargetAttributes = { 192 | 9D1D2AF31C36D169006A4E62 = { 193 | CreatedOnToolsVersion = 7.2; 194 | LastSwiftMigration = 0800; 195 | }; 196 | }; 197 | }; 198 | buildConfigurationList = 9D1D2AEF1C36D169006A4E62 /* Build configuration list for PBXProject "ReuseCellConfigureSample" */; 199 | compatibilityVersion = "Xcode 3.2"; 200 | developmentRegion = English; 201 | hasScannedForEncodings = 0; 202 | knownRegions = ( 203 | en, 204 | Base, 205 | ); 206 | mainGroup = 9D1D2AEB1C36D169006A4E62; 207 | productRefGroup = 9D1D2AF51C36D169006A4E62 /* Products */; 208 | projectDirPath = ""; 209 | projectRoot = ""; 210 | targets = ( 211 | 9D1D2AF31C36D169006A4E62 /* ReuseCellConfigureSample */, 212 | ); 213 | }; 214 | /* End PBXProject section */ 215 | 216 | /* Begin PBXResourcesBuildPhase section */ 217 | 9D1D2AF21C36D169006A4E62 /* Resources */ = { 218 | isa = PBXResourcesBuildPhase; 219 | buildActionMask = 2147483647; 220 | files = ( 221 | 37A279531C3C3C8A00691403 /* RightCollectionViewCell.xib in Resources */, 222 | 9D1D2B201C3BDA9F006A4E62 /* RightIconTableViewCell.xib in Resources */, 223 | 9D1D2B021C36D169006A4E62 /* LaunchScreen.storyboard in Resources */, 224 | 9D1D2B1C1C3BDA89006A4E62 /* LeftIconTableViewCell.xib in Resources */, 225 | 37A279511C3C3C8A00691403 /* LeftCollectionViewCell.xib in Resources */, 226 | 9D1D2AFF1C36D169006A4E62 /* Assets.xcassets in Resources */, 227 | 9D1D2AFD1C36D169006A4E62 /* Main.storyboard in Resources */, 228 | ); 229 | runOnlyForDeploymentPostprocessing = 0; 230 | }; 231 | /* End PBXResourcesBuildPhase section */ 232 | 233 | /* Begin PBXShellScriptBuildPhase section */ 234 | 3FAB0BD86D01EBC8314EBE84 /* [CP] Embed Pods Frameworks */ = { 235 | isa = PBXShellScriptBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | ); 239 | inputPaths = ( 240 | ); 241 | name = "[CP] Embed Pods Frameworks"; 242 | outputPaths = ( 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | shellPath = /bin/sh; 246 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample-frameworks.sh\"\n"; 247 | showEnvVarsInLog = 0; 248 | }; 249 | 84DEDF318D69AAE3CB87B3BF /* [CP] Copy Pods Resources */ = { 250 | isa = PBXShellScriptBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | ); 254 | inputPaths = ( 255 | ); 256 | name = "[CP] Copy Pods Resources"; 257 | outputPaths = ( 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | shellPath = /bin/sh; 261 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ReuseCellConfigureSample/Pods-ReuseCellConfigureSample-resources.sh\"\n"; 262 | showEnvVarsInLog = 0; 263 | }; 264 | F44CB827E77ED279A5079E08 /* [CP] Check Pods Manifest.lock */ = { 265 | isa = PBXShellScriptBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | ); 269 | inputPaths = ( 270 | ); 271 | name = "[CP] Check Pods Manifest.lock"; 272 | outputPaths = ( 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | shellPath = /bin/sh; 276 | 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"; 277 | showEnvVarsInLog = 0; 278 | }; 279 | /* End PBXShellScriptBuildPhase section */ 280 | 281 | /* Begin PBXSourcesBuildPhase section */ 282 | 9D1D2AF01C36D169006A4E62 /* Sources */ = { 283 | isa = PBXSourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | 37A2794F1C3C3C8A00691403 /* CollectionViewCellProtocol.swift in Sources */, 287 | 37A2793E1C3C203A00691403 /* TableViewCellProtocol.swift in Sources */, 288 | 9D1D2B161C3BD955006A4E62 /* CollectionViewController.swift in Sources */, 289 | 37A279521C3C3C8A00691403 /* RightCollectionViewCell.swift in Sources */, 290 | 9D1D2AFA1C36D169006A4E62 /* ViewController.swift in Sources */, 291 | 9D1D2AF81C36D169006A4E62 /* AppDelegate.swift in Sources */, 292 | 9D1D2B181C3BD961006A4E62 /* TableViewController.swift in Sources */, 293 | 37A279501C3C3C8A00691403 /* LeftCollectionViewCell.swift in Sources */, 294 | 9D1D2B1B1C3BDA89006A4E62 /* LeftIconTableViewCell.swift in Sources */, 295 | 9D1D2B1F1C3BDA9F006A4E62 /* RightIconTableViewCell.swift in Sources */, 296 | ); 297 | runOnlyForDeploymentPostprocessing = 0; 298 | }; 299 | /* End PBXSourcesBuildPhase section */ 300 | 301 | /* Begin PBXVariantGroup section */ 302 | 9D1D2AFB1C36D169006A4E62 /* Main.storyboard */ = { 303 | isa = PBXVariantGroup; 304 | children = ( 305 | 9D1D2AFC1C36D169006A4E62 /* Base */, 306 | ); 307 | name = Main.storyboard; 308 | sourceTree = ""; 309 | }; 310 | 9D1D2B001C36D169006A4E62 /* LaunchScreen.storyboard */ = { 311 | isa = PBXVariantGroup; 312 | children = ( 313 | 9D1D2B011C36D169006A4E62 /* Base */, 314 | ); 315 | name = LaunchScreen.storyboard; 316 | sourceTree = ""; 317 | }; 318 | /* End PBXVariantGroup section */ 319 | 320 | /* Begin XCBuildConfiguration section */ 321 | 9D1D2B041C36D169006A4E62 /* Debug */ = { 322 | isa = XCBuildConfiguration; 323 | buildSettings = { 324 | ALWAYS_SEARCH_USER_PATHS = NO; 325 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 326 | CLANG_CXX_LIBRARY = "libc++"; 327 | CLANG_ENABLE_MODULES = YES; 328 | CLANG_ENABLE_OBJC_ARC = YES; 329 | CLANG_WARN_BOOL_CONVERSION = YES; 330 | CLANG_WARN_CONSTANT_CONVERSION = YES; 331 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 332 | CLANG_WARN_EMPTY_BODY = YES; 333 | CLANG_WARN_ENUM_CONVERSION = YES; 334 | CLANG_WARN_INFINITE_RECURSION = YES; 335 | CLANG_WARN_INT_CONVERSION = YES; 336 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 337 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 338 | CLANG_WARN_UNREACHABLE_CODE = YES; 339 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 340 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 341 | COPY_PHASE_STRIP = NO; 342 | DEBUG_INFORMATION_FORMAT = dwarf; 343 | ENABLE_STRICT_OBJC_MSGSEND = YES; 344 | ENABLE_TESTABILITY = YES; 345 | GCC_C_LANGUAGE_STANDARD = gnu99; 346 | GCC_DYNAMIC_NO_PIC = NO; 347 | GCC_NO_COMMON_BLOCKS = YES; 348 | GCC_OPTIMIZATION_LEVEL = 0; 349 | GCC_PREPROCESSOR_DEFINITIONS = ( 350 | "DEBUG=1", 351 | "$(inherited)", 352 | ); 353 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 354 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 355 | GCC_WARN_UNDECLARED_SELECTOR = YES; 356 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 357 | GCC_WARN_UNUSED_FUNCTION = YES; 358 | GCC_WARN_UNUSED_VARIABLE = YES; 359 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 360 | MTL_ENABLE_DEBUG_INFO = YES; 361 | ONLY_ACTIVE_ARCH = YES; 362 | SDKROOT = iphoneos; 363 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 364 | SWIFT_VERSION = 2.3; 365 | }; 366 | name = Debug; 367 | }; 368 | 9D1D2B051C36D169006A4E62 /* Release */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | ALWAYS_SEARCH_USER_PATHS = NO; 372 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 373 | CLANG_CXX_LIBRARY = "libc++"; 374 | CLANG_ENABLE_MODULES = YES; 375 | CLANG_ENABLE_OBJC_ARC = YES; 376 | CLANG_WARN_BOOL_CONVERSION = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 379 | CLANG_WARN_EMPTY_BODY = YES; 380 | CLANG_WARN_ENUM_CONVERSION = YES; 381 | CLANG_WARN_INFINITE_RECURSION = YES; 382 | CLANG_WARN_INT_CONVERSION = YES; 383 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 384 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 385 | CLANG_WARN_UNREACHABLE_CODE = YES; 386 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 387 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 388 | COPY_PHASE_STRIP = NO; 389 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 390 | ENABLE_NS_ASSERTIONS = NO; 391 | ENABLE_STRICT_OBJC_MSGSEND = YES; 392 | GCC_C_LANGUAGE_STANDARD = gnu99; 393 | GCC_NO_COMMON_BLOCKS = YES; 394 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 395 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 396 | GCC_WARN_UNDECLARED_SELECTOR = YES; 397 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 398 | GCC_WARN_UNUSED_FUNCTION = YES; 399 | GCC_WARN_UNUSED_VARIABLE = YES; 400 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 401 | MTL_ENABLE_DEBUG_INFO = NO; 402 | SDKROOT = iphoneos; 403 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 404 | SWIFT_VERSION = 2.3; 405 | VALIDATE_PRODUCT = YES; 406 | }; 407 | name = Release; 408 | }; 409 | 9D1D2B071C36D169006A4E62 /* Debug */ = { 410 | isa = XCBuildConfiguration; 411 | baseConfigurationReference = 35F15AF8FC0737D1BE1B5686 /* Pods-ReuseCellConfigureSample.debug.xcconfig */; 412 | buildSettings = { 413 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 414 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 415 | INFOPLIST_FILE = ReuseCellConfigureSample/Info.plist; 416 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = "szk-atmosphere.ReuseCellConfigureSample"; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_VERSION = 4.0; 421 | }; 422 | name = Debug; 423 | }; 424 | 9D1D2B081C36D169006A4E62 /* Release */ = { 425 | isa = XCBuildConfiguration; 426 | baseConfigurationReference = 9577821012F97E1BADCEADF7 /* Pods-ReuseCellConfigureSample.release.xcconfig */; 427 | buildSettings = { 428 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 429 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 430 | INFOPLIST_FILE = ReuseCellConfigureSample/Info.plist; 431 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 432 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 433 | PRODUCT_BUNDLE_IDENTIFIER = "szk-atmosphere.ReuseCellConfigureSample"; 434 | PRODUCT_NAME = "$(TARGET_NAME)"; 435 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 436 | SWIFT_VERSION = 4.0; 437 | }; 438 | name = Release; 439 | }; 440 | /* End XCBuildConfiguration section */ 441 | 442 | /* Begin XCConfigurationList section */ 443 | 9D1D2AEF1C36D169006A4E62 /* Build configuration list for PBXProject "ReuseCellConfigureSample" */ = { 444 | isa = XCConfigurationList; 445 | buildConfigurations = ( 446 | 9D1D2B041C36D169006A4E62 /* Debug */, 447 | 9D1D2B051C36D169006A4E62 /* Release */, 448 | ); 449 | defaultConfigurationIsVisible = 0; 450 | defaultConfigurationName = Release; 451 | }; 452 | 9D1D2B061C36D169006A4E62 /* Build configuration list for PBXNativeTarget "ReuseCellConfigureSample" */ = { 453 | isa = XCConfigurationList; 454 | buildConfigurations = ( 455 | 9D1D2B071C36D169006A4E62 /* Debug */, 456 | 9D1D2B081C36D169006A4E62 /* Release */, 457 | ); 458 | defaultConfigurationIsVisible = 0; 459 | defaultConfigurationName = Release; 460 | }; 461 | /* End XCConfigurationList section */ 462 | }; 463 | rootObject = 9D1D2AEC1C36D169006A4E62 /* Project object */; 464 | } 465 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by Taiki Suzuki on 2016/01/02. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | fileprivate func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [AnyHashable: 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 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 44 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/CollectionView/Cells/CollectionViewCellProtocol.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CollectionViewCellProtocol.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by 鈴木大貴 on 2016/01/06. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | protocol CollectionViewCellProtocol: class { 12 | weak var alphabetLabel: UILabel! { get set } 13 | func addCornerRadius(_ cornerRadius: CGFloat) 14 | } 15 | 16 | extension CollectionViewCellProtocol { 17 | func addCornerRadius(_ cornerRadius: CGFloat) { 18 | alphabetLabel.layer.cornerRadius = cornerRadius 19 | alphabetLabel.layer.masksToBounds = true 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/CollectionView/Cells/LeftCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LeftCollectionViewCell.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by 鈴木大貴 on 2016/01/06. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ReuseCellConfigure 11 | 12 | final class LeftCollectionViewCell: UICollectionViewCell, ReusableViewProtocol, CollectionViewCellProtocol { 13 | typealias RegisterType = RegisterNib 14 | 15 | @IBOutlet weak var alphabetLabel: UILabel! 16 | fileprivate var color: UIColor? 17 | fileprivate var inverseColor: UIColor? 18 | 19 | override func awakeFromNib() { 20 | super.awakeFromNib() 21 | 22 | addCornerRadius(40) 23 | } 24 | 25 | func randomBackgoundColor() { 26 | if color == nil { 27 | color = UIColor(red: randValue(), green: randValue(), blue: randValue(), alpha: 1) 28 | } 29 | contentView.backgroundColor = color 30 | 31 | if inverseColor == nil { 32 | var value: (CGFloat, CGFloat, CGFloat, CGFloat) = (0, 0, 0, 0) 33 | color?.getRed(&value.0, green: &value.1, blue: &value.2, alpha: &value.3) 34 | inverseColor = UIColor(red: 1-value.0, green: 1-value.1, blue: 1-value.2, alpha: value.3) 35 | } 36 | alphabetLabel.backgroundColor = inverseColor 37 | alphabetLabel.textColor = color 38 | } 39 | 40 | fileprivate func randValue() -> CGFloat { 41 | return CGFloat(arc4random() % 255) / 255 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/CollectionView/Cells/LeftCollectionViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/CollectionView/Cells/RightCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RightCollectionViewCell.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by 鈴木大貴 on 2016/01/06. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ReuseCellConfigure 11 | 12 | final class RightCollectionViewCell: UICollectionViewCell, ReusableViewProtocol, CollectionViewCellProtocol { 13 | typealias RegisterType = RegisterNib 14 | 15 | @IBOutlet weak var alphabetLabel: UILabel! 16 | 17 | override func awakeFromNib() { 18 | super.awakeFromNib() 19 | 20 | addCornerRadius(40) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/CollectionView/Cells/RightCollectionViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/CollectionView/CollectionViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CollectionViewController.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by 鈴木 大貴 on 2016/01/05. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ReuseCellConfigure 11 | 12 | final class CollectionViewController: UIViewController { 13 | 14 | @IBOutlet var collectionView: UICollectionView! 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | 19 | collectionView.dataSource = self 20 | collectionView.register(with: LeftCollectionViewCell.self) 21 | collectionView.register(with: RightCollectionViewCell.self) 22 | collectionView.register(UICollectionViewCell.self, forCellWithReuseIdentifier: "UICollectionViewCell") 23 | } 24 | } 25 | 26 | extension CollectionViewController: UICollectionViewDataSource { 27 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 28 | return Int("Z".unicodeScalars.first!.value - "A".unicodeScalars.first!.value) + 1 29 | } 30 | 31 | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 32 | let alphabet = String(describing: UnicodeScalar("A".unicodeScalars.first!.value + UInt32(indexPath.row))!) 33 | let cell: UICollectionViewCell 34 | switch indexPath.row % 2 { 35 | case 0: 36 | cell = collectionView.dequeue(with: LeftCollectionViewCell.self, for: indexPath) { cell in 37 | cell.alphabetLabel.text = alphabet 38 | cell.randomBackgoundColor() 39 | } 40 | case 1: 41 | cell = collectionView.dequeue(with: RightCollectionViewCell.self, for: indexPath) { cell in 42 | cell.alphabetLabel.text = alphabet 43 | } 44 | default: 45 | cell = collectionView.dequeueReusableCell(withReuseIdentifier: "UICollectionViewCell", for: indexPath) 46 | } 47 | return cell 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/TableView/Cells/LeftIconTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LeftIconTableViewCell.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by 鈴木 大貴 on 2016/01/05. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ReuseCellConfigure 11 | 12 | final class LeftIconTableViewCell: UITableViewCell, ReusableViewProtocol, TableViewCellProtocol { 13 | typealias RegisterType = RegisterNib 14 | 15 | @IBOutlet weak var alphabetLabel: UILabel! 16 | fileprivate var color: UIColor? 17 | fileprivate var inverseColor: UIColor? 18 | 19 | override func awakeFromNib() { 20 | super.awakeFromNib() 21 | 22 | addCornerRadius(30) 23 | } 24 | 25 | func randomBackgoundColor() { 26 | if color == nil { 27 | color = UIColor(red: randValue(), green: randValue(), blue: randValue(), alpha: 1) 28 | } 29 | contentView.backgroundColor = color 30 | 31 | if inverseColor == nil { 32 | var value: (CGFloat, CGFloat, CGFloat, CGFloat) = (0, 0, 0, 0) 33 | color?.getRed(&value.0, green: &value.1, blue: &value.2, alpha: &value.3) 34 | inverseColor = UIColor(red: 1-value.0, green: 1-value.1, blue: 1-value.2, alpha: value.3) 35 | } 36 | alphabetLabel.backgroundColor = inverseColor 37 | alphabetLabel.textColor = color 38 | } 39 | 40 | fileprivate func randValue() -> CGFloat { 41 | return CGFloat(arc4random() % 255) / 255 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/TableView/Cells/LeftIconTableViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/TableView/Cells/RightIconTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RightIconTableViewCell.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by 鈴木 大貴 on 2016/01/05. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ReuseCellConfigure 11 | 12 | final class RightIconTableViewCell: UITableViewCell, ReusableViewProtocol, TableViewCellProtocol { 13 | typealias RegisterType = RegisterNib 14 | 15 | @IBOutlet weak var alphabetLabel: UILabel! 16 | 17 | override func awakeFromNib() { 18 | super.awakeFromNib() 19 | 20 | addCornerRadius(30) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/TableView/Cells/RightIconTableViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/TableView/Cells/TableViewCellProtocol.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TableViewCellProtocol.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by 鈴木大貴 on 2016/01/06. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | protocol TableViewCellProtocol: class { 12 | weak var alphabetLabel: UILabel! { get set } 13 | func addCornerRadius(_ cornerRadius: CGFloat) 14 | } 15 | 16 | extension TableViewCellProtocol { 17 | func addCornerRadius(_ cornerRadius: CGFloat) { 18 | alphabetLabel.layer.cornerRadius = cornerRadius 19 | alphabetLabel.layer.masksToBounds = true 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/TableView/TableViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TableViewController.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by 鈴木 大貴 on 2016/01/05. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ReuseCellConfigure 11 | 12 | final class TableViewController: UIViewController { 13 | 14 | @IBOutlet var tableView: UITableView! 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | 19 | tableView.dataSource = self 20 | tableView.delegate = self 21 | tableView.register(with: LeftIconTableViewCell.self) 22 | tableView.register(with: RightIconTableViewCell.self) 23 | tableView.register(UITableViewCell.self, forCellReuseIdentifier: "UITableViewCell") 24 | } 25 | } 26 | 27 | extension TableViewController: UITableViewDataSource { 28 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 29 | return Int("Z".unicodeScalars.first!.value - "A".unicodeScalars.first!.value) + 1 30 | } 31 | 32 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 33 | let cell: UITableViewCell? 34 | let alphabet = String(describing: UnicodeScalar("A".unicodeScalars.first!.value + UInt32(indexPath.row))!) 35 | switch indexPath.row % 2 { 36 | case 0: 37 | cell = tableView.dequeue(with: LeftIconTableViewCell.self) { cell in 38 | cell.alphabetLabel.text = alphabet 39 | cell.randomBackgoundColor() 40 | } 41 | case 1: 42 | cell = tableView.dequeue(with: RightIconTableViewCell.self) { cell in 43 | cell.alphabetLabel.text = alphabet 44 | } 45 | default: 46 | cell = tableView.dequeueReusableCell(withIdentifier: "UITableViewCell") 47 | } 48 | return cell! 49 | } 50 | } 51 | 52 | extension TableViewController: UITableViewDelegate { 53 | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 54 | return 80 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /ReuseCellConfigureSample/ReuseCellConfigureSample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ReuseCellConfigureSample 4 | // 5 | // Created by Taiki Suzuki on 2016/01/02. 6 | // Copyright © 2016年 szk-atmosphere. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } 25 | 26 | --------------------------------------------------------------------------------