├── GenericViewKit.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata ├── xcshareddata │ └── xcschemes │ │ ├── GenericViewKit.xcscheme │ │ └── GenericViewKit tvOS.xcscheme └── project.pbxproj ├── GenericViewKit ├── Source │ ├── ConfigurableView.swift │ ├── GenericView.swift │ ├── GenericViewController.swift │ ├── GenericTableViewCell.swift │ └── GenericCollectionViewCell.swift ├── GenericViewKit.h └── Info.plist ├── GenericViewKit tvOS ├── GenericViewKit tvOS.h └── Info.plist ├── GenericViewKit.podspec ├── Readme.md ├── LICENSE └── .gitignore /GenericViewKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GenericViewKit/Source/ConfigurableView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ConfigurableView.swift 3 | // GenericViewKit 4 | // 5 | // Created by Kristian Andersen on 29/05/16. 6 | // Copyright © 2016 Kristian Andersen. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public protocol ConfigurableView { 12 | func configureView() 13 | } 14 | -------------------------------------------------------------------------------- /GenericViewKit/Source/GenericView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GenericView.swift 3 | // GenericViewKit 4 | // 5 | // Created by Kristian Andersen on 29/05/16. 6 | // Copyright © 2016 Kristian Andersen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class GenericView: UIView, ConfigurableView { 12 | public required init() { 13 | super.init(frame: CGRect.zero) 14 | configureView() 15 | } 16 | 17 | public required init?(coder: NSCoder) { 18 | super.init(coder: coder) 19 | configureView() 20 | } 21 | 22 | open func configureView() {} 23 | } 24 | -------------------------------------------------------------------------------- /GenericViewKit/GenericViewKit.h: -------------------------------------------------------------------------------- 1 | // 2 | // GenericViewKit.h 3 | // GenericViewKit 4 | // 5 | // Created by Kristian Andersen on 27/05/16. 6 | // Copyright © 2016 Kristian Andersen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for GenericViewKit. 12 | FOUNDATION_EXPORT double GenericViewKitVersionNumber; 13 | 14 | //! Project version string for GenericViewKit. 15 | FOUNDATION_EXPORT const unsigned char GenericViewKitVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /GenericViewKit tvOS/GenericViewKit tvOS.h: -------------------------------------------------------------------------------- 1 | // 2 | // GenericViewKit tvOS.h 3 | // GenericViewKit tvOS 4 | // 5 | // Created by Kristian Andersen on 02/06/16. 6 | // Copyright © 2016 Kristian Andersen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for GenericViewKit tvOS. 12 | FOUNDATION_EXPORT double GenericViewKit_tvOSVersionNumber; 13 | 14 | //! Project version string for GenericViewKit tvOS. 15 | FOUNDATION_EXPORT const unsigned char GenericViewKit_tvOSVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /GenericViewKit/Source/GenericViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GenericViewController.swift 3 | // GenericViewKit 4 | // 5 | // Created by Kristian Andersen on 29/05/16. 6 | // Copyright © 2016 Kristian Andersen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class GenericViewController: UIViewController { 12 | open var contentView: View { 13 | return view as! View 14 | } 15 | 16 | public init() { 17 | super.init(nibName: nil, bundle: nil) 18 | } 19 | 20 | public required init?(coder: NSCoder) { 21 | super.init(coder: coder) 22 | } 23 | 24 | open override func loadView() { 25 | view = View() 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /GenericViewKit.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |spec| 2 | spec.name = 'GenericViewKit' 3 | spec.version = '1.1' 4 | spec.license = 'MIT' 5 | spec.homepage = 'https://github.com/ksmandersen/GenericViewKit' 6 | spec.authors = { 'Kristian Andersen' => 'hello@kristian.co' } 7 | spec.summary = 'A framework for eliminating boilerplate in UIKit Views & View Controllers' 8 | spec.source = { :git => 'https://github.com/ksmandersen/GenericViewKit.git', :tag => '1.1' } 9 | spec.source_files = 'GenericViewKit/Source/**/*.swift' 10 | spec.framework = 'UIKit' 11 | spec.ios.deployment_target = '8.0' 12 | spec.tvos.deployment_target = '9.0' 13 | spec.requires_arc = true 14 | spec.module_name = 'GenericViewKit' 15 | end 16 | -------------------------------------------------------------------------------- /GenericViewKit/Source/GenericTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GenericTableViewCell.swift 3 | // GenericViewKit 4 | // 5 | // Created by Kristian Andersen on 29/05/16. 6 | // Copyright © 2016 Kristian Andersen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class GenericTableViewCell: UITableViewCell, ConfigurableView { 12 | public override init(style: UITableViewCellStyle, reuseIdentifier: String?) { 13 | super.init(style: style, reuseIdentifier: reuseIdentifier) 14 | configureView() 15 | } 16 | 17 | public required init?(coder: NSCoder) { 18 | super.init(coder: coder) 19 | configureView() 20 | } 21 | 22 | open func configureView() {} 23 | } 24 | -------------------------------------------------------------------------------- /GenericViewKit/Source/GenericCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GenericCollectionViewCell.swift 3 | // GenericViewKit 4 | // 5 | // Created by Kristian Andersen on 29/05/16. 6 | // Copyright © 2016 Kristian Andersen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class GenericCollectionViewCell: UICollectionViewCell, ConfigurableView { 12 | public override init(frame: CGRect) { 13 | super.init(frame: CGRect.zero) 14 | configureView() 15 | } 16 | 17 | public required init() { 18 | super.init(frame: CGRect.zero) 19 | configureView() 20 | } 21 | 22 | public required init?(coder: NSCoder) { 23 | super.init(coder: coder) 24 | configureView() 25 | } 26 | 27 | open func configureView() {} 28 | } 29 | -------------------------------------------------------------------------------- /GenericViewKit/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.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /GenericViewKit tvOS/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.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # GenericViewKit 2 | 3 | [![](http://img.shields.io/badge/Swift-3.0-blue.svg)]() 4 | [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg)](https://github.com/Carthage/Carthage) 5 | [![CocoaPods compatible](https://img.shields.io/badge/CocoaPods-compatible-4BC51D.svg)](https://github.com/CocoaPods/CocoaPods) 6 | [![](http://img.shields.io/badge/operator_overload-nope-green.svg)](https://gist.github.com/duemunk/61e45932dbb1a2ca0954) 7 | 8 | A framework for eliminating boilerplate code in UIKit Views & View Controllers. Read more about it in [Good Swift, Bad Swift — Part 1](https://medium.com/p/f58f71da3575/) 9 | 10 | ## Why is this even a framework? 11 | 12 | I agree, 4 base classes with virtually no implementation doesn't justify a framework. I choose to publish the code here as a framework because that is for most people the easiest way to start using it. I would argue that it is totally fine to just copy paste the classes into your project. I don't anticipate many if any updates to the code here. 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) 2016 Kristian Andersen 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io/api/xcode,swift,osx,carthage 2 | 3 | ### Xcode ### 4 | # Xcode 5 | # 6 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 7 | 8 | ## Build generated 9 | build/ 10 | DerivedData/ 11 | 12 | ## Various settings 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata/ 22 | 23 | ## Other 24 | *.moved-aside 25 | *.xccheckout 26 | *.xcscmblueprint 27 | 28 | 29 | ### Swift ### 30 | # Xcode 31 | # 32 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 33 | 34 | ## Various settings 35 | *.pbxuser 36 | !default.pbxuser 37 | *.mode1v3 38 | !default.mode1v3 39 | *.mode2v3 40 | !default.mode2v3 41 | *.perspectivev3 42 | !default.perspectivev3 43 | xcuserdata/ 44 | 45 | ## Other 46 | *.moved-aside 47 | *.xcuserstate 48 | 49 | ## Obj-C/Swift specific 50 | *.hmap 51 | *.ipa 52 | *.dSYM.zip 53 | *.dSYM 54 | 55 | ## Playgrounds 56 | timeline.xctimeline 57 | playground.xcworkspace 58 | 59 | # Swift Package Manager 60 | # 61 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 62 | # Packages/ 63 | .build/ 64 | 65 | # CocoaPods 66 | # 67 | # We recommend against adding the Pods directory to your .gitignore. However 68 | # you should judge for yourself, the pros and cons are mentioned at: 69 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 70 | # 71 | # Pods/ 72 | 73 | # Carthage 74 | # 75 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 76 | # Carthage/Checkouts 77 | 78 | Carthage/Build 79 | 80 | # fastlane 81 | # 82 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 83 | # screenshots whenever they are needed. 84 | # For more information about the recommended setup visit: 85 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 86 | 87 | fastlane/report.xml 88 | fastlane/Preview.html 89 | fastlane/screenshots 90 | fastlane/test_output 91 | 92 | 93 | ### OSX ### 94 | *.DS_Store 95 | .AppleDouble 96 | .LSOverride 97 | 98 | # Icon must end with two \r 99 | Icon 100 | 101 | 102 | # Thumbnails 103 | ._* 104 | 105 | # Files that might appear in the root of a volume 106 | .DocumentRevisions-V100 107 | .fseventsd 108 | .Spotlight-V100 109 | .TemporaryItems 110 | .Trashes 111 | .VolumeIcon.icns 112 | .com.apple.timemachine.donotpresent 113 | 114 | # Directories potentially created on remote AFP share 115 | .AppleDB 116 | .AppleDesktop 117 | Network Trash Folder 118 | Temporary Items 119 | .apdisk 120 | 121 | 122 | ### Carthage ### 123 | # Carthage - A simple, decentralized dependency manager for Cocoa 124 | Carthage.checkout 125 | Carthage.build 126 | -------------------------------------------------------------------------------- /GenericViewKit.xcodeproj/xcshareddata/xcschemes/GenericViewKit.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 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /GenericViewKit.xcodeproj/xcshareddata/xcschemes/GenericViewKit tvOS.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 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /GenericViewKit.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 813CB98F1CF84AE000129D35 /* GenericViewKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 813CB98E1CF84AE000129D35 /* GenericViewKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 8183CA2C1D002A31009ECFF0 /* GenericViewKit tvOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 8183CA2B1D002A31009ECFF0 /* GenericViewKit tvOS.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 8183CA311D002A67009ECFF0 /* GenericView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBEF1CFB61FA00B3ABB3 /* GenericView.swift */; }; 13 | 8183CA321D002A67009ECFF0 /* GenericViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBF11CFB630900B3ABB3 /* GenericViewController.swift */; }; 14 | 8183CA331D002A67009ECFF0 /* GenericTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBF31CFB64A200B3ABB3 /* GenericTableViewCell.swift */; }; 15 | 8183CA341D002A67009ECFF0 /* ConfigurableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBF51CFB64D300B3ABB3 /* ConfigurableView.swift */; }; 16 | 8183CA351D002A67009ECFF0 /* GenericCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBF71CFB653E00B3ABB3 /* GenericCollectionViewCell.swift */; }; 17 | 81F7EBF01CFB61FA00B3ABB3 /* GenericView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBEF1CFB61FA00B3ABB3 /* GenericView.swift */; }; 18 | 81F7EBF21CFB630900B3ABB3 /* GenericViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBF11CFB630900B3ABB3 /* GenericViewController.swift */; }; 19 | 81F7EBF41CFB64A200B3ABB3 /* GenericTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBF31CFB64A200B3ABB3 /* GenericTableViewCell.swift */; }; 20 | 81F7EBF61CFB64D300B3ABB3 /* ConfigurableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBF51CFB64D300B3ABB3 /* ConfigurableView.swift */; }; 21 | 81F7EBF81CFB653E00B3ABB3 /* GenericCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F7EBF71CFB653E00B3ABB3 /* GenericCollectionViewCell.swift */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXFileReference section */ 25 | 813CB98B1CF84AE000129D35 /* GenericViewKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GenericViewKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | 813CB98E1CF84AE000129D35 /* GenericViewKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GenericViewKit.h; sourceTree = ""; }; 27 | 813CB9901CF84AE000129D35 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 28 | 8183CA291D002A31009ECFF0 /* GenericViewKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GenericViewKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 8183CA2B1D002A31009ECFF0 /* GenericViewKit tvOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "GenericViewKit tvOS.h"; sourceTree = ""; }; 30 | 8183CA2D1D002A31009ECFF0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 31 | 81F7EBEF1CFB61FA00B3ABB3 /* GenericView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GenericView.swift; sourceTree = ""; }; 32 | 81F7EBF11CFB630900B3ABB3 /* GenericViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GenericViewController.swift; sourceTree = ""; }; 33 | 81F7EBF31CFB64A200B3ABB3 /* GenericTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GenericTableViewCell.swift; sourceTree = ""; }; 34 | 81F7EBF51CFB64D300B3ABB3 /* ConfigurableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConfigurableView.swift; sourceTree = ""; }; 35 | 81F7EBF71CFB653E00B3ABB3 /* GenericCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GenericCollectionViewCell.swift; sourceTree = ""; }; 36 | /* End PBXFileReference section */ 37 | 38 | /* Begin PBXFrameworksBuildPhase section */ 39 | 813CB9871CF84AE000129D35 /* Frameworks */ = { 40 | isa = PBXFrameworksBuildPhase; 41 | buildActionMask = 2147483647; 42 | files = ( 43 | ); 44 | runOnlyForDeploymentPostprocessing = 0; 45 | }; 46 | 8183CA251D002A31009ECFF0 /* Frameworks */ = { 47 | isa = PBXFrameworksBuildPhase; 48 | buildActionMask = 2147483647; 49 | files = ( 50 | ); 51 | runOnlyForDeploymentPostprocessing = 0; 52 | }; 53 | /* End PBXFrameworksBuildPhase section */ 54 | 55 | /* Begin PBXGroup section */ 56 | 813CB9811CF84AE000129D35 = { 57 | isa = PBXGroup; 58 | children = ( 59 | 813CB98D1CF84AE000129D35 /* GenericViewKit */, 60 | 8183CA2A1D002A31009ECFF0 /* GenericViewKit tvOS */, 61 | 813CB98C1CF84AE000129D35 /* Products */, 62 | ); 63 | sourceTree = ""; 64 | }; 65 | 813CB98C1CF84AE000129D35 /* Products */ = { 66 | isa = PBXGroup; 67 | children = ( 68 | 813CB98B1CF84AE000129D35 /* GenericViewKit.framework */, 69 | 8183CA291D002A31009ECFF0 /* GenericViewKit.framework */, 70 | ); 71 | name = Products; 72 | sourceTree = ""; 73 | }; 74 | 813CB98D1CF84AE000129D35 /* GenericViewKit */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 81F7EBEE1CFB61E200B3ABB3 /* Source */, 78 | 813CB98E1CF84AE000129D35 /* GenericViewKit.h */, 79 | 813CB9901CF84AE000129D35 /* Info.plist */, 80 | ); 81 | path = GenericViewKit; 82 | sourceTree = ""; 83 | }; 84 | 8183CA2A1D002A31009ECFF0 /* GenericViewKit tvOS */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 8183CA2B1D002A31009ECFF0 /* GenericViewKit tvOS.h */, 88 | 8183CA2D1D002A31009ECFF0 /* Info.plist */, 89 | ); 90 | path = "GenericViewKit tvOS"; 91 | sourceTree = ""; 92 | }; 93 | 81F7EBEE1CFB61E200B3ABB3 /* Source */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 81F7EBEF1CFB61FA00B3ABB3 /* GenericView.swift */, 97 | 81F7EBF11CFB630900B3ABB3 /* GenericViewController.swift */, 98 | 81F7EBF31CFB64A200B3ABB3 /* GenericTableViewCell.swift */, 99 | 81F7EBF51CFB64D300B3ABB3 /* ConfigurableView.swift */, 100 | 81F7EBF71CFB653E00B3ABB3 /* GenericCollectionViewCell.swift */, 101 | ); 102 | path = Source; 103 | sourceTree = ""; 104 | }; 105 | /* End PBXGroup section */ 106 | 107 | /* Begin PBXHeadersBuildPhase section */ 108 | 813CB9881CF84AE000129D35 /* Headers */ = { 109 | isa = PBXHeadersBuildPhase; 110 | buildActionMask = 2147483647; 111 | files = ( 112 | 813CB98F1CF84AE000129D35 /* GenericViewKit.h in Headers */, 113 | ); 114 | runOnlyForDeploymentPostprocessing = 0; 115 | }; 116 | 8183CA261D002A31009ECFF0 /* Headers */ = { 117 | isa = PBXHeadersBuildPhase; 118 | buildActionMask = 2147483647; 119 | files = ( 120 | 8183CA2C1D002A31009ECFF0 /* GenericViewKit tvOS.h in Headers */, 121 | ); 122 | runOnlyForDeploymentPostprocessing = 0; 123 | }; 124 | /* End PBXHeadersBuildPhase section */ 125 | 126 | /* Begin PBXNativeTarget section */ 127 | 813CB98A1CF84AE000129D35 /* GenericViewKit */ = { 128 | isa = PBXNativeTarget; 129 | buildConfigurationList = 813CB9931CF84AE000129D35 /* Build configuration list for PBXNativeTarget "GenericViewKit" */; 130 | buildPhases = ( 131 | 813CB9861CF84AE000129D35 /* Sources */, 132 | 813CB9871CF84AE000129D35 /* Frameworks */, 133 | 813CB9881CF84AE000129D35 /* Headers */, 134 | 813CB9891CF84AE000129D35 /* Resources */, 135 | ); 136 | buildRules = ( 137 | ); 138 | dependencies = ( 139 | ); 140 | name = GenericViewKit; 141 | productName = GenericViewKit; 142 | productReference = 813CB98B1CF84AE000129D35 /* GenericViewKit.framework */; 143 | productType = "com.apple.product-type.framework"; 144 | }; 145 | 8183CA281D002A31009ECFF0 /* GenericViewKit tvOS */ = { 146 | isa = PBXNativeTarget; 147 | buildConfigurationList = 8183CA301D002A31009ECFF0 /* Build configuration list for PBXNativeTarget "GenericViewKit tvOS" */; 148 | buildPhases = ( 149 | 8183CA241D002A31009ECFF0 /* Sources */, 150 | 8183CA251D002A31009ECFF0 /* Frameworks */, 151 | 8183CA261D002A31009ECFF0 /* Headers */, 152 | 8183CA271D002A31009ECFF0 /* Resources */, 153 | ); 154 | buildRules = ( 155 | ); 156 | dependencies = ( 157 | ); 158 | name = "GenericViewKit tvOS"; 159 | productName = "GenericViewKit tvOS"; 160 | productReference = 8183CA291D002A31009ECFF0 /* GenericViewKit.framework */; 161 | productType = "com.apple.product-type.framework"; 162 | }; 163 | /* End PBXNativeTarget section */ 164 | 165 | /* Begin PBXProject section */ 166 | 813CB9821CF84AE000129D35 /* Project object */ = { 167 | isa = PBXProject; 168 | attributes = { 169 | LastUpgradeCheck = 0900; 170 | ORGANIZATIONNAME = "Kristian Andersen"; 171 | TargetAttributes = { 172 | 813CB98A1CF84AE000129D35 = { 173 | CreatedOnToolsVersion = 7.3.1; 174 | LastSwiftMigration = 0900; 175 | }; 176 | 8183CA281D002A31009ECFF0 = { 177 | CreatedOnToolsVersion = 7.3.1; 178 | LastSwiftMigration = 0900; 179 | }; 180 | }; 181 | }; 182 | buildConfigurationList = 813CB9851CF84AE000129D35 /* Build configuration list for PBXProject "GenericViewKit" */; 183 | compatibilityVersion = "Xcode 3.2"; 184 | developmentRegion = English; 185 | hasScannedForEncodings = 0; 186 | knownRegions = ( 187 | en, 188 | ); 189 | mainGroup = 813CB9811CF84AE000129D35; 190 | productRefGroup = 813CB98C1CF84AE000129D35 /* Products */; 191 | projectDirPath = ""; 192 | projectRoot = ""; 193 | targets = ( 194 | 813CB98A1CF84AE000129D35 /* GenericViewKit */, 195 | 8183CA281D002A31009ECFF0 /* GenericViewKit tvOS */, 196 | ); 197 | }; 198 | /* End PBXProject section */ 199 | 200 | /* Begin PBXResourcesBuildPhase section */ 201 | 813CB9891CF84AE000129D35 /* Resources */ = { 202 | isa = PBXResourcesBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | runOnlyForDeploymentPostprocessing = 0; 207 | }; 208 | 8183CA271D002A31009ECFF0 /* Resources */ = { 209 | isa = PBXResourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | /* End PBXResourcesBuildPhase section */ 216 | 217 | /* Begin PBXSourcesBuildPhase section */ 218 | 813CB9861CF84AE000129D35 /* Sources */ = { 219 | isa = PBXSourcesBuildPhase; 220 | buildActionMask = 2147483647; 221 | files = ( 222 | 81F7EBF41CFB64A200B3ABB3 /* GenericTableViewCell.swift in Sources */, 223 | 81F7EBF61CFB64D300B3ABB3 /* ConfigurableView.swift in Sources */, 224 | 81F7EBF21CFB630900B3ABB3 /* GenericViewController.swift in Sources */, 225 | 81F7EBF81CFB653E00B3ABB3 /* GenericCollectionViewCell.swift in Sources */, 226 | 81F7EBF01CFB61FA00B3ABB3 /* GenericView.swift in Sources */, 227 | ); 228 | runOnlyForDeploymentPostprocessing = 0; 229 | }; 230 | 8183CA241D002A31009ECFF0 /* Sources */ = { 231 | isa = PBXSourcesBuildPhase; 232 | buildActionMask = 2147483647; 233 | files = ( 234 | 8183CA311D002A67009ECFF0 /* GenericView.swift in Sources */, 235 | 8183CA321D002A67009ECFF0 /* GenericViewController.swift in Sources */, 236 | 8183CA331D002A67009ECFF0 /* GenericTableViewCell.swift in Sources */, 237 | 8183CA341D002A67009ECFF0 /* ConfigurableView.swift in Sources */, 238 | 8183CA351D002A67009ECFF0 /* GenericCollectionViewCell.swift in Sources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | /* End PBXSourcesBuildPhase section */ 243 | 244 | /* Begin XCBuildConfiguration section */ 245 | 813CB9911CF84AE000129D35 /* Debug */ = { 246 | isa = XCBuildConfiguration; 247 | buildSettings = { 248 | ALWAYS_SEARCH_USER_PATHS = NO; 249 | CLANG_ANALYZER_NONNULL = YES; 250 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 251 | CLANG_CXX_LIBRARY = "libc++"; 252 | CLANG_ENABLE_MODULES = YES; 253 | CLANG_ENABLE_OBJC_ARC = YES; 254 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 255 | CLANG_WARN_BOOL_CONVERSION = YES; 256 | CLANG_WARN_COMMA = YES; 257 | CLANG_WARN_CONSTANT_CONVERSION = YES; 258 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 259 | CLANG_WARN_EMPTY_BODY = YES; 260 | CLANG_WARN_ENUM_CONVERSION = YES; 261 | CLANG_WARN_INFINITE_RECURSION = YES; 262 | CLANG_WARN_INT_CONVERSION = YES; 263 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 264 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 265 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 266 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 267 | CLANG_WARN_STRICT_PROTOTYPES = YES; 268 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 269 | CLANG_WARN_UNREACHABLE_CODE = YES; 270 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 271 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 272 | COPY_PHASE_STRIP = NO; 273 | CURRENT_PROJECT_VERSION = 1; 274 | DEBUG_INFORMATION_FORMAT = dwarf; 275 | ENABLE_STRICT_OBJC_MSGSEND = YES; 276 | ENABLE_TESTABILITY = YES; 277 | GCC_C_LANGUAGE_STANDARD = gnu99; 278 | GCC_DYNAMIC_NO_PIC = NO; 279 | GCC_NO_COMMON_BLOCKS = YES; 280 | GCC_OPTIMIZATION_LEVEL = 0; 281 | GCC_PREPROCESSOR_DEFINITIONS = ( 282 | "DEBUG=1", 283 | "$(inherited)", 284 | ); 285 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 286 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 287 | GCC_WARN_UNDECLARED_SELECTOR = YES; 288 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 289 | GCC_WARN_UNUSED_FUNCTION = YES; 290 | GCC_WARN_UNUSED_VARIABLE = YES; 291 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 292 | MTL_ENABLE_DEBUG_INFO = YES; 293 | ONLY_ACTIVE_ARCH = YES; 294 | SDKROOT = iphoneos; 295 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 296 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 297 | TARGETED_DEVICE_FAMILY = "1,2"; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | VERSION_INFO_PREFIX = ""; 300 | }; 301 | name = Debug; 302 | }; 303 | 813CB9921CF84AE000129D35 /* Release */ = { 304 | isa = XCBuildConfiguration; 305 | buildSettings = { 306 | ALWAYS_SEARCH_USER_PATHS = NO; 307 | CLANG_ANALYZER_NONNULL = YES; 308 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 309 | CLANG_CXX_LIBRARY = "libc++"; 310 | CLANG_ENABLE_MODULES = YES; 311 | CLANG_ENABLE_OBJC_ARC = YES; 312 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 313 | CLANG_WARN_BOOL_CONVERSION = YES; 314 | CLANG_WARN_COMMA = YES; 315 | CLANG_WARN_CONSTANT_CONVERSION = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 323 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 324 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 325 | CLANG_WARN_STRICT_PROTOTYPES = YES; 326 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 327 | CLANG_WARN_UNREACHABLE_CODE = YES; 328 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 329 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 330 | COPY_PHASE_STRIP = NO; 331 | CURRENT_PROJECT_VERSION = 1; 332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 333 | ENABLE_NS_ASSERTIONS = NO; 334 | ENABLE_STRICT_OBJC_MSGSEND = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_NO_COMMON_BLOCKS = YES; 337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 339 | GCC_WARN_UNDECLARED_SELECTOR = YES; 340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_VARIABLE = YES; 343 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 344 | MTL_ENABLE_DEBUG_INFO = NO; 345 | SDKROOT = iphoneos; 346 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 347 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 348 | TARGETED_DEVICE_FAMILY = "1,2"; 349 | VALIDATE_PRODUCT = YES; 350 | VERSIONING_SYSTEM = "apple-generic"; 351 | VERSION_INFO_PREFIX = ""; 352 | }; 353 | name = Release; 354 | }; 355 | 813CB9941CF84AE000129D35 /* Debug */ = { 356 | isa = XCBuildConfiguration; 357 | buildSettings = { 358 | APPLICATION_EXTENSION_API_ONLY = YES; 359 | CLANG_ENABLE_MODULES = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 361 | DEFINES_MODULE = YES; 362 | DYLIB_COMPATIBILITY_VERSION = 1; 363 | DYLIB_CURRENT_VERSION = 1; 364 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 365 | INFOPLIST_FILE = GenericViewKit/Info.plist; 366 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 367 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 368 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 369 | PRODUCT_BUNDLE_IDENTIFIER = co.kristian.GenericViewKit; 370 | PRODUCT_NAME = "$(TARGET_NAME)"; 371 | SKIP_INSTALL = YES; 372 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 373 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 374 | SWIFT_VERSION = 4.0; 375 | }; 376 | name = Debug; 377 | }; 378 | 813CB9951CF84AE000129D35 /* Release */ = { 379 | isa = XCBuildConfiguration; 380 | buildSettings = { 381 | APPLICATION_EXTENSION_API_ONLY = YES; 382 | CLANG_ENABLE_MODULES = YES; 383 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 384 | DEFINES_MODULE = YES; 385 | DYLIB_COMPATIBILITY_VERSION = 1; 386 | DYLIB_CURRENT_VERSION = 1; 387 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 388 | INFOPLIST_FILE = GenericViewKit/Info.plist; 389 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 390 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 391 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 392 | PRODUCT_BUNDLE_IDENTIFIER = co.kristian.GenericViewKit; 393 | PRODUCT_NAME = "$(TARGET_NAME)"; 394 | SKIP_INSTALL = YES; 395 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 396 | SWIFT_VERSION = 4.0; 397 | }; 398 | name = Release; 399 | }; 400 | 8183CA2E1D002A31009ECFF0 /* Debug */ = { 401 | isa = XCBuildConfiguration; 402 | buildSettings = { 403 | APPLICATION_EXTENSION_API_ONLY = YES; 404 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 405 | DEFINES_MODULE = YES; 406 | DYLIB_COMPATIBILITY_VERSION = 1; 407 | DYLIB_CURRENT_VERSION = 1; 408 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 409 | INFOPLIST_FILE = "GenericViewKit tvOS/Info.plist"; 410 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 411 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 412 | PRODUCT_BUNDLE_IDENTIFIER = co.kristian.GenericViewKit; 413 | PRODUCT_NAME = GenericViewKit; 414 | SDKROOT = appletvos; 415 | SKIP_INSTALL = YES; 416 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 417 | SWIFT_VERSION = 4.0; 418 | TARGETED_DEVICE_FAMILY = 3; 419 | TVOS_DEPLOYMENT_TARGET = 9.0; 420 | }; 421 | name = Debug; 422 | }; 423 | 8183CA2F1D002A31009ECFF0 /* Release */ = { 424 | isa = XCBuildConfiguration; 425 | buildSettings = { 426 | APPLICATION_EXTENSION_API_ONLY = YES; 427 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 428 | DEFINES_MODULE = YES; 429 | DYLIB_COMPATIBILITY_VERSION = 1; 430 | DYLIB_CURRENT_VERSION = 1; 431 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 432 | INFOPLIST_FILE = "GenericViewKit tvOS/Info.plist"; 433 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 434 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 435 | PRODUCT_BUNDLE_IDENTIFIER = co.kristian.GenericViewKit; 436 | PRODUCT_NAME = GenericViewKit; 437 | SDKROOT = appletvos; 438 | SKIP_INSTALL = YES; 439 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 440 | SWIFT_VERSION = 4.0; 441 | TARGETED_DEVICE_FAMILY = 3; 442 | TVOS_DEPLOYMENT_TARGET = 9.0; 443 | }; 444 | name = Release; 445 | }; 446 | /* End XCBuildConfiguration section */ 447 | 448 | /* Begin XCConfigurationList section */ 449 | 813CB9851CF84AE000129D35 /* Build configuration list for PBXProject "GenericViewKit" */ = { 450 | isa = XCConfigurationList; 451 | buildConfigurations = ( 452 | 813CB9911CF84AE000129D35 /* Debug */, 453 | 813CB9921CF84AE000129D35 /* Release */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 813CB9931CF84AE000129D35 /* Build configuration list for PBXNativeTarget "GenericViewKit" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 813CB9941CF84AE000129D35 /* Debug */, 462 | 813CB9951CF84AE000129D35 /* Release */, 463 | ); 464 | defaultConfigurationIsVisible = 0; 465 | defaultConfigurationName = Release; 466 | }; 467 | 8183CA301D002A31009ECFF0 /* Build configuration list for PBXNativeTarget "GenericViewKit tvOS" */ = { 468 | isa = XCConfigurationList; 469 | buildConfigurations = ( 470 | 8183CA2E1D002A31009ECFF0 /* Debug */, 471 | 8183CA2F1D002A31009ECFF0 /* Release */, 472 | ); 473 | defaultConfigurationIsVisible = 0; 474 | defaultConfigurationName = Release; 475 | }; 476 | /* End XCConfigurationList section */ 477 | }; 478 | rootObject = 813CB9821CF84AE000129D35 /* Project object */; 479 | } 480 | --------------------------------------------------------------------------------