Repository: touchlane/CampcotCollectionView Branch: master Commit: 0540049dad4c Files: 38 Total size: 130.0 KB Directory structure: gitextract_0jr27f1c/ ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CODEOWNERS ├── CampcotCollectionView.podspec ├── CampcotCollectionView.xcodeproj/ │ ├── project.pbxproj │ ├── project.xcworkspace/ │ │ └── contents.xcworkspacedata │ └── xcshareddata/ │ └── xcschemes/ │ └── CampcotCollectionView.xcscheme ├── CampcotCollectionView.xcworkspace/ │ ├── contents.xcworkspacedata │ └── xcshareddata/ │ ├── IDEWorkspaceChecks.plist │ └── WorkspaceSettings.xcsettings ├── Example/ │ ├── Example.xcodeproj/ │ │ ├── project.pbxproj │ │ ├── project.xcworkspace/ │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata/ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata/ │ │ └── xcschemes/ │ │ └── Example.xcscheme │ └── Source/ │ ├── AppDelegate.swift │ ├── CustomCollectionViewCell.swift │ ├── CustomHeaderView.swift │ ├── Images.xcassets/ │ │ ├── AppIcon.appiconset/ │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── logo.imageset/ │ │ │ └── Contents.json │ │ └── logo_splash.imageset/ │ │ └── Contents.json │ ├── Launch Screen.storyboard │ ├── Main.storyboard │ ├── StoryboardViewController.swift │ ├── Supporting Files/ │ │ └── Info.plist │ └── ViewController.swift ├── LICENSE ├── README.md ├── Source/ │ ├── CampcotCollectionView.swift │ ├── CollapsedLayout.swift │ ├── ContentSizeAdjustmentBehavior.swift │ ├── ExpandedLayout.swift │ └── Supporting Files/ │ ├── CampcotCollectionView.h │ └── Info.plist ├── Tests/ │ ├── CampcotCollectionViewTests.swift │ └── Supporting Files/ │ └── Info.plist └── scripts/ └── deploy.sh ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ # OS X .DS_Store # Xcode # # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore ## Build generated build/ DerivedData/ ## Various settings *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata/ ## Other *.moved-aside *.xccheckout *.xcscmblueprint ## Obj-C/Swift specific *.hmap *.ipa *.dSYM.zip *.dSYM ## Playgrounds timeline.xctimeline playground.xcworkspace # Swift Package Manager # # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. # Packages/ # Package.pins .build/ # CocoaPods # # We recommend against adding the Pods directory to your .gitignore. However # you should judge for yourself, the pros and cons are mentioned at: # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control # Pods/ ================================================ FILE: .travis.yml ================================================ os: osx osx_image: xcode13.1 language: objective-c before_deploy: - gem install cocoapods - pod repo add-cdn trunk 'https://cdn.cocoapods.org/' deploy: provider: script script: ./scripts/deploy.sh on: tags: true script: - set -o pipefail && xcodebuild -scheme CampcotCollectionView -workspace CampcotCollectionView.xcworkspace -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.0' build test | xcpretty --color - pod lib lint after_success: - bash <(curl -s https://codecov.io/bash) ================================================ FILE: CHANGELOG.md ================================================ # Changelog for CampcotCollectionView 0.0.8 ### Added * Optional `isExpanded` parameter to `CampcotCollectionView` initializer. # Changelog for CampcotCollectionView 0.0.7 ### Fixed * Fixed crash with storyboard implementation. ### Added * Storyboard support. * Properties in `Attributes Inspector` for `CampcotCollectionView`. * Example for storyboard implementation. # Changelog for CampcotCollectionView 0.0.6 ### Added * `contentSizeAdjustmentBehavior` property allows to manage content size calculation. # Changelog for CampcotCollectionView 0.0.5 ### Added * Layout supports more than 2 items in row. ### Fixed * Fixed bug with pinned header position when `contentInset.top` is bigger than section height. # Changelog for CampcotCollectionView 0.0.4 ### Changed * Updates for Swift 5.0 # Changelog for CampcotCollectionView 0.0.2 ### Added * Example UI update. # Changelog for CampcotCollectionView 0.0.1 ### Added * Initial setup. ================================================ FILE: CODEOWNERS ================================================ * @VadzimMarozau ================================================ FILE: CampcotCollectionView.podspec ================================================ Pod::Spec.new do |s| s.name = 'CampcotCollectionView' s.version = '0.0.8' s.summary = 'CapmcotCollectionView is custom UICollectionView that allows to expand and collapse sections.' s.description = 'This library provides a custom UICollectionView that allows to expand and collapse sections.' \ 'It provides a simple API to manage collection view appearance.' s.homepage = 'https://github.com/touchlane/CampcotCollectionView' s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { 'Touchlane LLC' => 'tech@touchlane.com' } s.source = { :git => 'https://github.com/touchlane/CampcotCollectionView.git', :tag => s.version.to_s } s.ios.deployment_target = '9.0' s.source_files = 'Source/*.swift' s.swift_versions = ['5.0'] end ================================================ FILE: CampcotCollectionView.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 48; objects = { /* Begin PBXBuildFile section */ DD35D937201B57C80049ED03 /* CampcotCollectionView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD35D92D201B57C80049ED03 /* CampcotCollectionView.framework */; }; DD35D93C201B57C80049ED03 /* CampcotCollectionViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD35D93B201B57C80049ED03 /* CampcotCollectionViewTests.swift */; }; DD35D93E201B57C80049ED03 /* CampcotCollectionView.h in Headers */ = {isa = PBXBuildFile; fileRef = DD35D930201B57C80049ED03 /* CampcotCollectionView.h */; settings = {ATTRIBUTES = (Public, ); }; }; DD35D94A201B5E280049ED03 /* ExpandedLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD35D949201B5E280049ED03 /* ExpandedLayout.swift */; }; DD35D98A201B66B40049ED03 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = DD35D987201B66B40049ED03 /* LICENSE */; }; DD35D98B201B66B40049ED03 /* CampcotCollectionView.podspec in Resources */ = {isa = PBXBuildFile; fileRef = DD35D988201B66B40049ED03 /* CampcotCollectionView.podspec */; }; DD35D98C201B66B40049ED03 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = DD35D989201B66B40049ED03 /* README.md */; }; DDC6199F2369C68100B6981E /* ContentSizeAdjustmentBehavior.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC6199E2369C68100B6981E /* ContentSizeAdjustmentBehavior.swift */; }; DDFB5C80201F451E00F8E164 /* CollapsedLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDFB5C7F201F451E00F8E164 /* CollapsedLayout.swift */; }; DDFB5C82201F522B00F8E164 /* CampcotCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDFB5C81201F522B00F8E164 /* CampcotCollectionView.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ DD35D938201B57C80049ED03 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = DD35D924201B57C80049ED03 /* Project object */; proxyType = 1; remoteGlobalIDString = DD35D92C201B57C80049ED03; remoteInfo = ExpandableLayout; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ DD35D92D201B57C80049ED03 /* CampcotCollectionView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CampcotCollectionView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; DD35D930201B57C80049ED03 /* CampcotCollectionView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CampcotCollectionView.h; sourceTree = ""; }; DD35D931201B57C80049ED03 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; DD35D936201B57C80049ED03 /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; DD35D93B201B57C80049ED03 /* CampcotCollectionViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampcotCollectionViewTests.swift; sourceTree = ""; }; DD35D93D201B57C80049ED03 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; DD35D949201B5E280049ED03 /* ExpandedLayout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExpandedLayout.swift; sourceTree = ""; }; DD35D987201B66B40049ED03 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; DD35D988201B66B40049ED03 /* CampcotCollectionView.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CampcotCollectionView.podspec; sourceTree = ""; }; DD35D989201B66B40049ED03 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; tabWidth = 3; }; DDC6199E2369C68100B6981E /* ContentSizeAdjustmentBehavior.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentSizeAdjustmentBehavior.swift; sourceTree = ""; }; DDFB5C7F201F451E00F8E164 /* CollapsedLayout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CollapsedLayout.swift; sourceTree = ""; }; DDFB5C81201F522B00F8E164 /* CampcotCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampcotCollectionView.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ DD35D929201B57C80049ED03 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; DD35D933201B57C80049ED03 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( DD35D937201B57C80049ED03 /* CampcotCollectionView.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ DD35D923201B57C80049ED03 = { isa = PBXGroup; children = ( DD35D986201B66A00049ED03 /* Metadata */, DD35D947201B58910049ED03 /* Source */, DD35D93A201B57C80049ED03 /* Tests */, DD35D92E201B57C80049ED03 /* Products */, ); sourceTree = ""; }; DD35D92E201B57C80049ED03 /* Products */ = { isa = PBXGroup; children = ( DD35D92D201B57C80049ED03 /* CampcotCollectionView.framework */, DD35D936201B57C80049ED03 /* Tests.xctest */, ); name = Products; sourceTree = ""; }; DD35D92F201B57C80049ED03 /* Supporting Files */ = { isa = PBXGroup; children = ( DD35D930201B57C80049ED03 /* CampcotCollectionView.h */, DD35D931201B57C80049ED03 /* Info.plist */, ); path = "Supporting Files"; sourceTree = ""; }; DD35D93A201B57C80049ED03 /* Tests */ = { isa = PBXGroup; children = ( DD35D93B201B57C80049ED03 /* CampcotCollectionViewTests.swift */, DD35D948201B59420049ED03 /* Supporting Files */, ); path = Tests; sourceTree = ""; }; DD35D947201B58910049ED03 /* Source */ = { isa = PBXGroup; children = ( DD35D92F201B57C80049ED03 /* Supporting Files */, DDFB5C81201F522B00F8E164 /* CampcotCollectionView.swift */, DD35D949201B5E280049ED03 /* ExpandedLayout.swift */, DDFB5C7F201F451E00F8E164 /* CollapsedLayout.swift */, DDC6199E2369C68100B6981E /* ContentSizeAdjustmentBehavior.swift */, ); path = Source; sourceTree = ""; }; DD35D948201B59420049ED03 /* Supporting Files */ = { isa = PBXGroup; children = ( DD35D93D201B57C80049ED03 /* Info.plist */, ); path = "Supporting Files"; sourceTree = ""; }; DD35D986201B66A00049ED03 /* Metadata */ = { isa = PBXGroup; children = ( DD35D987201B66B40049ED03 /* LICENSE */, DD35D989201B66B40049ED03 /* README.md */, DD35D988201B66B40049ED03 /* CampcotCollectionView.podspec */, ); name = Metadata; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ DD35D92A201B57C80049ED03 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( DD35D93E201B57C80049ED03 /* CampcotCollectionView.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ DD35D92C201B57C80049ED03 /* CampcotCollectionView */ = { isa = PBXNativeTarget; buildConfigurationList = DD35D941201B57C80049ED03 /* Build configuration list for PBXNativeTarget "CampcotCollectionView" */; buildPhases = ( DD35D928201B57C80049ED03 /* Sources */, DD35D929201B57C80049ED03 /* Frameworks */, DD35D92A201B57C80049ED03 /* Headers */, DD35D92B201B57C80049ED03 /* Resources */, ); buildRules = ( ); dependencies = ( ); name = CampcotCollectionView; productName = ExpandableLayout; productReference = DD35D92D201B57C80049ED03 /* CampcotCollectionView.framework */; productType = "com.apple.product-type.framework"; }; DD35D935201B57C80049ED03 /* Tests */ = { isa = PBXNativeTarget; buildConfigurationList = DD35D944201B57C80049ED03 /* Build configuration list for PBXNativeTarget "Tests" */; buildPhases = ( DD35D932201B57C80049ED03 /* Sources */, DD35D933201B57C80049ED03 /* Frameworks */, DD35D934201B57C80049ED03 /* Resources */, ); buildRules = ( ); dependencies = ( DD35D939201B57C80049ED03 /* PBXTargetDependency */, ); name = Tests; productName = ExpandableLayoutTests; productReference = DD35D936201B57C80049ED03 /* Tests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ DD35D924201B57C80049ED03 /* Project object */ = { isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; LastUpgradeCheck = 1010; ORGANIZATIONNAME = "Touchlane LLC"; TargetAttributes = { DD35D92C201B57C80049ED03 = { CreatedOnToolsVersion = 9.2; LastSwiftMigration = 1020; ProvisioningStyle = Automatic; }; DD35D935201B57C80049ED03 = { CreatedOnToolsVersion = 9.2; LastSwiftMigration = 1020; ProvisioningStyle = Automatic; }; }; }; buildConfigurationList = DD35D927201B57C80049ED03 /* Build configuration list for PBXProject "CampcotCollectionView" */; compatibilityVersion = "Xcode 8.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, ); mainGroup = DD35D923201B57C80049ED03; productRefGroup = DD35D92E201B57C80049ED03 /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( DD35D92C201B57C80049ED03 /* CampcotCollectionView */, DD35D935201B57C80049ED03 /* Tests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ DD35D92B201B57C80049ED03 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( DD35D98C201B66B40049ED03 /* README.md in Resources */, DD35D98B201B66B40049ED03 /* CampcotCollectionView.podspec in Resources */, DD35D98A201B66B40049ED03 /* LICENSE in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; DD35D934201B57C80049ED03 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ DD35D928201B57C80049ED03 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( DDFB5C82201F522B00F8E164 /* CampcotCollectionView.swift in Sources */, DD35D94A201B5E280049ED03 /* ExpandedLayout.swift in Sources */, DDFB5C80201F451E00F8E164 /* CollapsedLayout.swift in Sources */, DDC6199F2369C68100B6981E /* ContentSizeAdjustmentBehavior.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; DD35D932201B57C80049ED03 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( DD35D93C201B57C80049ED03 /* CampcotCollectionViewTests.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ DD35D939201B57C80049ED03 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = DD35D92C201B57C80049ED03 /* CampcotCollectionView */; targetProxy = DD35D938201B57C80049ED03 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ DD35D93F201B57C80049ED03 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; name = Debug; }; DD35D940201B57C80049ED03 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; name = Release; }; DD35D942201B57C80049ED03 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = "Source/Supporting Files/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = io.touchlane.CampcotCollectionView; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; DD35D943201B57C80049ED03 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = "Source/Supporting Files/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = io.touchlane.CampcotCollectionView; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; DD35D945201B57C80049ED03 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; INFOPLIST_FILE = "Tests/Supporting Files/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = io.touchlane.CampcotCollectionViewTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; DD35D946201B57C80049ED03 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; INFOPLIST_FILE = "Tests/Supporting Files/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = io.touchlane.CampcotCollectionViewTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ DD35D927201B57C80049ED03 /* Build configuration list for PBXProject "CampcotCollectionView" */ = { isa = XCConfigurationList; buildConfigurations = ( DD35D93F201B57C80049ED03 /* Debug */, DD35D940201B57C80049ED03 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; DD35D941201B57C80049ED03 /* Build configuration list for PBXNativeTarget "CampcotCollectionView" */ = { isa = XCConfigurationList; buildConfigurations = ( DD35D942201B57C80049ED03 /* Debug */, DD35D943201B57C80049ED03 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; DD35D944201B57C80049ED03 /* Build configuration list for PBXNativeTarget "Tests" */ = { isa = XCConfigurationList; buildConfigurations = ( DD35D945201B57C80049ED03 /* Debug */, DD35D946201B57C80049ED03 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = DD35D924201B57C80049ED03 /* Project object */; } ================================================ FILE: CampcotCollectionView.xcodeproj/project.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: CampcotCollectionView.xcodeproj/xcshareddata/xcschemes/CampcotCollectionView.xcscheme ================================================ ================================================ FILE: CampcotCollectionView.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: CampcotCollectionView.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: CampcotCollectionView.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings ================================================ ================================================ FILE: Example/Example.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 48; objects = { /* Begin PBXBuildFile section */ 86EB284F203DE4920052BFA2 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 86EB284D203DE4920052BFA2 /* Launch Screen.storyboard */; }; A3B228A923ED503D00757A28 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A3B228A823ED503D00757A28 /* Main.storyboard */; }; A3B228AC23ED525100757A28 /* StoryboardViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3B228AB23ED525100757A28 /* StoryboardViewController.swift */; }; DD35D958201B5F390049ED03 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD35D957201B5F390049ED03 /* AppDelegate.swift */; }; DD35D95A201B5F390049ED03 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD35D959201B5F390049ED03 /* ViewController.swift */; }; DD35D95F201B5F390049ED03 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DD35D95E201B5F390049ED03 /* Images.xcassets */; }; DD35D980201B63F70049ED03 /* CustomHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD35D97E201B63F70049ED03 /* CustomHeaderView.swift */; }; DD35D981201B63F70049ED03 /* CustomCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD35D97F201B63F70049ED03 /* CustomCollectionViewCell.swift */; }; DDFB5C7A201F36BC00F8E164 /* CampcotCollectionView.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = DDFB5C75201F367A00F8E164 /* CampcotCollectionView.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ DDFB5C74201F367A00F8E164 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = DD35D96E201B62BA0049ED03 /* CampcotCollectionView.xcodeproj */; proxyType = 2; remoteGlobalIDString = DD35D92D201B57C80049ED03; remoteInfo = CampcotCollectionView; }; DDFB5C76201F367A00F8E164 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = DD35D96E201B62BA0049ED03 /* CampcotCollectionView.xcodeproj */; proxyType = 2; remoteGlobalIDString = DD35D936201B57C80049ED03; remoteInfo = Tests; }; DDFB5C78201F36B400F8E164 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = DD35D96E201B62BA0049ED03 /* CampcotCollectionView.xcodeproj */; proxyType = 1; remoteGlobalIDString = DD35D92C201B57C80049ED03; remoteInfo = CampcotCollectionView; }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ DD35D979201B62CE0049ED03 /* Copy Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( DDFB5C7A201F36BC00F8E164 /* CampcotCollectionView.framework in Copy Frameworks */, ); name = "Copy Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ 86EB284D203DE4920052BFA2 /* Launch Screen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = ""; }; A3B228A823ED503D00757A28 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; A3B228AB23ED525100757A28 /* StoryboardViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StoryboardViewController.swift; sourceTree = ""; }; DD35D954201B5F390049ED03 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; DD35D957201B5F390049ED03 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; DD35D959201B5F390049ED03 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; DD35D95E201B5F390049ED03 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; DD35D963201B5F390049ED03 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; DD35D96E201B62BA0049ED03 /* CampcotCollectionView.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CampcotCollectionView.xcodeproj; path = ../CampcotCollectionView.xcodeproj; sourceTree = ""; }; DD35D97E201B63F70049ED03 /* CustomHeaderView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomHeaderView.swift; sourceTree = ""; }; DD35D97F201B63F70049ED03 /* CustomCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomCollectionViewCell.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ DD35D951201B5F390049ED03 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ DD35D94B201B5F390049ED03 = { isa = PBXGroup; children = ( DD35D956201B5F390049ED03 /* Source */, DD35D955201B5F390049ED03 /* Products */, DD35D96E201B62BA0049ED03 /* CampcotCollectionView.xcodeproj */, ); sourceTree = ""; }; DD35D955201B5F390049ED03 /* Products */ = { isa = PBXGroup; children = ( DD35D954201B5F390049ED03 /* Example.app */, ); name = Products; sourceTree = ""; }; DD35D956201B5F390049ED03 /* Source */ = { isa = PBXGroup; children = ( DD35D959201B5F390049ED03 /* ViewController.swift */, A3B228AB23ED525100757A28 /* StoryboardViewController.swift */, DD35D97E201B63F70049ED03 /* CustomHeaderView.swift */, DD35D97F201B63F70049ED03 /* CustomCollectionViewCell.swift */, DD35D957201B5F390049ED03 /* AppDelegate.swift */, DD35D95E201B5F390049ED03 /* Images.xcassets */, 86EB284D203DE4920052BFA2 /* Launch Screen.storyboard */, A3B228A823ED503D00757A28 /* Main.storyboard */, DD35D969201B5FB10049ED03 /* Supporting Files */, ); path = Source; sourceTree = ""; }; DD35D969201B5FB10049ED03 /* Supporting Files */ = { isa = PBXGroup; children = ( DD35D963201B5F390049ED03 /* Info.plist */, ); path = "Supporting Files"; sourceTree = ""; }; DDFB5C70201F367800F8E164 /* Products */ = { isa = PBXGroup; children = ( DDFB5C75201F367A00F8E164 /* CampcotCollectionView.framework */, DDFB5C77201F367A00F8E164 /* Tests.xctest */, ); name = Products; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ DD35D953201B5F390049ED03 /* Example */ = { isa = PBXNativeTarget; buildConfigurationList = DD35D966201B5F390049ED03 /* Build configuration list for PBXNativeTarget "Example" */; buildPhases = ( DD35D950201B5F390049ED03 /* Sources */, DD35D951201B5F390049ED03 /* Frameworks */, DD35D952201B5F390049ED03 /* Resources */, DD35D979201B62CE0049ED03 /* Copy Frameworks */, ); buildRules = ( ); dependencies = ( DDFB5C79201F36B400F8E164 /* PBXTargetDependency */, ); name = Example; productName = Example; productReference = DD35D954201B5F390049ED03 /* Example.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ DD35D94C201B5F390049ED03 /* Project object */ = { isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; LastUpgradeCheck = 1010; ORGANIZATIONNAME = "Touchlane LLC"; TargetAttributes = { DD35D953201B5F390049ED03 = { CreatedOnToolsVersion = 9.2; LastSwiftMigration = 1020; ProvisioningStyle = Automatic; }; }; }; buildConfigurationList = DD35D94F201B5F390049ED03 /* Build configuration list for PBXProject "Example" */; compatibilityVersion = "Xcode 8.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = DD35D94B201B5F390049ED03; productRefGroup = DD35D955201B5F390049ED03 /* Products */; projectDirPath = ""; projectReferences = ( { ProductGroup = DDFB5C70201F367800F8E164 /* Products */; ProjectRef = DD35D96E201B62BA0049ED03 /* CampcotCollectionView.xcodeproj */; }, ); projectRoot = ""; targets = ( DD35D953201B5F390049ED03 /* Example */, ); }; /* End PBXProject section */ /* Begin PBXReferenceProxy section */ DDFB5C75201F367A00F8E164 /* CampcotCollectionView.framework */ = { isa = PBXReferenceProxy; fileType = wrapper.framework; path = CampcotCollectionView.framework; remoteRef = DDFB5C74201F367A00F8E164 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; DDFB5C77201F367A00F8E164 /* Tests.xctest */ = { isa = PBXReferenceProxy; fileType = wrapper.cfbundle; path = Tests.xctest; remoteRef = DDFB5C76201F367A00F8E164 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXReferenceProxy section */ /* Begin PBXResourcesBuildPhase section */ DD35D952201B5F390049ED03 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 86EB284F203DE4920052BFA2 /* Launch Screen.storyboard in Resources */, DD35D95F201B5F390049ED03 /* Images.xcassets in Resources */, A3B228A923ED503D00757A28 /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ DD35D950201B5F390049ED03 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( A3B228AC23ED525100757A28 /* StoryboardViewController.swift in Sources */, DD35D95A201B5F390049ED03 /* ViewController.swift in Sources */, DD35D981201B63F70049ED03 /* CustomCollectionViewCell.swift in Sources */, DD35D980201B63F70049ED03 /* CustomHeaderView.swift in Sources */, DD35D958201B5F390049ED03 /* AppDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ DDFB5C79201F36B400F8E164 /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = CampcotCollectionView; targetProxy = DDFB5C78201F36B400F8E164 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ DD35D964201B5F390049ED03 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; }; name = Debug; }; DD35D965201B5F390049ED03 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; VALIDATE_PRODUCT = YES; }; name = Release; }; DD35D967201B5F390049ED03 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = NPGMYNXF85; INFOPLIST_FILE = "Source/Supporting Files/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = io.touchlane.Example; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; DD35D968201B5F390049ED03 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = NPGMYNXF85; INFOPLIST_FILE = "Source/Supporting Files/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = io.touchlane.Example; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ DD35D94F201B5F390049ED03 /* Build configuration list for PBXProject "Example" */ = { isa = XCConfigurationList; buildConfigurations = ( DD35D964201B5F390049ED03 /* Debug */, DD35D965201B5F390049ED03 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; DD35D966201B5F390049ED03 /* Build configuration list for PBXNativeTarget "Example" */ = { isa = XCConfigurationList; buildConfigurations = ( DD35D967201B5F390049ED03 /* Debug */, DD35D968201B5F390049ED03 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = DD35D94C201B5F390049ED03 /* Project object */; } ================================================ FILE: Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: Example/Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: Example/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme ================================================ ================================================ FILE: Example/Source/AppDelegate.swift ================================================ // // AppDelegate.swift // Example // // Created by Vadim Morozov on 1/26/18. // Copyright © 2018 Touchlane LLC. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? let rootVC = ViewController() func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { self.window = UIWindow(frame: UIScreen.main.bounds) self.window?.rootViewController = rootVC self.window?.makeKeyAndVisible() return true } } ================================================ FILE: Example/Source/CustomCollectionViewCell.swift ================================================ // // CustomCollectionViewCell.swift // Example // // Created by Panda Systems on 1/8/18. // Copyright © 2018 Touchlane LLC. All rights reserved. // import UIKit class CustomCollectionViewCell: UICollectionViewCell { static let reuseIdentifier = "CustomCell" private let internalBackgroundColor = UIColor(red: 61 / 255, green: 86 / 255, blue: 166 / 255, alpha: 1) private let textLabel = UILabel() var text: String? { didSet { self.textLabel.text = text } } override init(frame: CGRect) { super.init(frame: .zero) self.commonInit() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.commonInit() } private func commonInit() { self.clipsToBounds = true self.backgroundColor = self.internalBackgroundColor self.layer.cornerRadius = 10 self.textLabel.font = UIFont.boldSystemFont(ofSize: 24) self.textLabel.translatesAutoresizingMaskIntoConstraints = false self.textLabel.textColor = .white self.addSubview(self.textLabel) self.activateTextLabelConstraints(view: self.textLabel, anchorView: self) } override func apply(_ layoutAttributes: UICollectionViewLayoutAttributes) { super.apply(layoutAttributes) self.layoutIfNeeded() } private func activateTextLabelConstraints(view: UIView, anchorView: UIView) { NSLayoutConstraint.activate([ view.centerXAnchor.constraint(equalTo: anchorView.centerXAnchor), view.centerYAnchor.constraint(equalTo: anchorView.centerYAnchor) ]) } } ================================================ FILE: Example/Source/CustomHeaderView.swift ================================================ // // CustomHeaderView.swift // Example // // Created by Panda Systems on 1/8/18. // Copyright © 2018 Touchlane LLC. All rights reserved. // import UIKit protocol CustomHeaderViewDelegate: class { func selectSection(section: Int) } class CustomHeaderView: UICollectionReusableView { static let reuseIdentifier = "CustomHeaderView" private let internalBackgroundColor = UIColor.purple private let textLeadingOffset: CGFloat = 20 private let textLabel = UILabel() weak var delegate: CustomHeaderViewDelegate? var section: Int? var text: String? { didSet { self.textLabel.text = text } } override init(frame: CGRect) { super.init(frame: .zero) self.commonInit() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.commonInit() } private func commonInit() { self.backgroundColor = self.internalBackgroundColor self.textLabel.translatesAutoresizingMaskIntoConstraints = false self.textLabel.textColor = .white self.textLabel.textAlignment = .center self.textLabel.font = UIFont.boldSystemFont(ofSize: 24) self.addSubview(self.textLabel) self.activateTextLabelConstraints(view: self.textLabel, anchorView: self) let tapRecognizer = UITapGestureRecognizer(target: self, action: #selector(tapOnView(sender:))) self.addGestureRecognizer(tapRecognizer) } override func prepareForReuse() { super.prepareForReuse() self.text = nil self.section = nil } override func apply(_ layoutAttributes: UICollectionViewLayoutAttributes) { super.apply(layoutAttributes) self.layoutIfNeeded() } } private typealias CustomHeaderViewPrivate = CustomHeaderView private extension CustomHeaderViewPrivate { func activateTextLabelConstraints(view: UIView, anchorView: UIView) { NSLayoutConstraint.activate([ view.centerXAnchor.constraint(equalTo: anchorView.centerXAnchor), view.centerYAnchor.constraint(equalTo: anchorView.centerYAnchor) ]) } @objc func tapOnView(sender: UIGestureRecognizer) { guard let section = self.section else { return } self.delegate?.selectSection(section: section) } } ================================================ FILE: Example/Source/Images.xcassets/AppIcon.appiconset/Contents.json ================================================ { "images" : [ { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-App-20x20@2x.png", "scale" : "2x" }, { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-App-20x20@3x.png", "scale" : "3x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@2x.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@3x.png", "scale" : "3x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-App-40x40@2x.png", "scale" : "2x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-App-40x40@3x.png", "scale" : "3x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-App-60x60@2x.png", "scale" : "2x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-App-60x60@3x.png", "scale" : "3x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "Icon-App-20x20@1x.png", "scale" : "1x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "Icon-App-20x20@2x-1.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "Icon-App-29x29@1x.png", "scale" : "1x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "Icon-App-29x29@2x-1.png", "scale" : "2x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "Icon-App-40x40@1x.png", "scale" : "1x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "Icon-App-40x40@2x-1.png", "scale" : "2x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "Icon-App-76x76@1x.png", "scale" : "1x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "Icon-App-76x76@2x.png", "scale" : "2x" }, { "size" : "83.5x83.5", "idiom" : "ipad", "filename" : "Icon-App-83.5x83.5@2x.png", "scale" : "2x" }, { "size" : "1024x1024", "idiom" : "ios-marketing", "filename" : "ItunesArtwork@2x.png", "scale" : "1x" }, { "size" : "24x24", "idiom" : "watch", "filename" : "Icon-24@2x.png", "scale" : "2x", "role" : "notificationCenter", "subtype" : "38mm" }, { "size" : "27.5x27.5", "idiom" : "watch", "filename" : "Icon-27.5@2x.png", "scale" : "2x", "role" : "notificationCenter", "subtype" : "42mm" }, { "size" : "29x29", "idiom" : "watch", "filename" : "Icon-29@2x.png", "role" : "companionSettings", "scale" : "2x" }, { "size" : "29x29", "idiom" : "watch", "filename" : "Icon-29@3x.png", "role" : "companionSettings", "scale" : "3x" }, { "size" : "40x40", "idiom" : "watch", "filename" : "Icon-40@2x.png", "scale" : "2x", "role" : "appLauncher", "subtype" : "38mm" }, { "size" : "44x44", "idiom" : "watch", "scale" : "2x", "role" : "appLauncher", "subtype" : "40mm" }, { "size" : "50x50", "idiom" : "watch", "scale" : "2x", "role" : "appLauncher", "subtype" : "44mm" }, { "size" : "86x86", "idiom" : "watch", "filename" : "Icon-86@2x.png", "scale" : "2x", "role" : "quickLook", "subtype" : "38mm" }, { "size" : "98x98", "idiom" : "watch", "filename" : "Icon-98@2x.png", "scale" : "2x", "role" : "quickLook", "subtype" : "42mm" }, { "size" : "108x108", "idiom" : "watch", "scale" : "2x", "role" : "quickLook", "subtype" : "44mm" }, { "idiom" : "watch-marketing", "size" : "1024x1024", "scale" : "1x" }, { "size" : "44x44", "idiom" : "watch", "filename" : "Icon-44@2x.png", "scale" : "2x", "role" : "longLook", "subtype" : "42mm" } ], "info" : { "version" : 1, "author" : "xcode" }, "properties" : { "pre-rendered" : true } } ================================================ FILE: Example/Source/Images.xcassets/Contents.json ================================================ { "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: Example/Source/Images.xcassets/logo.imageset/Contents.json ================================================ { "images" : [ { "idiom" : "universal", "filename" : "logo.pdf", "scale" : "1x" }, { "idiom" : "universal", "scale" : "2x" }, { "idiom" : "universal", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: Example/Source/Images.xcassets/logo_splash.imageset/Contents.json ================================================ { "images" : [ { "idiom" : "universal", "filename" : "logo_splash.png", "scale" : "1x" }, { "idiom" : "universal", "scale" : "2x" }, { "idiom" : "universal", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: Example/Source/Launch Screen.storyboard ================================================ ================================================ FILE: Example/Source/Main.storyboard ================================================ ================================================ FILE: Example/Source/StoryboardViewController.swift ================================================ // // StoryboardViewController.swift // Example // // Created by Alex Yanski on 2/7/20. // Copyright © 2020 Touchlane LLC. All rights reserved. // import UIKit import CampcotCollectionView class StoryboardViewController: UIViewController { @IBOutlet weak var collectionView: CampcotCollectionView! let itemsInRow = 2 var itemsInSection: [Int: Int] = [:] override var preferredStatusBarStyle: UIStatusBarStyle { return .default } } extension StoryboardViewController: UICollectionViewDataSource { func numberOfSections(in collectionView: UICollectionView) -> Int { return 20 } func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { if let numberOfItems = itemsInSection[section] { return numberOfItems } let numberOfItems = Int.random(in: 1...6) itemsInSection[section] = numberOfItems return numberOfItems } func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell( withReuseIdentifier: CustomCollectionViewCell.reuseIdentifier, for: indexPath) as! CustomCollectionViewCell cell.text = "\(indexPath.section):\(indexPath.row)" return cell } func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView { let view = collectionView.dequeueReusableSupplementaryView( ofKind: kind, withReuseIdentifier: CustomHeaderView.reuseIdentifier, for: indexPath) as! CustomHeaderView view.section = indexPath.section view.text = "section: \(indexPath.section)" view.delegate = self return view } } extension StoryboardViewController: UICollectionViewDelegateFlowLayout { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let interitemSpacing = self.collectionView.minimumInteritemSpacing * CGFloat(itemsInRow - 1) let totalSpacing = collectionView.bounds.width - self.collectionView.sectionInset.left - self.collectionView.sectionInset.right - interitemSpacing let width = totalSpacing / CGFloat(itemsInRow) return CGSize(width: width, height: width) } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSize { return CGSize(width: UIScreen.main.bounds.size.width, height: 60) } } extension StoryboardViewController: CustomHeaderViewDelegate { func selectSection(section: Int) { self.collectionView.toggle(to: section, animated: true) } } ================================================ FILE: Example/Source/Supporting Files/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName CampcotCollectionView CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType APPL CFBundleShortVersionString 1.0 CFBundleVersion 1 LSRequiresIPhoneOS UILaunchStoryboardName Launch Screen UIMainStoryboardFile Main UIRequiredDeviceCapabilities armv7 UIStatusBarStyle UIStatusBarStyleDefault UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight ================================================ FILE: Example/Source/ViewController.swift ================================================ // // ViewController.swift // Example // // Created by Panda Systems on 12/19/17. // Copyright © 2018 Touchlane LLC. All rights reserved. // import UIKit import CampcotCollectionView class ViewController: UIViewController { let collectionView = CampcotCollectionView() let interitemSpacing: CGFloat = 10 let lineSpacing: CGFloat = 10 let sectionInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10) let backgroundColor = UIColor(red: 189 / 255, green: 195 / 255, blue: 199 / 255, alpha: 1) let itemsInRow = 2 var itemsInSection: [Int: Int] = [:] override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = backgroundColor self.collectionView.backgroundColor = backgroundColor self.collectionView.clipsToBounds = true self.collectionView.sectionInset = sectionInsets self.collectionView.minimumSectionSpacing = 1 self.collectionView.minimumInteritemSpacing = interitemSpacing self.collectionView.minimumLineSpacing = lineSpacing self.collectionView.sectionHeadersPinToVisibleBounds = true self.collectionView.register( CustomCollectionViewCell.self, forCellWithReuseIdentifier: CustomCollectionViewCell.reuseIdentifier ) self.collectionView.register( CustomHeaderView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: CustomHeaderView.reuseIdentifier ) self.collectionView.delegate = self self.collectionView.dataSource = self self.collectionView.translatesAutoresizingMaskIntoConstraints = false self.view.addSubview(self.collectionView) self.activateCollectionViewConstraints(view: self.collectionView, anchorView: self.view) } override var preferredStatusBarStyle: UIStatusBarStyle { return .default } private func activateCollectionViewConstraints(view: UIView, anchorView: UIView) { NSLayoutConstraint.activate([ view.leadingAnchor.constraint(equalTo: anchorView.leadingAnchor), view.trailingAnchor.constraint(equalTo: anchorView.trailingAnchor), view.topAnchor.constraint(equalTo: self.topLayoutGuide.bottomAnchor), view.bottomAnchor.constraint(equalTo: self.bottomLayoutGuide.topAnchor) ]) } } extension ViewController: UICollectionViewDataSource { func numberOfSections(in collectionView: UICollectionView) -> Int { return 20 } func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { if let numberOfItems = itemsInSection[section] { return numberOfItems } let numberOfItems = Int.random(in: 1...6) itemsInSection[section] = numberOfItems return numberOfItems } func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell( withReuseIdentifier: CustomCollectionViewCell.reuseIdentifier, for: indexPath) as! CustomCollectionViewCell cell.text = "\(indexPath.section):\(indexPath.row)" return cell } func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView { let view = collectionView.dequeueReusableSupplementaryView( ofKind: kind, withReuseIdentifier: CustomHeaderView.reuseIdentifier, for: indexPath) as! CustomHeaderView view.section = indexPath.section view.text = "section: \(indexPath.section)" view.delegate = self return view } } extension ViewController: UICollectionViewDelegateFlowLayout { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let width = (collectionView.bounds.width - sectionInsets.left - sectionInsets.right - interitemSpacing * CGFloat(itemsInRow - 1)) / CGFloat(itemsInRow) return CGSize(width: width, height: width) } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSize { return CGSize(width: UIScreen.main.bounds.size.width, height: 60) } } extension ViewController: CustomHeaderViewDelegate { func selectSection(section: Int) { self.collectionView.toggle(to: section, animated: true) } } ================================================ FILE: LICENSE ================================================ Copyright (c) 2018 Touchlane LLC tech@touchlane.com 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: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 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. ================================================ FILE: README.md ================================================ ![LOGO](https://github.com/touchlane/CampcotCollectionView/blob/master/Assets/logo.svg) ![Language](https://img.shields.io/badge/swift-5.0-orange.svg) [![Build Status](https://travis-ci.org/touchlane/CampcotCollectionView.svg?branch=master)](https://travis-ci.org/touchlane/CampcotCollectionView) [![codecov](https://codecov.io/gh/touchlane/CampcotCollectionView/branch/master/graph/badge.svg)](https://codecov.io/gh/touchlane/CampcotCollectionView) [![Version](https://img.shields.io/cocoapods/v/CampcotCollectionView.svg?style=flat)](http://cocoapods.org/pods/CampcotCollectionView) [![License](https://img.shields.io/cocoapods/l/CampcotCollectionView.svg?style=flat)](http://cocoapods.org/pods/CampcotCollectionView) [![Platform](https://img.shields.io/cocoapods/p/CampcotCollectionView.svg?style=flat)](http://cocoapods.org/pods/CampcotCollectionView) This library provides a custom `UICollectionView` that allows to expand and collapse sections. Provides a simple API to manage collection view appearance. ![CampcotCollectionView](Example/Assets/campcot.gif) # Requirements * iOS 9.0+ * Xcode 10.2+ * Swift 5.0+ # Installation ## CocoaPods [CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command: ```$ gem install cocoapods``` To integrate CampcotCollectionView into your Xcode project using CocoaPods, specify it in your ```Podfile```: ```ruby source 'https://github.com/CocoaPods/Specs.git' platform :ios, '9.0' use_frameworks! target '' do pod 'CampcotCollectionView' end ``` Then, run the following command: ```$ pod install``` # Usage ### Manual Setup ```swift import CampcotCollectionView ``` 1. Create CollectionView ```swift let campcotCollectionView = CampcotCollectionView() ``` 2. Add `campcotCollectionView` to view hierarchy. 3. Call `toggle` method on `campcotCollectionView`. ```swift public func toggle(to section: Int, offsetCorrection: CGFloat = default, animated: Bool, completion: ((Bool) -> Void)? = default) ``` ### Storyboard Setup 1. Add UICollectionView to your Storyboard. 2. In `Identity Inspector` set the `Class` property to `CampcotCollectionView`. 3. Open `Attributes Inspector` and set the `Layout` property to `Custom`. Set `Class` property to either `ExpandedLayout` or `CollapsedLayout`. 4. Create outlet for your collectionView. 5. Set datasource and delegate for collectionView. 5. Set the settings for collectionView in `Attributes Inspector` or manualy. # Documentation ### CampcotCollectionView A Boolean value that determines whether the sections are expanded. ```swift public var isExpanded: Bool { get } ``` Expands all the sections. Pins a section at index `section` to the top of view bounds. `offsetCorrection` - the offset for pinned section from the top. Default value of `offsetCorrection` is `0`. `animated` - if `true` expands sections with animation. `completion` - callback for animation. ```swift public func expand(from section: Int, offsetCorrection: CGFloat = default, animated: Bool, completion: ((Bool) -> Void)? = default) ``` Collapses all the sections. Pins a section at index `section` to the top of view bounds. `offsetCorrection` - the offset for pinned section from the top. Default value of `offsetCorrection` is `0`. `animated` - if `true` collapses sections with animation. `completion` - callback for animation. ```swift public func collapse(to section: Int, offsetCorrection: CGFloat = default, animated: Bool, completion: ((Bool) -> Void)? = default) ``` Toggles current state from collapsed to expaned and vise versa. Pins a section at index `section` to the top of view bounds. `offsetCorrection` - the offset for pinned section from the top. Default value of `offsetCorrection` is `0`. `animated` - if `true` toggles sections with animation. `completion` - callback for animation. ```swift public func toggle(to section: Int, offsetCorrection: CGFloat = default, animated: Bool, completion: ((Bool) -> Void)? = default) ``` ___ ================================================ FILE: Source/CampcotCollectionView.swift ================================================ // // CampcotCollectionView.swift // CampcotCollectionView // // Created by Vadim Morozov on 1/29/18. // Copyright © 2018 Touchlane LLC. All rights reserved. // public class CampcotCollectionView: UICollectionView { private var expandedLayout: ExpandedLayout! private var collapsedLayout: CollapsedLayout! /// A Boolean value that determines whether the sections are expanded. public var isExpanded: Bool { return self.collectionViewLayout === self.expandedLayout } /// Space between section headers in collapsed state. @IBInspectable public var minimumSectionSpacing: CGFloat = 0 { didSet { self.expandedLayout.minimumSectionSpacing = minimumSectionSpacing self.collapsedLayout.minimumSectionSpacing = minimumSectionSpacing } } /// Layout minimum interitem spaceign. @IBInspectable public var minimumInteritemSpacing: CGFloat = 0 { didSet { self.expandedLayout.minimumInteritemSpacing = minimumInteritemSpacing self.collapsedLayout.minimumInteritemSpacing = minimumInteritemSpacing } } /// Layout minimum line spacing. @IBInspectable public var minimumLineSpacing: CGFloat = 0 { didSet { self.expandedLayout.minimumLineSpacing = minimumLineSpacing self.collapsedLayout.minimumLineSpacing = minimumLineSpacing } } /// Layout section inset. public var sectionInset = UIEdgeInsets.zero { didSet { self.expandedLayout.sectionInset = sectionInset self.collapsedLayout.sectionInset = sectionInset } } @IBInspectable private var topInset: CGFloat = 0 { didSet { sectionInset.top = topInset } } @IBInspectable private var bottomInset: CGFloat = 0 { didSet { sectionInset.bottom = bottomInset } } @IBInspectable private var leftInset: CGFloat = 0 { didSet { sectionInset.left = leftInset } } @IBInspectable private var rightInset: CGFloat = 0 { didSet { sectionInset.right = rightInset } } /// Layout section headers pin to visible bounds. @IBInspectable public var sectionHeadersPinToVisibleBounds: Bool = false { didSet { self.expandedLayout.sectionHeadersPinToVisibleBounds = sectionHeadersPinToVisibleBounds self.collapsedLayout.sectionHeadersPinToVisibleBounds = sectionHeadersPinToVisibleBounds } } /// Content size calculation rules. public var contentSizeAdjustmentBehavior: ContentSizeAdjustmentBehavior = .normal { didSet { self.expandedLayout.contentSizeAdjustmentBehavior = contentSizeAdjustmentBehavior self.collapsedLayout.contentSizeAdjustmentBehavior = contentSizeAdjustmentBehavior } } public init(isExpanded: Bool = true) { expandedLayout = ExpandedLayout() collapsedLayout = CollapsedLayout() super.init(frame: .zero, collectionViewLayout: isExpanded ? self.expandedLayout : self.collapsedLayout) } required public init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) if let expandedLayout = self.collectionViewLayout as? ExpandedLayout { /// When collectionViewLayout is expanded self.expandedLayout = expandedLayout self.collapsedLayout = CollapsedLayout() } else if let collapsedLayout = self.collectionViewLayout as? CollapsedLayout { /// When collectionViewLayout is collapsed self.expandedLayout = ExpandedLayout() self.collapsedLayout = collapsedLayout } else { /// By default, if collectionViewLayout was not set neither expanded nor collapsed self.expandedLayout = ExpandedLayout() self.collapsedLayout = CollapsedLayout() self.collectionViewLayout = self.expandedLayout /// Default layout } } /// Expand all sections and pin section from params to top. public func expand(from section: Int, offsetCorrection: CGFloat = 0, animated: Bool, completion: ((Bool) -> Void)? = nil) { guard !self.isExpanded else { return } self.expandedLayout.targetSection = section self.expandedLayout.offsetCorrection = offsetCorrection self.collapsedLayout.targetSection = section self.collapsedLayout.offsetCorrection = offsetCorrection self.setCollectionViewLayout(self.expandedLayout, animated: animated, completion: { completed in DispatchQueue.main.async(execute: { completion?(completed) }) }) } /// Collapse all sections and pin section from params to top. public func collapse(to section: Int, offsetCorrection: CGFloat = 0, animated: Bool, completion: ((Bool) -> Void)? = nil) { guard self.isExpanded else { return } self.expandedLayout.targetSection = section self.expandedLayout.offsetCorrection = offsetCorrection self.collapsedLayout.targetSection = section self.collapsedLayout.offsetCorrection = offsetCorrection self.setCollectionViewLayout(self.collapsedLayout, animated: animated, completion: { completed in DispatchQueue.main.async(execute: { completion?(completed) }) }) } /// Change sections mode to opposite. public func toggle(to section: Int, offsetCorrection: CGFloat = 0, animated: Bool, completion: ((Bool) -> Void)? = nil) { if self.isExpanded { self.collapse(to: section, offsetCorrection: offsetCorrection, animated: animated, completion: completion) } else { self.expand(from: section, offsetCorrection: offsetCorrection, animated: animated, completion: completion) } } } ================================================ FILE: Source/CollapsedLayout.swift ================================================ // // CollapsedLayout.swift // CampcotCollectionView // // Created by Vadim Morozov on 1/29/18. // Copyright © 2018 Touchlane LLC. All rights reserved. // public class CollapsedLayout: UICollectionViewFlowLayout { var targetSection: Int = 0 var offsetCorrection: CGFloat = 0 var minimumSectionSpacing: CGFloat = 0 { didSet { self.invalidateLayout() } } private var contentHeight: CGFloat = 0 private var contentWidth: CGFloat { guard let collectionView = self.collectionView else { return 0 } let insets = collectionView.contentInset return collectionView.bounds.width - (insets.left + insets.right) } public var contentSizeAdjustmentBehavior: ContentSizeAdjustmentBehavior = .normal { didSet { self.invalidateLayout() } } override public var collectionViewContentSize: CGSize { switch self.contentSizeAdjustmentBehavior { case .normal: return CGSize(width: self.contentWidth, height: self.contentHeight) case .fitHeight(let adjustInsets): guard let collectionView = self.collectionView else { return CGSize(width: self.contentWidth, height: self.contentHeight) } var adjustedContentHeight = collectionView.bounds.height if adjustInsets.contains(.top) { adjustedContentHeight -= collectionView.contentInset.top } if adjustInsets.contains(.bottom) { adjustedContentHeight -= collectionView.contentInset.bottom } let contentHeight = max(self.contentHeight, adjustedContentHeight) return CGSize(width: self.contentWidth, height: contentHeight) } } override public var sectionInset: UIEdgeInsets { get { return super.sectionInset } set { super.sectionInset = UIEdgeInsets(top: 0, left: newValue.left, bottom: 0, right: newValue.right) } } private var headersAttributes: [UICollectionViewLayoutAttributes] = [] private var itemsAttributes: [[UICollectionViewLayoutAttributes]] = [] override public func prepare() { super.prepare() guard let collectionView = self.collectionView else { return } guard let delegate = collectionView.delegate as? UICollectionViewDelegateFlowLayout else { return } guard let dataSource = collectionView.dataSource else { return } self.headersAttributes = [] self.itemsAttributes = [] self.contentHeight = 0 let numberOfSections = dataSource.numberOfSections!(in: collectionView) for section in 0.. [UICollectionViewLayoutAttributes]? { guard self.collectionView?.dataSource != nil else { return nil } var visibleLayoutAttributes: [UICollectionViewLayoutAttributes] = [] for attributes in headersAttributes { if attributes.frame.intersects(rect) { visibleLayoutAttributes.append(attributes) } } return visibleLayoutAttributes } override public func layoutAttributesForSupplementaryView(ofKind elementKind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? { guard self.headersAttributes.indices.contains(indexPath.section) else { return super.layoutAttributesForSupplementaryView(ofKind: elementKind, at: indexPath) } return self.headersAttributes[indexPath.section] } override public func layoutAttributesForItem(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? { guard self.itemsAttributes.indices.contains(indexPath.section) else { return super.layoutAttributesForItem(at: indexPath) } guard self.itemsAttributes[indexPath.section].indices.contains(indexPath.row) else { return super.layoutAttributesForItem(at: indexPath) } return self.itemsAttributes[indexPath.section][indexPath.row] } override public func targetContentOffset(forProposedContentOffset proposedContentOffset: CGPoint) -> CGPoint { guard let collectionView = self.collectionView else { return proposedContentOffset } var targetOffset = proposedContentOffset targetOffset.y = offsetCorrection for section in 0.. 0 { targetOffset.y = targetOffset.y - emptySpace } if self.contentHeight < self.collectionViewContentSize.height { let freeSpace = self.collectionViewContentSize.height - (targetOffset.y - self.offsetCorrection) if freeSpace > 0 { targetOffset.y = self.offsetCorrection } } return targetOffset } } ================================================ FILE: Source/ContentSizeAdjustmentBehavior.swift ================================================ // // ContentSizeAdjustmentBehavior.swift // CampcotCollectionView // // Created by Vadim Morozov on 10/30/19. // Copyright © 2019 Touchlane LLC. All rights reserved. // public enum ContentSizeAdjustmentBehavior { public struct Inset: OptionSet { public let rawValue: Int public init(rawValue: Int) { self.rawValue = rawValue } public static let top = Inset(rawValue: 1 << 0) public static let bottom = Inset(rawValue: 1 << 1) public static let none: Inset = [] public static let all: Inset = [.top, .bottom] } /// Content size depends only on content. case normal /// Content size can't be less than collection view frame without adjust insets. case fitHeight(adjustInsets: Inset) } ================================================ FILE: Source/ExpandedLayout.swift ================================================ // // ExpandedLayout.swift // CampcotCollectionView // // Created by Vadim Morozov on 1/26/18. // Copyright © 2018 Touchlane LLC. All rights reserved. // public class ExpandedLayout: UICollectionViewFlowLayout { var targetSection: Int = 0 var offsetCorrection: CGFloat = 0 var minimumSectionSpacing: CGFloat = 0 private var isTransitingToCollapsed = false { didSet { guard oldValue != isTransitingToCollapsed else { return } self.invalidateLayout() } } private var isTransitingToExpanded = false { didSet { guard oldValue != isTransitingToExpanded else { return } self.didFinishExpandTransition = !isTransitingToExpanded self.invalidateLayout() } } private var didFinishExpandTransition = false private var contentHeight: CGFloat = 0 private var contentWidth: CGFloat { guard let collectionView = collectionView else { return 0 } let insets = collectionView.contentInset return collectionView.bounds.width - (insets.left + insets.right) } public var contentSizeAdjustmentBehavior: ContentSizeAdjustmentBehavior = .normal { didSet { self.invalidateLayout() } } override public var collectionViewContentSize: CGSize { switch self.contentSizeAdjustmentBehavior { case .normal: return CGSize(width: self.contentWidth, height: self.contentHeight) case .fitHeight(let adjustInsets): guard let collectionView = self.collectionView else { return CGSize(width: self.contentWidth, height: self.contentHeight) } var adjustedContentHeight = collectionView.bounds.height if adjustInsets.contains(.top) { adjustedContentHeight -= collectionView.contentInset.top } if adjustInsets.contains(.bottom) { adjustedContentHeight -= collectionView.contentInset.bottom } let contentHeight = max(self.contentHeight, adjustedContentHeight) return CGSize(width: self.contentWidth, height: contentHeight) } } private var headersAttributes: [UICollectionViewLayoutAttributes] = [] private var itemsAttributes: [[UICollectionViewLayoutAttributes]] = [] override public func prepare() { super.prepare() guard !self.isTransitingToCollapsed else { self.collapseInvisibleSections() return } guard !self.isTransitingToExpanded else { self.expandVisibleSections() return } guard let collectionView = self.collectionView else { return } guard let delegate = collectionView.delegate as? UICollectionViewDelegateFlowLayout else { return } guard let dataSource = collectionView.dataSource else { return } self.headersAttributes = [] self.itemsAttributes = [] self.contentHeight = 0 let numberOfSections = dataSource.numberOfSections!(in: collectionView) for section in 0.. [UICollectionViewLayoutAttributes]? { guard self.collectionView?.dataSource != nil else { return nil } guard isTransitingToCollapsed || isTransitingToExpanded else { let superAttributes = super.layoutAttributesForElements(in: rect) guard let attributes = superAttributes else { return superAttributes } for elementAttributes in attributes { guard elementAttributes.representedElementCategory == .supplementaryView else { continue } guard self.headersAttributes.indices.contains(elementAttributes.indexPath.section) else { continue } elementAttributes.frame.origin.y -= self.sectionHeadersPinToBoundsCorrection( proposedTopOffset: elementAttributes.frame.origin.y, estimatedTopOffset: self.headersAttributes[elementAttributes.indexPath.section].frame.origin.y) } return attributes } var visibleLayoutAttributes: [UICollectionViewLayoutAttributes] = [] for attributes in headersAttributes { if attributes.frame.intersects(rect) { visibleLayoutAttributes.append(attributes) } } for sectionAttributes in itemsAttributes { for attributes in sectionAttributes { if attributes.frame.intersects(rect) { visibleLayoutAttributes.append(attributes) } } } return visibleLayoutAttributes } override public func layoutAttributesForSupplementaryView(ofKind elementKind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? { guard self.headersAttributes.indices.contains(indexPath.section) else { return super.layoutAttributesForSupplementaryView(ofKind: elementKind, at: indexPath) } guard isTransitingToCollapsed || isTransitingToExpanded else { let attributes = super.layoutAttributesForSupplementaryView(ofKind: elementKind, at: indexPath) guard let proposedTopOffset = attributes?.frame.origin.y else { return attributes } let estimatedTopOffset = self.headersAttributes[indexPath.section].frame.origin.y attributes?.frame.origin.y -= self.sectionHeadersPinToBoundsCorrection( proposedTopOffset: proposedTopOffset, estimatedTopOffset: estimatedTopOffset) return attributes } return self.headersAttributes[indexPath.section] } override public func layoutAttributesForItem(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? { guard self.itemsAttributes.indices.contains(indexPath.section) else { return super.layoutAttributesForItem(at: indexPath) } guard self.itemsAttributes[indexPath.section].indices.contains(indexPath.row) else { return super.layoutAttributesForItem(at: indexPath) } return self.itemsAttributes[indexPath.section][indexPath.row] } override public func targetContentOffset(forProposedContentOffset proposedContentOffset: CGPoint) -> CGPoint { guard let collectionView = self.collectionView else { return proposedContentOffset } var targetOffset = proposedContentOffset targetOffset.y = offsetCorrection for section in 0.. 0 { targetOffset.y += self.minimumLineSpacing } } } targetOffset.y += self.sectionInset.bottom if sectionContentHeight == 0 { targetOffset.y -= self.sectionInset.top targetOffset.y -= self.sectionInset.bottom targetOffset.y += self.minimumSectionSpacing } } let emptySpace = collectionView.bounds.size.height - (max(self.contentHeight, collectionView.bounds.size.height) - targetOffset.y) if emptySpace > 0 { targetOffset.y = targetOffset.y - emptySpace } return targetOffset } public func collapseInvisibleSections() { guard let collectionView = self.collectionView else { return } guard let delegate = collectionView.delegate as? UICollectionViewDelegateFlowLayout else { return } guard let dataSource = collectionView.dataSource else { return } var contentOffset = collectionView.contentOffset let previousItemsAttributes = self.itemsAttributes let visibleItemIndexPaths = collectionView.indexPathsForVisibleItems let visibleSections = Set(visibleItemIndexPaths.map({ $0.section })) self.headersAttributes = [] self.itemsAttributes = [] self.contentHeight = 0 let numberOfSections = dataSource.numberOfSections!(in: collectionView) for section in 0.. row }).count > 0 if !visibleItemIndexPaths.contains(indexPath) && section == targetSection && hasVisibleItemsAfterCurrent { contentOffset.y -= previousItemsAttributes[section][row].frame.size.height } if row < numberOfItems - 1 && visibleItemIndexPaths.contains(indexPath) { let nextIndexPath = IndexPath(row: indexPath.row + 1, section: indexPath.section) if visibleItemIndexPaths.contains(nextIndexPath) { contentHeight += self.minimumLineSpacing } } if row < numberOfItems - 1 && !visibleItemIndexPaths.contains(indexPath) && section < targetSection { contentOffset.y -= self.minimumLineSpacing } if !visibleItemIndexPaths.contains(indexPath) && section == targetSection && hasVisibleItemsAfterCurrent { contentOffset.y -= self.minimumLineSpacing } } } if visibleSections.contains(section) { self.contentHeight += self.sectionInset.bottom } else { self.contentHeight += self.minimumSectionSpacing / 2 if section < targetSection { contentOffset.y -= self.sectionInset.bottom } } if sectionHeadersPinToVisibleBounds { let headerAttributes = self.headersAttributes[section] if section == self.targetSection && self.contentHeight - contentOffset.y < collectionView.contentInset.top { headerAttributes.frame.origin.y = min(self.contentHeight - headerAttributes.frame.size.height, contentOffset.y) let originY = headerAttributes.frame.origin.y for i in (0.. headerAttributes.frame.origin.y { let originY = min(self.contentHeight - headerAttributes.frame.size.height, contentOffset.y) for i in (0..(visibleItemIndexPaths.map({ $0.section })) self.headersAttributes = [] self.itemsAttributes = [] self.contentHeight = 0 let numberOfSections = dataSource.numberOfSections!(in: collectionView) for section in 0.. visibleContentOffset { if section != self.targetSection { self.headersAttributes[section].frame.origin.y = min( self.headersAttributes[section + 1].frame.origin.y - self.headersAttributes[section].frame.size.height, visibleContentOffset) } let originY = self.headersAttributes[section].frame.origin.y for i in (0.. CGFloat { guard let collectionViewContentOffset = self.collectionView?.contentOffset.y, let collectionViewTopInset = self.collectionView?.contentInset.top, self.sectionHeadersPinToVisibleBounds else { return 0 } var topOffsetCorrection: CGFloat = 0 if proposedTopOffset <= estimatedTopOffset { topOffsetCorrection = 0 } else if proposedTopOffset - estimatedTopOffset <= collectionViewTopInset { if proposedTopOffset - collectionViewContentOffset >= collectionViewTopInset { topOffsetCorrection = proposedTopOffset - estimatedTopOffset } else { let newProposedTopOffset = proposedTopOffset - (collectionViewContentOffset - estimatedTopOffset) topOffsetCorrection = min(newProposedTopOffset, proposedTopOffset) - estimatedTopOffset } } else if proposedTopOffset - collectionViewContentOffset < collectionViewTopInset { topOffsetCorrection = proposedTopOffset - collectionViewContentOffset } else if proposedTopOffset - estimatedTopOffset > collectionViewTopInset { topOffsetCorrection = collectionViewTopInset } topOffsetCorrection = max(topOffsetCorrection, 0) return topOffsetCorrection } private func determineVisibleIndexPaths() -> [IndexPath] { guard let collectionView = self.collectionView, let delegate = collectionView.delegate as? UICollectionViewDelegateFlowLayout, let dataSource = collectionView.dataSource else { return [] } let visibleFrameHeight = collectionView.bounds.size.height + offsetCorrection var visibleItems: [IndexPath] = [] var visibleContentHeight: CGFloat = 0 guard visibleContentHeight < visibleFrameHeight else { return visibleItems } let numberOfSections = dataSource.numberOfSections!(in: collectionView) for section in self.targetSection.. 0 { visibleContentHeight += self.minimumLineSpacing } guard visibleContentHeight < visibleFrameHeight else { return visibleItems } } } visibleContentHeight += self.sectionInset.top let headerHeight = delegate.collectionView!(collectionView, layout: self, referenceSizeForHeaderInSection: section).height visibleContentHeight += headerHeight guard visibleContentHeight < visibleFrameHeight else { return visibleItems } } return visibleItems } private func setRealOffset() { guard let collectionView = self.collectionView, let delegate = collectionView.delegate as? UICollectionViewDelegateFlowLayout, let dataSource = collectionView.dataSource else { return } var contentOffset: CGFloat = self.offsetCorrection for section in 0.. //! Project version number for CampcotCollectionView. FOUNDATION_EXPORT double CampcotCollectionViewVersionNumber; //! Project version string for CampcotCollectionView. FOUNDATION_EXPORT const unsigned char CampcotCollectionViewVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import ================================================ FILE: Source/Supporting Files/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType FMWK CFBundleShortVersionString 0.0.8 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass ================================================ FILE: Tests/CampcotCollectionViewTests.swift ================================================ // // CampcotCollectionViewTests.swift // CampcotCollectionViewTests // // Created by Vadim Morozov on 1/26/18. // Copyright © 2018 Touchlane LLC. All rights reserved. // import XCTest @testable import CampcotCollectionView class CampcotCollectionViewTests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testPerformanceExample() { // This is an example of a performance test case. self.measure { // Put the code you want to measure the time of here. } } } ================================================ FILE: Tests/Supporting Files/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType BNDL CFBundleShortVersionString 1.0 CFBundleVersion 1 ================================================ FILE: scripts/deploy.sh ================================================ #!/usr/bin/env bash source ~/.rvm/scripts/rvm rvm use default pod trunk push --verbose | ruby -e 'ARGF.each{ print "." }'