├── .gitignore ├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── SNCollectionViewLayout.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-SNCollectionViewLayout_Example │ │ ├── Info.plist │ │ ├── Pods-SNCollectionViewLayout_Example-Info.plist │ │ ├── Pods-SNCollectionViewLayout_Example-acknowledgements.markdown │ │ ├── Pods-SNCollectionViewLayout_Example-acknowledgements.plist │ │ ├── Pods-SNCollectionViewLayout_Example-dummy.m │ │ ├── Pods-SNCollectionViewLayout_Example-frameworks.sh │ │ ├── Pods-SNCollectionViewLayout_Example-resources.sh │ │ ├── Pods-SNCollectionViewLayout_Example-umbrella.h │ │ ├── Pods-SNCollectionViewLayout_Example.debug.xcconfig │ │ ├── Pods-SNCollectionViewLayout_Example.modulemap │ │ └── Pods-SNCollectionViewLayout_Example.release.xcconfig │ │ ├── Pods-SNCollectionViewLayout_Tests │ │ ├── Info.plist │ │ ├── Pods-SNCollectionViewLayout_Tests-Info.plist │ │ ├── Pods-SNCollectionViewLayout_Tests-acknowledgements.markdown │ │ ├── Pods-SNCollectionViewLayout_Tests-acknowledgements.plist │ │ ├── Pods-SNCollectionViewLayout_Tests-dummy.m │ │ ├── Pods-SNCollectionViewLayout_Tests-frameworks.sh │ │ ├── Pods-SNCollectionViewLayout_Tests-resources.sh │ │ ├── Pods-SNCollectionViewLayout_Tests-umbrella.h │ │ ├── Pods-SNCollectionViewLayout_Tests.debug.xcconfig │ │ ├── Pods-SNCollectionViewLayout_Tests.modulemap │ │ └── Pods-SNCollectionViewLayout_Tests.release.xcconfig │ │ └── SNCollectionViewLayout │ │ ├── Info.plist │ │ ├── SNCollectionViewLayout-Info.plist │ │ ├── SNCollectionViewLayout-dummy.m │ │ ├── SNCollectionViewLayout-prefix.pch │ │ ├── SNCollectionViewLayout-umbrella.h │ │ ├── SNCollectionViewLayout.debug.xcconfig │ │ ├── SNCollectionViewLayout.modulemap │ │ ├── SNCollectionViewLayout.release.xcconfig │ │ └── SNCollectionViewLayout.xcconfig ├── SNCollectionViewLayout.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── SNCollectionViewLayout-Example.xcscheme ├── SNCollectionViewLayout.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── SNCollectionViewLayout │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── SNCollectionViewLayout.podspec ├── SNCollectionViewLayout ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── SNCollectionViewLayout.swift │ └── SNCollectionViewLayoutDelegate.swift ├── _Pods.xcodeproj └── screenshot └── img1.png /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SNCollectionViewLayout.xcworkspace -scheme SNCollectionViewLayout-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'SNCollectionViewLayout_Example' do 4 | pod 'SNCollectionViewLayout', :path => '../' 5 | 6 | target 'SNCollectionViewLayout_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SNCollectionViewLayout (1.0.1) 3 | 4 | DEPENDENCIES: 5 | - SNCollectionViewLayout (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SNCollectionViewLayout: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SNCollectionViewLayout: 9c104aaad001ac6bdf47dc1b8c7c92f4efc97ee3 13 | 14 | PODFILE CHECKSUM: 63cbdbdecc3985c429785a2c6113b5bcd1cdcb6a 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/SNCollectionViewLayout.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SNCollectionViewLayout", 3 | "version": "1.0.1", 4 | "swift_versions": "5.2", 5 | "summary": "Implement dynamic flow layout", 6 | "description": "TODO: Add long description of the pod here.", 7 | "homepage": "https://github.com/ahmedAlmasri/SNCollectionViewLayout", 8 | "license": { 9 | "type": "MIT", 10 | "file": "LICENSE" 11 | }, 12 | "authors": { 13 | "ahmedAlmasri": "ahmed.almasri@ymail.com" 14 | }, 15 | "source": { 16 | "git": "https://github.com/ahmedAlmasri/SNCollectionViewLayout.git", 17 | "tag": "1.0.1" 18 | }, 19 | "platforms": { 20 | "ios": "13.0" 21 | }, 22 | "source_files": "SNCollectionViewLayout/Classes/**/*", 23 | "swift_version": "5.2" 24 | } 25 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SNCollectionViewLayout (1.0.1) 3 | 4 | DEPENDENCIES: 5 | - SNCollectionViewLayout (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SNCollectionViewLayout: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SNCollectionViewLayout: 9c104aaad001ac6bdf47dc1b8c7c92f4efc97ee3 13 | 14 | PODFILE CHECKSUM: 63cbdbdecc3985c429785a2c6113b5bcd1cdcb6a 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 08E8C2B4B06479ED10AE52CE3ED29EDE /* SNCollectionViewLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = F58578097044C3742158AE7957E4CF33 /* SNCollectionViewLayout.swift */; }; 11 | 1D193DBCEB4B38DC303FB1F6F8927636 /* SNCollectionViewLayout-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B7FACBA4DE0650A11F5BC2BC68EC3D0F /* SNCollectionViewLayout-dummy.m */; }; 12 | 2027F5EBD1630C6B4A7DDA2633FE2806 /* Pods-SNCollectionViewLayout_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E5940A1896410CABBC36B077A71CC6E9 /* Pods-SNCollectionViewLayout_Tests-dummy.m */; }; 13 | 23214A120DA2FB3209E5B7CA2FA5E1DB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 14 | 2F019E774477735BAB189C08FC125B2C /* SNCollectionViewLayout-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A176014BC8556B180DF9E6D60519EFB /* SNCollectionViewLayout-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 40A284062648A7070055AAB6 /* .gitkeep in Resources */ = {isa = PBXBuildFile; fileRef = 40A284042648A7070055AAB6 /* .gitkeep */; }; 16 | 40A284072648A7070055AAB6 /* SNCollectionViewLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40A284052648A7070055AAB6 /* SNCollectionViewLayout.swift */; }; 17 | 40A284092648A7100055AAB6 /* SNCollectionViewLayoutDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40A284082648A7100055AAB6 /* SNCollectionViewLayoutDelegate.swift */; }; 18 | 6728C3361716D0C00C0197D05C6FEECD /* Pods-SNCollectionViewLayout_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C1B0D27AFEAE9C44AD11429FBC84D1A4 /* Pods-SNCollectionViewLayout_Example-dummy.m */; }; 19 | 6B16AC058851D41897D208BB9720AB50 /* Pods-SNCollectionViewLayout_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 379A8E3FBA3D4EBFF1A390BC0DC37CFF /* Pods-SNCollectionViewLayout_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | 866661B968C168A687F2D9F87869B30B /* Pods-SNCollectionViewLayout_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0ADC420AF94C193B40500BE3789FB884 /* Pods-SNCollectionViewLayout_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | A8B897872ED8A1CB56160A957E1EF6C2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 22 | F4B00CD2E722B76B6026BE58FD4E83CF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 650EA0C2A741AC5F138D02B83551B440 /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 52974E40BF4B094D4A6FFF405B2F2407; 31 | remoteInfo = SNCollectionViewLayout; 32 | }; 33 | 80FC0E0CD224196DA1B4C8038DEBC927 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = C19BDE4DD8A18C990C90647140D52B3F; 38 | remoteInfo = "Pods-SNCollectionViewLayout_Example"; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 010D494EA78207D5EF0D0C2E8D937478 /* Pods-SNCollectionViewLayout_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SNCollectionViewLayout_Tests-acknowledgements.plist"; sourceTree = ""; }; 44 | 0ADC420AF94C193B40500BE3789FB884 /* Pods-SNCollectionViewLayout_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SNCollectionViewLayout_Example-umbrella.h"; sourceTree = ""; }; 45 | 0B4F0E3F9BF4DC5AB8ECB95570A4680D /* Pods-SNCollectionViewLayout_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SNCollectionViewLayout_Example.release.xcconfig"; sourceTree = ""; }; 46 | 139F5451267F37EE10F5FBA7BE3A5AF3 /* Pods-SNCollectionViewLayout_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SNCollectionViewLayout_Example-acknowledgements.plist"; sourceTree = ""; }; 47 | 16905B428AA1392C989C4EF6C6C9A08A /* Pods-SNCollectionViewLayout_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SNCollectionViewLayout_Example-acknowledgements.markdown"; sourceTree = ""; }; 48 | 1A176014BC8556B180DF9E6D60519EFB /* SNCollectionViewLayout-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SNCollectionViewLayout-umbrella.h"; sourceTree = ""; }; 49 | 1B11D7C21257F0CC1F8C3C520C8B40F6 /* SNCollectionViewLayout.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SNCollectionViewLayout.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 1C79C0F66D88CF16C5DBF11FD60A02F7 /* Pods-SNCollectionViewLayout_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-SNCollectionViewLayout_Tests.modulemap"; sourceTree = ""; }; 51 | 1F15E3FC18195ADDAC41807D1E209560 /* Pods-SNCollectionViewLayout_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SNCollectionViewLayout_Tests.debug.xcconfig"; sourceTree = ""; }; 52 | 21801BD65B9B0DE6339853B5B678C559 /* SNCollectionViewLayout-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SNCollectionViewLayout-prefix.pch"; sourceTree = ""; }; 53 | 323E2A9EF31F30CE9AC557AB5917C060 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 54 | 379A8E3FBA3D4EBFF1A390BC0DC37CFF /* Pods-SNCollectionViewLayout_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SNCollectionViewLayout_Tests-umbrella.h"; sourceTree = ""; }; 55 | 3CFFE6EAB9F9166F8009EBEEABEB9C9E /* Pods_SNCollectionViewLayout_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SNCollectionViewLayout_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 400CE160DAFBAED788E33AC990C90BB1 /* SNCollectionViewLayout.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SNCollectionViewLayout.debug.xcconfig; sourceTree = ""; }; 57 | 40A284042648A7070055AAB6 /* .gitkeep */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .gitkeep; sourceTree = ""; }; 58 | 40A284052648A7070055AAB6 /* SNCollectionViewLayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SNCollectionViewLayout.swift; sourceTree = ""; }; 59 | 40A284082648A7100055AAB6 /* SNCollectionViewLayoutDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SNCollectionViewLayoutDelegate.swift; sourceTree = ""; }; 60 | 4C22DE27624BDEB54F3502B49EF8C196 /* SNCollectionViewLayout-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "SNCollectionViewLayout-Info.plist"; sourceTree = ""; }; 61 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 62 | 7C7D4E18922D62B93E3C9304870D0EC7 /* Pods-SNCollectionViewLayout_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SNCollectionViewLayout_Example.debug.xcconfig"; sourceTree = ""; }; 63 | 7F1ACFADD6BE0E78C7BEFE4588623B1C /* Pods-SNCollectionViewLayout_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SNCollectionViewLayout_Tests.release.xcconfig"; sourceTree = ""; }; 64 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 65 | AC37A27CA5543661F06C13A3B6CF350F /* Pods-SNCollectionViewLayout_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SNCollectionViewLayout_Tests-acknowledgements.markdown"; sourceTree = ""; }; 66 | B3F08A105F4C159520456C230469AB5D /* SNCollectionViewLayout.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = SNCollectionViewLayout.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 67 | B7FACBA4DE0650A11F5BC2BC68EC3D0F /* SNCollectionViewLayout-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SNCollectionViewLayout-dummy.m"; sourceTree = ""; }; 68 | BF71ACD8D5CAF07F09E71550E0FE420C /* Pods-SNCollectionViewLayout_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SNCollectionViewLayout_Tests-Info.plist"; sourceTree = ""; }; 69 | C13DFA1C8AEF4F50B8040C29E2A4AE36 /* SNCollectionViewLayout.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = SNCollectionViewLayout.modulemap; sourceTree = ""; }; 70 | C1B0D27AFEAE9C44AD11429FBC84D1A4 /* Pods-SNCollectionViewLayout_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SNCollectionViewLayout_Example-dummy.m"; sourceTree = ""; }; 71 | C6F19C7B0C0CFD3C80E3734D6484F676 /* SNCollectionViewLayout.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SNCollectionViewLayout.release.xcconfig; sourceTree = ""; }; 72 | D2124495D28962400336B6ED35BDD519 /* Pods_SNCollectionViewLayout_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SNCollectionViewLayout_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 73 | D4273D43B7E8195A97562A98F7C14869 /* Pods-SNCollectionViewLayout_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-SNCollectionViewLayout_Example.modulemap"; sourceTree = ""; }; 74 | E5940A1896410CABBC36B077A71CC6E9 /* Pods-SNCollectionViewLayout_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SNCollectionViewLayout_Tests-dummy.m"; sourceTree = ""; }; 75 | EA3A862410730258D82E767D7324DB9E /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 76 | EFDF82072259F9D046B2919D671BA38A /* Pods-SNCollectionViewLayout_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SNCollectionViewLayout_Example-Info.plist"; sourceTree = ""; }; 77 | F21842F410387002898734BA3A3E647F /* Pods-SNCollectionViewLayout_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SNCollectionViewLayout_Example-frameworks.sh"; sourceTree = ""; }; 78 | F58578097044C3742158AE7957E4CF33 /* SNCollectionViewLayout.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SNCollectionViewLayout.swift; path = SNCollectionViewLayout/Classes/SNCollectionViewLayout.swift; sourceTree = ""; }; 79 | /* End PBXFileReference section */ 80 | 81 | /* Begin PBXFrameworksBuildPhase section */ 82 | 68829E4E48E54F294CB6DA1D1EB4D065 /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | A8B897872ED8A1CB56160A957E1EF6C2 /* Foundation.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | DC48FEDA9961D3E93116C451EE357BAB /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | 23214A120DA2FB3209E5B7CA2FA5E1DB /* Foundation.framework in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | FA991DA37561087370C93663FB32FABC /* Frameworks */ = { 99 | isa = PBXFrameworksBuildPhase; 100 | buildActionMask = 2147483647; 101 | files = ( 102 | F4B00CD2E722B76B6026BE58FD4E83CF /* Foundation.framework in Frameworks */, 103 | ); 104 | runOnlyForDeploymentPostprocessing = 0; 105 | }; 106 | /* End PBXFrameworksBuildPhase section */ 107 | 108 | /* Begin PBXGroup section */ 109 | 40A284032648A7070055AAB6 /* Classes */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 40A284042648A7070055AAB6 /* .gitkeep */, 113 | 40A284052648A7070055AAB6 /* SNCollectionViewLayout.swift */, 114 | 40A284082648A7100055AAB6 /* SNCollectionViewLayoutDelegate.swift */, 115 | ); 116 | name = Classes; 117 | path = SNCollectionViewLayout/Classes; 118 | sourceTree = ""; 119 | }; 120 | 578452D2E740E91742655AC8F1636D1F /* iOS */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */, 124 | ); 125 | name = iOS; 126 | sourceTree = ""; 127 | }; 128 | 600E3D53BA1C04DD2459264B84B42BB8 /* Development Pods */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 7F0B2B3F2B30774F7F24750D199B8CB8 /* SNCollectionViewLayout */, 132 | ); 133 | name = "Development Pods"; 134 | sourceTree = ""; 135 | }; 136 | 7F0B2B3F2B30774F7F24750D199B8CB8 /* SNCollectionViewLayout */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 40A284032648A7070055AAB6 /* Classes */, 140 | F58578097044C3742158AE7957E4CF33 /* SNCollectionViewLayout.swift */, 141 | 847E83D9A473EF6888D0A107B790A366 /* Pod */, 142 | 90D8CA8A36EA9E2849D38B0E0BDC6B02 /* Support Files */, 143 | ); 144 | name = SNCollectionViewLayout; 145 | path = ../..; 146 | sourceTree = ""; 147 | }; 148 | 847E83D9A473EF6888D0A107B790A366 /* Pod */ = { 149 | isa = PBXGroup; 150 | children = ( 151 | EA3A862410730258D82E767D7324DB9E /* LICENSE */, 152 | 323E2A9EF31F30CE9AC557AB5917C060 /* README.md */, 153 | B3F08A105F4C159520456C230469AB5D /* SNCollectionViewLayout.podspec */, 154 | ); 155 | name = Pod; 156 | sourceTree = ""; 157 | }; 158 | 857E1BD4B3CA4E0A3C3599F03A809654 /* Pods-SNCollectionViewLayout_Tests */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 1C79C0F66D88CF16C5DBF11FD60A02F7 /* Pods-SNCollectionViewLayout_Tests.modulemap */, 162 | AC37A27CA5543661F06C13A3B6CF350F /* Pods-SNCollectionViewLayout_Tests-acknowledgements.markdown */, 163 | 010D494EA78207D5EF0D0C2E8D937478 /* Pods-SNCollectionViewLayout_Tests-acknowledgements.plist */, 164 | E5940A1896410CABBC36B077A71CC6E9 /* Pods-SNCollectionViewLayout_Tests-dummy.m */, 165 | BF71ACD8D5CAF07F09E71550E0FE420C /* Pods-SNCollectionViewLayout_Tests-Info.plist */, 166 | 379A8E3FBA3D4EBFF1A390BC0DC37CFF /* Pods-SNCollectionViewLayout_Tests-umbrella.h */, 167 | 1F15E3FC18195ADDAC41807D1E209560 /* Pods-SNCollectionViewLayout_Tests.debug.xcconfig */, 168 | 7F1ACFADD6BE0E78C7BEFE4588623B1C /* Pods-SNCollectionViewLayout_Tests.release.xcconfig */, 169 | ); 170 | name = "Pods-SNCollectionViewLayout_Tests"; 171 | path = "Target Support Files/Pods-SNCollectionViewLayout_Tests"; 172 | sourceTree = ""; 173 | }; 174 | 8DED4E5B0BA8499ADF15AC52B0CC6BE9 /* Pods-SNCollectionViewLayout_Example */ = { 175 | isa = PBXGroup; 176 | children = ( 177 | D4273D43B7E8195A97562A98F7C14869 /* Pods-SNCollectionViewLayout_Example.modulemap */, 178 | 16905B428AA1392C989C4EF6C6C9A08A /* Pods-SNCollectionViewLayout_Example-acknowledgements.markdown */, 179 | 139F5451267F37EE10F5FBA7BE3A5AF3 /* Pods-SNCollectionViewLayout_Example-acknowledgements.plist */, 180 | C1B0D27AFEAE9C44AD11429FBC84D1A4 /* Pods-SNCollectionViewLayout_Example-dummy.m */, 181 | F21842F410387002898734BA3A3E647F /* Pods-SNCollectionViewLayout_Example-frameworks.sh */, 182 | EFDF82072259F9D046B2919D671BA38A /* Pods-SNCollectionViewLayout_Example-Info.plist */, 183 | 0ADC420AF94C193B40500BE3789FB884 /* Pods-SNCollectionViewLayout_Example-umbrella.h */, 184 | 7C7D4E18922D62B93E3C9304870D0EC7 /* Pods-SNCollectionViewLayout_Example.debug.xcconfig */, 185 | 0B4F0E3F9BF4DC5AB8ECB95570A4680D /* Pods-SNCollectionViewLayout_Example.release.xcconfig */, 186 | ); 187 | name = "Pods-SNCollectionViewLayout_Example"; 188 | path = "Target Support Files/Pods-SNCollectionViewLayout_Example"; 189 | sourceTree = ""; 190 | }; 191 | 90D8CA8A36EA9E2849D38B0E0BDC6B02 /* Support Files */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | C13DFA1C8AEF4F50B8040C29E2A4AE36 /* SNCollectionViewLayout.modulemap */, 195 | B7FACBA4DE0650A11F5BC2BC68EC3D0F /* SNCollectionViewLayout-dummy.m */, 196 | 4C22DE27624BDEB54F3502B49EF8C196 /* SNCollectionViewLayout-Info.plist */, 197 | 21801BD65B9B0DE6339853B5B678C559 /* SNCollectionViewLayout-prefix.pch */, 198 | 1A176014BC8556B180DF9E6D60519EFB /* SNCollectionViewLayout-umbrella.h */, 199 | 400CE160DAFBAED788E33AC990C90BB1 /* SNCollectionViewLayout.debug.xcconfig */, 200 | C6F19C7B0C0CFD3C80E3734D6484F676 /* SNCollectionViewLayout.release.xcconfig */, 201 | ); 202 | name = "Support Files"; 203 | path = "Example/Pods/Target Support Files/SNCollectionViewLayout"; 204 | sourceTree = ""; 205 | }; 206 | BB4D10D3A35E6A3AB54C2BEB47AB0454 /* Targets Support Files */ = { 207 | isa = PBXGroup; 208 | children = ( 209 | 8DED4E5B0BA8499ADF15AC52B0CC6BE9 /* Pods-SNCollectionViewLayout_Example */, 210 | 857E1BD4B3CA4E0A3C3599F03A809654 /* Pods-SNCollectionViewLayout_Tests */, 211 | ); 212 | name = "Targets Support Files"; 213 | sourceTree = ""; 214 | }; 215 | CF1408CF629C7361332E53B88F7BD30C = { 216 | isa = PBXGroup; 217 | children = ( 218 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 219 | 600E3D53BA1C04DD2459264B84B42BB8 /* Development Pods */, 220 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 221 | F374BBFEAF543162FD6091D7E5A85514 /* Products */, 222 | BB4D10D3A35E6A3AB54C2BEB47AB0454 /* Targets Support Files */, 223 | ); 224 | sourceTree = ""; 225 | }; 226 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 227 | isa = PBXGroup; 228 | children = ( 229 | 578452D2E740E91742655AC8F1636D1F /* iOS */, 230 | ); 231 | name = Frameworks; 232 | sourceTree = ""; 233 | }; 234 | F374BBFEAF543162FD6091D7E5A85514 /* Products */ = { 235 | isa = PBXGroup; 236 | children = ( 237 | D2124495D28962400336B6ED35BDD519 /* Pods_SNCollectionViewLayout_Example.framework */, 238 | 3CFFE6EAB9F9166F8009EBEEABEB9C9E /* Pods_SNCollectionViewLayout_Tests.framework */, 239 | 1B11D7C21257F0CC1F8C3C520C8B40F6 /* SNCollectionViewLayout.framework */, 240 | ); 241 | name = Products; 242 | sourceTree = ""; 243 | }; 244 | /* End PBXGroup section */ 245 | 246 | /* Begin PBXHeadersBuildPhase section */ 247 | 1C3E7D1605934E981F213834D1B33235 /* Headers */ = { 248 | isa = PBXHeadersBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 2F019E774477735BAB189C08FC125B2C /* SNCollectionViewLayout-umbrella.h in Headers */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 4C7B3DD91271C997A7421EE0F52B3937 /* Headers */ = { 256 | isa = PBXHeadersBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | 6B16AC058851D41897D208BB9720AB50 /* Pods-SNCollectionViewLayout_Tests-umbrella.h in Headers */, 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | 7AA070D55111434006D712ACA290C898 /* Headers */ = { 264 | isa = PBXHeadersBuildPhase; 265 | buildActionMask = 2147483647; 266 | files = ( 267 | 866661B968C168A687F2D9F87869B30B /* Pods-SNCollectionViewLayout_Example-umbrella.h in Headers */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | /* End PBXHeadersBuildPhase section */ 272 | 273 | /* Begin PBXNativeTarget section */ 274 | 52974E40BF4B094D4A6FFF405B2F2407 /* SNCollectionViewLayout */ = { 275 | isa = PBXNativeTarget; 276 | buildConfigurationList = 4978639983F1E3ADB027B119FF2280C1 /* Build configuration list for PBXNativeTarget "SNCollectionViewLayout" */; 277 | buildPhases = ( 278 | 1C3E7D1605934E981F213834D1B33235 /* Headers */, 279 | 92876058A857E2E9EC5797BB0C6E5BEB /* Sources */, 280 | FA991DA37561087370C93663FB32FABC /* Frameworks */, 281 | DBB9AF07B2BDB696FF3477124D3079E1 /* Resources */, 282 | ); 283 | buildRules = ( 284 | ); 285 | dependencies = ( 286 | ); 287 | name = SNCollectionViewLayout; 288 | productName = SNCollectionViewLayout; 289 | productReference = 1B11D7C21257F0CC1F8C3C520C8B40F6 /* SNCollectionViewLayout.framework */; 290 | productType = "com.apple.product-type.framework"; 291 | }; 292 | A65C07AE1BE47CE04CCA9A2E0A8C45A0 /* Pods-SNCollectionViewLayout_Tests */ = { 293 | isa = PBXNativeTarget; 294 | buildConfigurationList = 062C0F66C273F9C3654F5805B18287AC /* Build configuration list for PBXNativeTarget "Pods-SNCollectionViewLayout_Tests" */; 295 | buildPhases = ( 296 | 4C7B3DD91271C997A7421EE0F52B3937 /* Headers */, 297 | A9617F52EAF4CE856A30CD8C026E0F66 /* Sources */, 298 | 68829E4E48E54F294CB6DA1D1EB4D065 /* Frameworks */, 299 | CF54806A6754CD351202CC198B7A8FC4 /* Resources */, 300 | ); 301 | buildRules = ( 302 | ); 303 | dependencies = ( 304 | 7377523171D22EA9E570E544841AE448 /* PBXTargetDependency */, 305 | ); 306 | name = "Pods-SNCollectionViewLayout_Tests"; 307 | productName = "Pods-SNCollectionViewLayout_Tests"; 308 | productReference = 3CFFE6EAB9F9166F8009EBEEABEB9C9E /* Pods_SNCollectionViewLayout_Tests.framework */; 309 | productType = "com.apple.product-type.framework"; 310 | }; 311 | C19BDE4DD8A18C990C90647140D52B3F /* Pods-SNCollectionViewLayout_Example */ = { 312 | isa = PBXNativeTarget; 313 | buildConfigurationList = 0CCDD4B46EAB09451AE76FC9D096EDF5 /* Build configuration list for PBXNativeTarget "Pods-SNCollectionViewLayout_Example" */; 314 | buildPhases = ( 315 | 7AA070D55111434006D712ACA290C898 /* Headers */, 316 | 0B2DE82625797D4D6BA81782221004B8 /* Sources */, 317 | DC48FEDA9961D3E93116C451EE357BAB /* Frameworks */, 318 | FDB04CB424B29B2D7C602805D7558112 /* Resources */, 319 | ); 320 | buildRules = ( 321 | ); 322 | dependencies = ( 323 | F420C5FC09A68951A4B0380C74C00A49 /* PBXTargetDependency */, 324 | ); 325 | name = "Pods-SNCollectionViewLayout_Example"; 326 | productName = "Pods-SNCollectionViewLayout_Example"; 327 | productReference = D2124495D28962400336B6ED35BDD519 /* Pods_SNCollectionViewLayout_Example.framework */; 328 | productType = "com.apple.product-type.framework"; 329 | }; 330 | /* End PBXNativeTarget section */ 331 | 332 | /* Begin PBXProject section */ 333 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 334 | isa = PBXProject; 335 | attributes = { 336 | LastSwiftUpdateCheck = 1100; 337 | LastUpgradeCheck = 1100; 338 | }; 339 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 340 | compatibilityVersion = "Xcode 3.2"; 341 | developmentRegion = en; 342 | hasScannedForEncodings = 0; 343 | knownRegions = ( 344 | en, 345 | Base, 346 | ); 347 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 348 | productRefGroup = F374BBFEAF543162FD6091D7E5A85514 /* Products */; 349 | projectDirPath = ""; 350 | projectRoot = ""; 351 | targets = ( 352 | C19BDE4DD8A18C990C90647140D52B3F /* Pods-SNCollectionViewLayout_Example */, 353 | A65C07AE1BE47CE04CCA9A2E0A8C45A0 /* Pods-SNCollectionViewLayout_Tests */, 354 | 52974E40BF4B094D4A6FFF405B2F2407 /* SNCollectionViewLayout */, 355 | ); 356 | }; 357 | /* End PBXProject section */ 358 | 359 | /* Begin PBXResourcesBuildPhase section */ 360 | CF54806A6754CD351202CC198B7A8FC4 /* Resources */ = { 361 | isa = PBXResourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | DBB9AF07B2BDB696FF3477124D3079E1 /* Resources */ = { 368 | isa = PBXResourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | 40A284062648A7070055AAB6 /* .gitkeep in Resources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | FDB04CB424B29B2D7C602805D7558112 /* Resources */ = { 376 | isa = PBXResourcesBuildPhase; 377 | buildActionMask = 2147483647; 378 | files = ( 379 | ); 380 | runOnlyForDeploymentPostprocessing = 0; 381 | }; 382 | /* End PBXResourcesBuildPhase section */ 383 | 384 | /* Begin PBXSourcesBuildPhase section */ 385 | 0B2DE82625797D4D6BA81782221004B8 /* Sources */ = { 386 | isa = PBXSourcesBuildPhase; 387 | buildActionMask = 2147483647; 388 | files = ( 389 | 6728C3361716D0C00C0197D05C6FEECD /* Pods-SNCollectionViewLayout_Example-dummy.m in Sources */, 390 | ); 391 | runOnlyForDeploymentPostprocessing = 0; 392 | }; 393 | 92876058A857E2E9EC5797BB0C6E5BEB /* Sources */ = { 394 | isa = PBXSourcesBuildPhase; 395 | buildActionMask = 2147483647; 396 | files = ( 397 | 40A284092648A7100055AAB6 /* SNCollectionViewLayoutDelegate.swift in Sources */, 398 | 40A284072648A7070055AAB6 /* SNCollectionViewLayout.swift in Sources */, 399 | 1D193DBCEB4B38DC303FB1F6F8927636 /* SNCollectionViewLayout-dummy.m in Sources */, 400 | 08E8C2B4B06479ED10AE52CE3ED29EDE /* SNCollectionViewLayout.swift in Sources */, 401 | ); 402 | runOnlyForDeploymentPostprocessing = 0; 403 | }; 404 | A9617F52EAF4CE856A30CD8C026E0F66 /* Sources */ = { 405 | isa = PBXSourcesBuildPhase; 406 | buildActionMask = 2147483647; 407 | files = ( 408 | 2027F5EBD1630C6B4A7DDA2633FE2806 /* Pods-SNCollectionViewLayout_Tests-dummy.m in Sources */, 409 | ); 410 | runOnlyForDeploymentPostprocessing = 0; 411 | }; 412 | /* End PBXSourcesBuildPhase section */ 413 | 414 | /* Begin PBXTargetDependency section */ 415 | 7377523171D22EA9E570E544841AE448 /* PBXTargetDependency */ = { 416 | isa = PBXTargetDependency; 417 | name = "Pods-SNCollectionViewLayout_Example"; 418 | target = C19BDE4DD8A18C990C90647140D52B3F /* Pods-SNCollectionViewLayout_Example */; 419 | targetProxy = 80FC0E0CD224196DA1B4C8038DEBC927 /* PBXContainerItemProxy */; 420 | }; 421 | F420C5FC09A68951A4B0380C74C00A49 /* PBXTargetDependency */ = { 422 | isa = PBXTargetDependency; 423 | name = SNCollectionViewLayout; 424 | target = 52974E40BF4B094D4A6FFF405B2F2407 /* SNCollectionViewLayout */; 425 | targetProxy = 650EA0C2A741AC5F138D02B83551B440 /* PBXContainerItemProxy */; 426 | }; 427 | /* End PBXTargetDependency section */ 428 | 429 | /* Begin XCBuildConfiguration section */ 430 | 124483DF81164D111B351F85463BB8AF /* Debug */ = { 431 | isa = XCBuildConfiguration; 432 | baseConfigurationReference = 1F15E3FC18195ADDAC41807D1E209560 /* Pods-SNCollectionViewLayout_Tests.debug.xcconfig */; 433 | buildSettings = { 434 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 435 | ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 436 | CLANG_ENABLE_OBJC_WEAK = NO; 437 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 438 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 439 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 440 | CURRENT_PROJECT_VERSION = 1; 441 | DEFINES_MODULE = YES; 442 | DYLIB_COMPATIBILITY_VERSION = 1; 443 | DYLIB_CURRENT_VERSION = 1; 444 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 445 | INFOPLIST_FILE = "Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests-Info.plist"; 446 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 447 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 448 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 449 | MACH_O_TYPE = staticlib; 450 | MODULEMAP_FILE = "Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests.modulemap"; 451 | OTHER_LDFLAGS = ""; 452 | OTHER_LIBTOOLFLAGS = ""; 453 | PODS_ROOT = "$(SRCROOT)"; 454 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 455 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 456 | SDKROOT = iphoneos; 457 | SKIP_INSTALL = YES; 458 | TARGETED_DEVICE_FAMILY = "1,2"; 459 | VERSIONING_SYSTEM = "apple-generic"; 460 | VERSION_INFO_PREFIX = ""; 461 | }; 462 | name = Debug; 463 | }; 464 | 3E1B05E80D71B0FAEF52928DD21069EC /* Debug */ = { 465 | isa = XCBuildConfiguration; 466 | baseConfigurationReference = 7C7D4E18922D62B93E3C9304870D0EC7 /* Pods-SNCollectionViewLayout_Example.debug.xcconfig */; 467 | buildSettings = { 468 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 469 | ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 470 | CLANG_ENABLE_OBJC_WEAK = NO; 471 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 472 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 473 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 474 | CURRENT_PROJECT_VERSION = 1; 475 | DEFINES_MODULE = YES; 476 | DYLIB_COMPATIBILITY_VERSION = 1; 477 | DYLIB_CURRENT_VERSION = 1; 478 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 479 | INFOPLIST_FILE = "Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-Info.plist"; 480 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 481 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 482 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 483 | MACH_O_TYPE = staticlib; 484 | MODULEMAP_FILE = "Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example.modulemap"; 485 | OTHER_LDFLAGS = ""; 486 | OTHER_LIBTOOLFLAGS = ""; 487 | PODS_ROOT = "$(SRCROOT)"; 488 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 489 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 490 | SDKROOT = iphoneos; 491 | SKIP_INSTALL = YES; 492 | TARGETED_DEVICE_FAMILY = "1,2"; 493 | VERSIONING_SYSTEM = "apple-generic"; 494 | VERSION_INFO_PREFIX = ""; 495 | }; 496 | name = Debug; 497 | }; 498 | 7B7E636414791B4BFB330AB17602A6C5 /* Debug */ = { 499 | isa = XCBuildConfiguration; 500 | baseConfigurationReference = 400CE160DAFBAED788E33AC990C90BB1 /* SNCollectionViewLayout.debug.xcconfig */; 501 | buildSettings = { 502 | ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 503 | CLANG_ENABLE_OBJC_WEAK = NO; 504 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 505 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 506 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 507 | CURRENT_PROJECT_VERSION = 1; 508 | DEFINES_MODULE = YES; 509 | DYLIB_COMPATIBILITY_VERSION = 1; 510 | DYLIB_CURRENT_VERSION = 1; 511 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 512 | GCC_PREFIX_HEADER = "Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout-prefix.pch"; 513 | INFOPLIST_FILE = "Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout-Info.plist"; 514 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 515 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 516 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 517 | MODULEMAP_FILE = "Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout.modulemap"; 518 | PRODUCT_MODULE_NAME = SNCollectionViewLayout; 519 | PRODUCT_NAME = SNCollectionViewLayout; 520 | SDKROOT = iphoneos; 521 | SKIP_INSTALL = YES; 522 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 523 | SWIFT_VERSION = 5.2; 524 | TARGETED_DEVICE_FAMILY = "1,2"; 525 | VERSIONING_SYSTEM = "apple-generic"; 526 | VERSION_INFO_PREFIX = ""; 527 | }; 528 | name = Debug; 529 | }; 530 | 903A0004D3E6651EFD5D2E16214D101B /* Release */ = { 531 | isa = XCBuildConfiguration; 532 | buildSettings = { 533 | ALWAYS_SEARCH_USER_PATHS = NO; 534 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 535 | CLANG_ANALYZER_NONNULL = YES; 536 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 537 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 538 | CLANG_CXX_LIBRARY = "libc++"; 539 | CLANG_ENABLE_MODULES = YES; 540 | CLANG_ENABLE_OBJC_ARC = YES; 541 | CLANG_ENABLE_OBJC_WEAK = YES; 542 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 543 | CLANG_WARN_BOOL_CONVERSION = YES; 544 | CLANG_WARN_COMMA = YES; 545 | CLANG_WARN_CONSTANT_CONVERSION = YES; 546 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 547 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 548 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 549 | CLANG_WARN_EMPTY_BODY = YES; 550 | CLANG_WARN_ENUM_CONVERSION = YES; 551 | CLANG_WARN_INFINITE_RECURSION = YES; 552 | CLANG_WARN_INT_CONVERSION = YES; 553 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 554 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 555 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 556 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 557 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 558 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 559 | CLANG_WARN_STRICT_PROTOTYPES = YES; 560 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 561 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 562 | CLANG_WARN_UNREACHABLE_CODE = YES; 563 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 564 | COPY_PHASE_STRIP = NO; 565 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 566 | ENABLE_NS_ASSERTIONS = NO; 567 | ENABLE_STRICT_OBJC_MSGSEND = YES; 568 | GCC_C_LANGUAGE_STANDARD = gnu11; 569 | GCC_NO_COMMON_BLOCKS = YES; 570 | GCC_PREPROCESSOR_DEFINITIONS = ( 571 | "POD_CONFIGURATION_RELEASE=1", 572 | "$(inherited)", 573 | ); 574 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 575 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 576 | GCC_WARN_UNDECLARED_SELECTOR = YES; 577 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 578 | GCC_WARN_UNUSED_FUNCTION = YES; 579 | GCC_WARN_UNUSED_VARIABLE = YES; 580 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 581 | MTL_ENABLE_DEBUG_INFO = NO; 582 | MTL_FAST_MATH = YES; 583 | PRODUCT_NAME = "$(TARGET_NAME)"; 584 | STRIP_INSTALLED_PRODUCT = NO; 585 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 586 | SWIFT_VERSION = 5.0; 587 | SYMROOT = "${SRCROOT}/../build"; 588 | }; 589 | name = Release; 590 | }; 591 | B4EFE046ACF8F37157F6E322C7FCFC28 /* Debug */ = { 592 | isa = XCBuildConfiguration; 593 | buildSettings = { 594 | ALWAYS_SEARCH_USER_PATHS = NO; 595 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 596 | CLANG_ANALYZER_NONNULL = YES; 597 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 598 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 599 | CLANG_CXX_LIBRARY = "libc++"; 600 | CLANG_ENABLE_MODULES = YES; 601 | CLANG_ENABLE_OBJC_ARC = YES; 602 | CLANG_ENABLE_OBJC_WEAK = YES; 603 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 604 | CLANG_WARN_BOOL_CONVERSION = YES; 605 | CLANG_WARN_COMMA = YES; 606 | CLANG_WARN_CONSTANT_CONVERSION = YES; 607 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 608 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 609 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 610 | CLANG_WARN_EMPTY_BODY = YES; 611 | CLANG_WARN_ENUM_CONVERSION = YES; 612 | CLANG_WARN_INFINITE_RECURSION = YES; 613 | CLANG_WARN_INT_CONVERSION = YES; 614 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 615 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 616 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 617 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 618 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 619 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 620 | CLANG_WARN_STRICT_PROTOTYPES = YES; 621 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 622 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 623 | CLANG_WARN_UNREACHABLE_CODE = YES; 624 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 625 | COPY_PHASE_STRIP = NO; 626 | DEBUG_INFORMATION_FORMAT = dwarf; 627 | ENABLE_STRICT_OBJC_MSGSEND = YES; 628 | ENABLE_TESTABILITY = YES; 629 | GCC_C_LANGUAGE_STANDARD = gnu11; 630 | GCC_DYNAMIC_NO_PIC = NO; 631 | GCC_NO_COMMON_BLOCKS = YES; 632 | GCC_OPTIMIZATION_LEVEL = 0; 633 | GCC_PREPROCESSOR_DEFINITIONS = ( 634 | "POD_CONFIGURATION_DEBUG=1", 635 | "DEBUG=1", 636 | "$(inherited)", 637 | ); 638 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 639 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 640 | GCC_WARN_UNDECLARED_SELECTOR = YES; 641 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 642 | GCC_WARN_UNUSED_FUNCTION = YES; 643 | GCC_WARN_UNUSED_VARIABLE = YES; 644 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 645 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 646 | MTL_FAST_MATH = YES; 647 | ONLY_ACTIVE_ARCH = YES; 648 | PRODUCT_NAME = "$(TARGET_NAME)"; 649 | STRIP_INSTALLED_PRODUCT = NO; 650 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 651 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 652 | SWIFT_VERSION = 5.0; 653 | SYMROOT = "${SRCROOT}/../build"; 654 | }; 655 | name = Debug; 656 | }; 657 | B800DD202535B5197978E2D6701F96FE /* Release */ = { 658 | isa = XCBuildConfiguration; 659 | baseConfigurationReference = 0B4F0E3F9BF4DC5AB8ECB95570A4680D /* Pods-SNCollectionViewLayout_Example.release.xcconfig */; 660 | buildSettings = { 661 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 662 | ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 663 | CLANG_ENABLE_OBJC_WEAK = NO; 664 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 665 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 666 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 667 | CURRENT_PROJECT_VERSION = 1; 668 | DEFINES_MODULE = YES; 669 | DYLIB_COMPATIBILITY_VERSION = 1; 670 | DYLIB_CURRENT_VERSION = 1; 671 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 672 | INFOPLIST_FILE = "Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-Info.plist"; 673 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 674 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 675 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 676 | MACH_O_TYPE = staticlib; 677 | MODULEMAP_FILE = "Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example.modulemap"; 678 | OTHER_LDFLAGS = ""; 679 | OTHER_LIBTOOLFLAGS = ""; 680 | PODS_ROOT = "$(SRCROOT)"; 681 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 682 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 683 | SDKROOT = iphoneos; 684 | SKIP_INSTALL = YES; 685 | TARGETED_DEVICE_FAMILY = "1,2"; 686 | VALIDATE_PRODUCT = YES; 687 | VERSIONING_SYSTEM = "apple-generic"; 688 | VERSION_INFO_PREFIX = ""; 689 | }; 690 | name = Release; 691 | }; 692 | D5A0AE5E5C716A8265812C4CCEDD5C0F /* Release */ = { 693 | isa = XCBuildConfiguration; 694 | baseConfigurationReference = 7F1ACFADD6BE0E78C7BEFE4588623B1C /* Pods-SNCollectionViewLayout_Tests.release.xcconfig */; 695 | buildSettings = { 696 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 697 | ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 698 | CLANG_ENABLE_OBJC_WEAK = NO; 699 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 700 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 701 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 702 | CURRENT_PROJECT_VERSION = 1; 703 | DEFINES_MODULE = YES; 704 | DYLIB_COMPATIBILITY_VERSION = 1; 705 | DYLIB_CURRENT_VERSION = 1; 706 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 707 | INFOPLIST_FILE = "Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests-Info.plist"; 708 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 709 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 710 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 711 | MACH_O_TYPE = staticlib; 712 | MODULEMAP_FILE = "Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests.modulemap"; 713 | OTHER_LDFLAGS = ""; 714 | OTHER_LIBTOOLFLAGS = ""; 715 | PODS_ROOT = "$(SRCROOT)"; 716 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 717 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 718 | SDKROOT = iphoneos; 719 | SKIP_INSTALL = YES; 720 | TARGETED_DEVICE_FAMILY = "1,2"; 721 | VALIDATE_PRODUCT = YES; 722 | VERSIONING_SYSTEM = "apple-generic"; 723 | VERSION_INFO_PREFIX = ""; 724 | }; 725 | name = Release; 726 | }; 727 | D9E5D1D0F19E780DA1C14CBC2EE0E53D /* Release */ = { 728 | isa = XCBuildConfiguration; 729 | baseConfigurationReference = C6F19C7B0C0CFD3C80E3734D6484F676 /* SNCollectionViewLayout.release.xcconfig */; 730 | buildSettings = { 731 | ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 732 | CLANG_ENABLE_OBJC_WEAK = NO; 733 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 734 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 735 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 736 | CURRENT_PROJECT_VERSION = 1; 737 | DEFINES_MODULE = YES; 738 | DYLIB_COMPATIBILITY_VERSION = 1; 739 | DYLIB_CURRENT_VERSION = 1; 740 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 741 | GCC_PREFIX_HEADER = "Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout-prefix.pch"; 742 | INFOPLIST_FILE = "Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout-Info.plist"; 743 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 744 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 745 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 746 | MODULEMAP_FILE = "Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout.modulemap"; 747 | PRODUCT_MODULE_NAME = SNCollectionViewLayout; 748 | PRODUCT_NAME = SNCollectionViewLayout; 749 | SDKROOT = iphoneos; 750 | SKIP_INSTALL = YES; 751 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 752 | SWIFT_VERSION = 5.2; 753 | TARGETED_DEVICE_FAMILY = "1,2"; 754 | VALIDATE_PRODUCT = YES; 755 | VERSIONING_SYSTEM = "apple-generic"; 756 | VERSION_INFO_PREFIX = ""; 757 | }; 758 | name = Release; 759 | }; 760 | /* End XCBuildConfiguration section */ 761 | 762 | /* Begin XCConfigurationList section */ 763 | 062C0F66C273F9C3654F5805B18287AC /* Build configuration list for PBXNativeTarget "Pods-SNCollectionViewLayout_Tests" */ = { 764 | isa = XCConfigurationList; 765 | buildConfigurations = ( 766 | 124483DF81164D111B351F85463BB8AF /* Debug */, 767 | D5A0AE5E5C716A8265812C4CCEDD5C0F /* Release */, 768 | ); 769 | defaultConfigurationIsVisible = 0; 770 | defaultConfigurationName = Release; 771 | }; 772 | 0CCDD4B46EAB09451AE76FC9D096EDF5 /* Build configuration list for PBXNativeTarget "Pods-SNCollectionViewLayout_Example" */ = { 773 | isa = XCConfigurationList; 774 | buildConfigurations = ( 775 | 3E1B05E80D71B0FAEF52928DD21069EC /* Debug */, 776 | B800DD202535B5197978E2D6701F96FE /* Release */, 777 | ); 778 | defaultConfigurationIsVisible = 0; 779 | defaultConfigurationName = Release; 780 | }; 781 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 782 | isa = XCConfigurationList; 783 | buildConfigurations = ( 784 | B4EFE046ACF8F37157F6E322C7FCFC28 /* Debug */, 785 | 903A0004D3E6651EFD5D2E16214D101B /* Release */, 786 | ); 787 | defaultConfigurationIsVisible = 0; 788 | defaultConfigurationName = Release; 789 | }; 790 | 4978639983F1E3ADB027B119FF2280C1 /* Build configuration list for PBXNativeTarget "SNCollectionViewLayout" */ = { 791 | isa = XCConfigurationList; 792 | buildConfigurations = ( 793 | 7B7E636414791B4BFB330AB17602A6C5 /* Debug */, 794 | D9E5D1D0F19E780DA1C14CBC2EE0E53D /* Release */, 795 | ); 796 | defaultConfigurationIsVisible = 0; 797 | defaultConfigurationName = Release; 798 | }; 799 | /* End XCConfigurationList section */ 800 | }; 801 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 802 | } 803 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SNCollectionViewLayout 5 | 6 | Copyright (c) 2018 ahmedAlmasri 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2018 ahmedAlmasri <ahmed.almasri@ymail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | SNCollectionViewLayout 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SNCollectionViewLayout_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SNCollectionViewLayout_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | BCSYMBOLMAP_DIR="BCSymbolMaps" 23 | 24 | 25 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 26 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 27 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 28 | 29 | # Copies and strips a vendored framework 30 | install_framework() 31 | { 32 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 33 | local source="${BUILT_PRODUCTS_DIR}/$1" 34 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 35 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 36 | elif [ -r "$1" ]; then 37 | local source="$1" 38 | fi 39 | 40 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 41 | 42 | if [ -L "${source}" ]; then 43 | echo "Symlinked..." 44 | source="$(readlink "${source}")" 45 | fi 46 | 47 | if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then 48 | # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied 49 | find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do 50 | echo "Installing $f" 51 | install_bcsymbolmap "$f" "$destination" 52 | rm "$f" 53 | done 54 | rmdir "${source}/${BCSYMBOLMAP_DIR}" 55 | fi 56 | 57 | # Use filter instead of exclude so missing patterns don't throw errors. 58 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 59 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 60 | 61 | local basename 62 | basename="$(basename -s .framework "$1")" 63 | binary="${destination}/${basename}.framework/${basename}" 64 | 65 | if ! [ -r "$binary" ]; then 66 | binary="${destination}/${basename}" 67 | elif [ -L "${binary}" ]; then 68 | echo "Destination binary is symlinked..." 69 | dirname="$(dirname "${binary}")" 70 | binary="${dirname}/$(readlink "${binary}")" 71 | fi 72 | 73 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 74 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 75 | strip_invalid_archs "$binary" 76 | fi 77 | 78 | # Resign the code if required by the build settings to avoid unstable apps 79 | code_sign_if_enabled "${destination}/$(basename "$1")" 80 | 81 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 82 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 83 | local swift_runtime_libs 84 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 85 | for lib in $swift_runtime_libs; do 86 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 87 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 88 | code_sign_if_enabled "${destination}/${lib}" 89 | done 90 | fi 91 | } 92 | # Copies and strips a vendored dSYM 93 | install_dsym() { 94 | local source="$1" 95 | warn_missing_arch=${2:-true} 96 | if [ -r "$source" ]; then 97 | # Copy the dSYM into the targets temp dir. 98 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 99 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 100 | 101 | local basename 102 | basename="$(basename -s .dSYM "$source")" 103 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 104 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 105 | 106 | # Strip invalid architectures from the dSYM. 107 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 108 | strip_invalid_archs "$binary" "$warn_missing_arch" 109 | fi 110 | if [[ $STRIP_BINARY_RETVAL == 0 ]]; then 111 | # Move the stripped file into its final destination. 112 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 113 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 114 | else 115 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 116 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 117 | fi 118 | fi 119 | } 120 | 121 | # Used as a return value for each invocation of `strip_invalid_archs` function. 122 | STRIP_BINARY_RETVAL=0 123 | 124 | # Strip invalid architectures 125 | strip_invalid_archs() { 126 | binary="$1" 127 | warn_missing_arch=${2:-true} 128 | # Get architectures for current target binary 129 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 130 | # Intersect them with the architectures we are building for 131 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 132 | # If there are no archs supported by this binary then warn the user 133 | if [[ -z "$intersected_archs" ]]; then 134 | if [[ "$warn_missing_arch" == "true" ]]; then 135 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 136 | fi 137 | STRIP_BINARY_RETVAL=1 138 | return 139 | fi 140 | stripped="" 141 | for arch in $binary_archs; do 142 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 143 | # Strip non-valid architectures in-place 144 | lipo -remove "$arch" -output "$binary" "$binary" 145 | stripped="$stripped $arch" 146 | fi 147 | done 148 | if [[ "$stripped" ]]; then 149 | echo "Stripped $binary of architectures:$stripped" 150 | fi 151 | STRIP_BINARY_RETVAL=0 152 | } 153 | 154 | # Copies the bcsymbolmap files of a vendored framework 155 | install_bcsymbolmap() { 156 | local bcsymbolmap_path="$1" 157 | local destination="${BUILT_PRODUCTS_DIR}" 158 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 159 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 160 | } 161 | 162 | # Signs a framework with the provided identity 163 | code_sign_if_enabled() { 164 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 165 | # Use the current code_sign_identity 166 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 167 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 168 | 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | code_sign_cmd="$code_sign_cmd &" 171 | fi 172 | echo "$code_sign_cmd" 173 | eval "$code_sign_cmd" 174 | fi 175 | } 176 | 177 | if [[ "$CONFIGURATION" == "Debug" ]]; then 178 | install_framework "${BUILT_PRODUCTS_DIR}/SNCollectionViewLayout/SNCollectionViewLayout.framework" 179 | fi 180 | if [[ "$CONFIGURATION" == "Release" ]]; then 181 | install_framework "${BUILT_PRODUCTS_DIR}/SNCollectionViewLayout/SNCollectionViewLayout.framework" 182 | fi 183 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 184 | wait 185 | fi 186 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_SNCollectionViewLayout_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_SNCollectionViewLayout_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout/SNCollectionViewLayout.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | OTHER_LDFLAGS = $(inherited) -framework "SNCollectionViewLayout" 8 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 9 | PODS_BUILD_DIR = ${BUILD_DIR} 10 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 12 | PODS_ROOT = ${SRCROOT}/Pods 13 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 14 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SNCollectionViewLayout_Example { 2 | umbrella header "Pods-SNCollectionViewLayout_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout/SNCollectionViewLayout.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | OTHER_LDFLAGS = $(inherited) -framework "SNCollectionViewLayout" 8 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 9 | PODS_BUILD_DIR = ${BUILD_DIR} 10 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 12 | PODS_ROOT = ${SRCROOT}/Pods 13 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 14 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SNCollectionViewLayout_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SNCollectionViewLayout_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 145 | wait 146 | fi 147 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_SNCollectionViewLayout_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_SNCollectionViewLayout_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout/SNCollectionViewLayout.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "SNCollectionViewLayout" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SNCollectionViewLayout_Tests { 2 | umbrella header "Pods-SNCollectionViewLayout_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout/SNCollectionViewLayout.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "SNCollectionViewLayout" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SNCollectionViewLayout/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_SNCollectionViewLayout : NSObject 3 | @end 4 | @implementation PodsDummy_SNCollectionViewLayout 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double SNCollectionViewLayoutVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char SNCollectionViewLayoutVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout.modulemap: -------------------------------------------------------------------------------- 1 | framework module SNCollectionViewLayout { 2 | umbrella header "SNCollectionViewLayout-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SNCollectionViewLayout/SNCollectionViewLayout.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/SNCollectionViewLayout 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1F6F480BBBC7134253782A76 /* Pods_SNCollectionViewLayout_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C5782B7FADB52A05090A0DC0 /* Pods_SNCollectionViewLayout_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | 6DE1A69491D06716B2AE5B57 /* Pods_SNCollectionViewLayout_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FEFA6BAEAEC04BBE6D854DD8 /* Pods_SNCollectionViewLayout_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = SNCollectionViewLayout; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 1F5F0C0B9DC68961CCA15781 /* Pods-SNCollectionViewLayout_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SNCollectionViewLayout_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests.debug.xcconfig"; sourceTree = ""; }; 32 | 607FACD01AFB9204008FA782 /* SNCollectionViewLayout_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SNCollectionViewLayout_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 35 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 36 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 37 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 38 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 39 | 607FACE51AFB9204008FA782 /* SNCollectionViewLayout_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SNCollectionViewLayout_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 41 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 42 | A40E72AC8676E1E11EB53C00 /* Pods-SNCollectionViewLayout_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SNCollectionViewLayout_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-SNCollectionViewLayout_Tests/Pods-SNCollectionViewLayout_Tests.release.xcconfig"; sourceTree = ""; }; 43 | C2E56FF723CFA45897042C3C /* Pods-SNCollectionViewLayout_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SNCollectionViewLayout_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example.debug.xcconfig"; sourceTree = ""; }; 44 | C5782B7FADB52A05090A0DC0 /* Pods_SNCollectionViewLayout_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SNCollectionViewLayout_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | C68F73B628AC22FFF43558E5 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 46 | EF506B40190FD7DA8859877E /* Pods-SNCollectionViewLayout_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SNCollectionViewLayout_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example.release.xcconfig"; sourceTree = ""; }; 47 | F34619AF7964B087A2E6DC2F /* SNCollectionViewLayout.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SNCollectionViewLayout.podspec; path = ../SNCollectionViewLayout.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 48 | F7AA9656E4FE3CC119F9B255 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 49 | FEFA6BAEAEC04BBE6D854DD8 /* Pods_SNCollectionViewLayout_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SNCollectionViewLayout_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 1F6F480BBBC7134253782A76 /* Pods_SNCollectionViewLayout_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 6DE1A69491D06716B2AE5B57 /* Pods_SNCollectionViewLayout_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 101121BAA8D0E6B17EFC790E /* Frameworks */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | C5782B7FADB52A05090A0DC0 /* Pods_SNCollectionViewLayout_Example.framework */, 76 | FEFA6BAEAEC04BBE6D854DD8 /* Pods_SNCollectionViewLayout_Tests.framework */, 77 | ); 78 | name = Frameworks; 79 | sourceTree = ""; 80 | }; 81 | 607FACC71AFB9204008FA782 = { 82 | isa = PBXGroup; 83 | children = ( 84 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 85 | 607FACD21AFB9204008FA782 /* Example for SNCollectionViewLayout */, 86 | 607FACE81AFB9204008FA782 /* Tests */, 87 | 607FACD11AFB9204008FA782 /* Products */, 88 | 951326DAD381EC657C4EFA36 /* Pods */, 89 | 101121BAA8D0E6B17EFC790E /* Frameworks */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | 607FACD11AFB9204008FA782 /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD01AFB9204008FA782 /* SNCollectionViewLayout_Example.app */, 97 | 607FACE51AFB9204008FA782 /* SNCollectionViewLayout_Tests.xctest */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 607FACD21AFB9204008FA782 /* Example for SNCollectionViewLayout */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 106 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 107 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 108 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 109 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 110 | 607FACD31AFB9204008FA782 /* Supporting Files */, 111 | ); 112 | name = "Example for SNCollectionViewLayout"; 113 | path = SNCollectionViewLayout; 114 | sourceTree = ""; 115 | }; 116 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 607FACD41AFB9204008FA782 /* Info.plist */, 120 | ); 121 | name = "Supporting Files"; 122 | sourceTree = ""; 123 | }; 124 | 607FACE81AFB9204008FA782 /* Tests */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 128 | 607FACE91AFB9204008FA782 /* Supporting Files */, 129 | ); 130 | path = Tests; 131 | sourceTree = ""; 132 | }; 133 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 607FACEA1AFB9204008FA782 /* Info.plist */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | F34619AF7964B087A2E6DC2F /* SNCollectionViewLayout.podspec */, 145 | F7AA9656E4FE3CC119F9B255 /* README.md */, 146 | C68F73B628AC22FFF43558E5 /* LICENSE */, 147 | ); 148 | name = "Podspec Metadata"; 149 | sourceTree = ""; 150 | }; 151 | 951326DAD381EC657C4EFA36 /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | C2E56FF723CFA45897042C3C /* Pods-SNCollectionViewLayout_Example.debug.xcconfig */, 155 | EF506B40190FD7DA8859877E /* Pods-SNCollectionViewLayout_Example.release.xcconfig */, 156 | 1F5F0C0B9DC68961CCA15781 /* Pods-SNCollectionViewLayout_Tests.debug.xcconfig */, 157 | A40E72AC8676E1E11EB53C00 /* Pods-SNCollectionViewLayout_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* SNCollectionViewLayout_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SNCollectionViewLayout_Example" */; 168 | buildPhases = ( 169 | EF947C38179EEE9E542B8219 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | CE2875DD26E72C185884BFA6 /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = SNCollectionViewLayout_Example; 180 | productName = SNCollectionViewLayout; 181 | productReference = 607FACD01AFB9204008FA782 /* SNCollectionViewLayout_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* SNCollectionViewLayout_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SNCollectionViewLayout_Tests" */; 187 | buildPhases = ( 188 | 2E447CBE23AFFC8779B041A3 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = SNCollectionViewLayout_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* SNCollectionViewLayout_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 0830; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | LastSwiftMigration = 0900; 216 | }; 217 | 607FACE41AFB9204008FA782 = { 218 | CreatedOnToolsVersion = 6.3.1; 219 | LastSwiftMigration = 1250; 220 | TestTargetID = 607FACCF1AFB9204008FA782; 221 | }; 222 | }; 223 | }; 224 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SNCollectionViewLayout" */; 225 | compatibilityVersion = "Xcode 3.2"; 226 | developmentRegion = English; 227 | hasScannedForEncodings = 0; 228 | knownRegions = ( 229 | English, 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 607FACC71AFB9204008FA782; 234 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 607FACCF1AFB9204008FA782 /* SNCollectionViewLayout_Example */, 239 | 607FACE41AFB9204008FA782 /* SNCollectionViewLayout_Tests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 607FACCE1AFB9204008FA782 /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 250 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 251 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 607FACE31AFB9204008FA782 /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | /* End PBXResourcesBuildPhase section */ 263 | 264 | /* Begin PBXShellScriptBuildPhase section */ 265 | 2E447CBE23AFFC8779B041A3 /* [CP] Check Pods Manifest.lock */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputPaths = ( 271 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 272 | "${PODS_ROOT}/Manifest.lock", 273 | ); 274 | name = "[CP] Check Pods Manifest.lock"; 275 | outputPaths = ( 276 | "$(DERIVED_FILE_DIR)/Pods-SNCollectionViewLayout_Tests-checkManifestLockResult.txt", 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | shellPath = /bin/sh; 280 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 281 | showEnvVarsInLog = 0; 282 | }; 283 | CE2875DD26E72C185884BFA6 /* [CP] Embed Pods Frameworks */ = { 284 | isa = PBXShellScriptBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | ); 288 | inputPaths = ( 289 | "${PODS_ROOT}/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-frameworks.sh", 290 | "${BUILT_PRODUCTS_DIR}/SNCollectionViewLayout/SNCollectionViewLayout.framework", 291 | ); 292 | name = "[CP] Embed Pods Frameworks"; 293 | outputPaths = ( 294 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SNCollectionViewLayout.framework", 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | shellPath = /bin/sh; 298 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SNCollectionViewLayout_Example/Pods-SNCollectionViewLayout_Example-frameworks.sh\"\n"; 299 | showEnvVarsInLog = 0; 300 | }; 301 | EF947C38179EEE9E542B8219 /* [CP] Check Pods Manifest.lock */ = { 302 | isa = PBXShellScriptBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | ); 306 | inputPaths = ( 307 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 308 | "${PODS_ROOT}/Manifest.lock", 309 | ); 310 | name = "[CP] Check Pods Manifest.lock"; 311 | outputPaths = ( 312 | "$(DERIVED_FILE_DIR)/Pods-SNCollectionViewLayout_Example-checkManifestLockResult.txt", 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | shellPath = /bin/sh; 316 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 317 | showEnvVarsInLog = 0; 318 | }; 319 | /* End PBXShellScriptBuildPhase section */ 320 | 321 | /* Begin PBXSourcesBuildPhase section */ 322 | 607FACCC1AFB9204008FA782 /* Sources */ = { 323 | isa = PBXSourcesBuildPhase; 324 | buildActionMask = 2147483647; 325 | files = ( 326 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 327 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 328 | ); 329 | runOnlyForDeploymentPostprocessing = 0; 330 | }; 331 | 607FACE11AFB9204008FA782 /* Sources */ = { 332 | isa = PBXSourcesBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | /* End PBXSourcesBuildPhase section */ 340 | 341 | /* Begin PBXTargetDependency section */ 342 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 343 | isa = PBXTargetDependency; 344 | target = 607FACCF1AFB9204008FA782 /* SNCollectionViewLayout_Example */; 345 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 346 | }; 347 | /* End PBXTargetDependency section */ 348 | 349 | /* Begin PBXVariantGroup section */ 350 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 351 | isa = PBXVariantGroup; 352 | children = ( 353 | 607FACDA1AFB9204008FA782 /* Base */, 354 | ); 355 | name = Main.storyboard; 356 | sourceTree = ""; 357 | }; 358 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 359 | isa = PBXVariantGroup; 360 | children = ( 361 | 607FACDF1AFB9204008FA782 /* Base */, 362 | ); 363 | name = LaunchScreen.xib; 364 | sourceTree = ""; 365 | }; 366 | /* End PBXVariantGroup section */ 367 | 368 | /* Begin XCBuildConfiguration section */ 369 | 607FACED1AFB9204008FA782 /* Debug */ = { 370 | isa = XCBuildConfiguration; 371 | buildSettings = { 372 | ALWAYS_SEARCH_USER_PATHS = NO; 373 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 374 | CLANG_CXX_LIBRARY = "libc++"; 375 | CLANG_ENABLE_MODULES = YES; 376 | CLANG_ENABLE_OBJC_ARC = YES; 377 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 378 | CLANG_WARN_BOOL_CONVERSION = YES; 379 | CLANG_WARN_COMMA = YES; 380 | CLANG_WARN_CONSTANT_CONVERSION = YES; 381 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 382 | CLANG_WARN_EMPTY_BODY = YES; 383 | CLANG_WARN_ENUM_CONVERSION = YES; 384 | CLANG_WARN_INFINITE_RECURSION = YES; 385 | CLANG_WARN_INT_CONVERSION = YES; 386 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 388 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 389 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 390 | CLANG_WARN_STRICT_PROTOTYPES = YES; 391 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 392 | CLANG_WARN_UNREACHABLE_CODE = YES; 393 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 394 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 395 | COPY_PHASE_STRIP = NO; 396 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | ENABLE_TESTABILITY = YES; 399 | GCC_C_LANGUAGE_STANDARD = gnu99; 400 | GCC_DYNAMIC_NO_PIC = NO; 401 | GCC_NO_COMMON_BLOCKS = YES; 402 | GCC_OPTIMIZATION_LEVEL = 0; 403 | GCC_PREPROCESSOR_DEFINITIONS = ( 404 | "DEBUG=1", 405 | "$(inherited)", 406 | ); 407 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 408 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 409 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 410 | GCC_WARN_UNDECLARED_SELECTOR = YES; 411 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 412 | GCC_WARN_UNUSED_FUNCTION = YES; 413 | GCC_WARN_UNUSED_VARIABLE = YES; 414 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 415 | MTL_ENABLE_DEBUG_INFO = YES; 416 | ONLY_ACTIVE_ARCH = YES; 417 | SDKROOT = iphoneos; 418 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 419 | }; 420 | name = Debug; 421 | }; 422 | 607FACEE1AFB9204008FA782 /* Release */ = { 423 | isa = XCBuildConfiguration; 424 | buildSettings = { 425 | ALWAYS_SEARCH_USER_PATHS = NO; 426 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 427 | CLANG_CXX_LIBRARY = "libc++"; 428 | CLANG_ENABLE_MODULES = YES; 429 | CLANG_ENABLE_OBJC_ARC = YES; 430 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 431 | CLANG_WARN_BOOL_CONVERSION = YES; 432 | CLANG_WARN_COMMA = YES; 433 | CLANG_WARN_CONSTANT_CONVERSION = YES; 434 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 435 | CLANG_WARN_EMPTY_BODY = YES; 436 | CLANG_WARN_ENUM_CONVERSION = YES; 437 | CLANG_WARN_INFINITE_RECURSION = YES; 438 | CLANG_WARN_INT_CONVERSION = YES; 439 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 440 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 441 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 442 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 443 | CLANG_WARN_STRICT_PROTOTYPES = YES; 444 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 445 | CLANG_WARN_UNREACHABLE_CODE = YES; 446 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 447 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 448 | COPY_PHASE_STRIP = NO; 449 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 450 | ENABLE_NS_ASSERTIONS = NO; 451 | ENABLE_STRICT_OBJC_MSGSEND = YES; 452 | GCC_C_LANGUAGE_STANDARD = gnu99; 453 | GCC_NO_COMMON_BLOCKS = YES; 454 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 455 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 456 | GCC_WARN_UNDECLARED_SELECTOR = YES; 457 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 458 | GCC_WARN_UNUSED_FUNCTION = YES; 459 | GCC_WARN_UNUSED_VARIABLE = YES; 460 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 461 | MTL_ENABLE_DEBUG_INFO = NO; 462 | SDKROOT = iphoneos; 463 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 464 | VALIDATE_PRODUCT = YES; 465 | }; 466 | name = Release; 467 | }; 468 | 607FACF01AFB9204008FA782 /* Debug */ = { 469 | isa = XCBuildConfiguration; 470 | baseConfigurationReference = C2E56FF723CFA45897042C3C /* Pods-SNCollectionViewLayout_Example.debug.xcconfig */; 471 | buildSettings = { 472 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 473 | INFOPLIST_FILE = SNCollectionViewLayout/Info.plist; 474 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 475 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 476 | MODULE_NAME = ExampleApp; 477 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 478 | PRODUCT_NAME = "$(TARGET_NAME)"; 479 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 480 | SWIFT_VERSION = 5.0; 481 | }; 482 | name = Debug; 483 | }; 484 | 607FACF11AFB9204008FA782 /* Release */ = { 485 | isa = XCBuildConfiguration; 486 | baseConfigurationReference = EF506B40190FD7DA8859877E /* Pods-SNCollectionViewLayout_Example.release.xcconfig */; 487 | buildSettings = { 488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 489 | INFOPLIST_FILE = SNCollectionViewLayout/Info.plist; 490 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 491 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 492 | MODULE_NAME = ExampleApp; 493 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 494 | PRODUCT_NAME = "$(TARGET_NAME)"; 495 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 496 | SWIFT_VERSION = 5.0; 497 | }; 498 | name = Release; 499 | }; 500 | 607FACF31AFB9204008FA782 /* Debug */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = 1F5F0C0B9DC68961CCA15781 /* Pods-SNCollectionViewLayout_Tests.debug.xcconfig */; 503 | buildSettings = { 504 | FRAMEWORK_SEARCH_PATHS = ( 505 | "$(SDKROOT)/Developer/Library/Frameworks", 506 | "$(inherited)", 507 | ); 508 | GCC_PREPROCESSOR_DEFINITIONS = ( 509 | "DEBUG=1", 510 | "$(inherited)", 511 | ); 512 | INFOPLIST_FILE = Tests/Info.plist; 513 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 514 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 515 | PRODUCT_NAME = "$(TARGET_NAME)"; 516 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 517 | SWIFT_VERSION = 5.0; 518 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SNCollectionViewLayout_Example.app/SNCollectionViewLayout_Example"; 519 | }; 520 | name = Debug; 521 | }; 522 | 607FACF41AFB9204008FA782 /* Release */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = A40E72AC8676E1E11EB53C00 /* Pods-SNCollectionViewLayout_Tests.release.xcconfig */; 525 | buildSettings = { 526 | FRAMEWORK_SEARCH_PATHS = ( 527 | "$(SDKROOT)/Developer/Library/Frameworks", 528 | "$(inherited)", 529 | ); 530 | INFOPLIST_FILE = Tests/Info.plist; 531 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 532 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 533 | PRODUCT_NAME = "$(TARGET_NAME)"; 534 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 535 | SWIFT_VERSION = 5.0; 536 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SNCollectionViewLayout_Example.app/SNCollectionViewLayout_Example"; 537 | }; 538 | name = Release; 539 | }; 540 | /* End XCBuildConfiguration section */ 541 | 542 | /* Begin XCConfigurationList section */ 543 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SNCollectionViewLayout" */ = { 544 | isa = XCConfigurationList; 545 | buildConfigurations = ( 546 | 607FACED1AFB9204008FA782 /* Debug */, 547 | 607FACEE1AFB9204008FA782 /* Release */, 548 | ); 549 | defaultConfigurationIsVisible = 0; 550 | defaultConfigurationName = Release; 551 | }; 552 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SNCollectionViewLayout_Example" */ = { 553 | isa = XCConfigurationList; 554 | buildConfigurations = ( 555 | 607FACF01AFB9204008FA782 /* Debug */, 556 | 607FACF11AFB9204008FA782 /* Release */, 557 | ); 558 | defaultConfigurationIsVisible = 0; 559 | defaultConfigurationName = Release; 560 | }; 561 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SNCollectionViewLayout_Tests" */ = { 562 | isa = XCConfigurationList; 563 | buildConfigurations = ( 564 | 607FACF31AFB9204008FA782 /* Debug */, 565 | 607FACF41AFB9204008FA782 /* Release */, 566 | ); 567 | defaultConfigurationIsVisible = 0; 568 | defaultConfigurationName = Release; 569 | }; 570 | /* End XCConfigurationList section */ 571 | }; 572 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 573 | } 574 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout.xcodeproj/xcshareddata/xcschemes/SNCollectionViewLayout-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SNCollectionViewLayout 4 | // 5 | // Created by ahmedAlmasri on 12/01/2018. 6 | // Copyright (c) 2018 ahmedAlmasri. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { 18 | 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/SNCollectionViewLayout/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SNCollectionViewLayout 4 | // 5 | // Created by ahmedAlmasri on 12/01/2018. 6 | // Copyright (c) 2018 ahmedAlmasri. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SNCollectionViewLayout 11 | 12 | 13 | class MyCell: UICollectionViewCell { 14 | 15 | @IBOutlet weak var myLabel: UILabel! 16 | } 17 | 18 | class ViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout { 19 | 20 | @IBOutlet weak var myCollectionView: UICollectionView! 21 | 22 | override func viewDidLoad() { 23 | super.viewDidLoad() 24 | 25 | let snCollectionViewLayout = SNCollectionViewLayout() 26 | snCollectionViewLayout.fixedDivisionCount = 4 // Columns for .vertical, rows for .horizontal 27 | snCollectionViewLayout.delegate = self 28 | myCollectionView.collectionViewLayout = snCollectionViewLayout 29 | } 30 | 31 | 32 | func getRandomColor() -> UIColor { 33 | //Generate between 0 to 1 34 | let red:CGFloat = CGFloat(drand48()) 35 | let green:CGFloat = CGFloat(drand48()) 36 | let blue:CGFloat = CGFloat(drand48()) 37 | 38 | return UIColor(red:red, green: green, blue: blue, alpha: 1.0) 39 | } 40 | 41 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 42 | 43 | return 100 44 | } 45 | 46 | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 47 | 48 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "MyCell", for: indexPath) as! MyCell 49 | cell.myLabel.backgroundColor = getRandomColor() 50 | cell.myLabel.text = "index : \(indexPath.row)" 51 | return cell 52 | } 53 | 54 | } 55 | 56 | extension ViewController: SNCollectionViewLayoutDelegate { 57 | func scaleForItem(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, atIndexPath indexPath: IndexPath) -> UInt { 58 | if indexPath.row == 0 || indexPath.row == 3 || indexPath.row == 10 || indexPath.row == 70 { 59 | 60 | return 2 61 | } 62 | return 1 63 | } 64 | 65 | 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import SNCollectionViewLayout 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 ahmedAlmasri 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SNCollectionViewLayout 2 | 3 | [![CI Status](https://img.shields.io/travis/ahmedAlmasri/SNCollectionViewLayout.svg?style=flat)](https://travis-ci.org/ahmedAlmasri/SNCollectionViewLayout) 4 | [![Version](https://img.shields.io/cocoapods/v/SNCollectionViewLayout.svg?style=flat)](https://cocoapods.org/pods/SNCollectionViewLayout) 5 | [![License](https://img.shields.io/cocoapods/l/SNCollectionViewLayout.svg?style=flat)](https://cocoapods.org/pods/SNCollectionViewLayout) 6 | [![Platform](https://img.shields.io/cocoapods/p/SNCollectionViewLayout.svg?style=flat)](https://cocoapods.org/pods/SNCollectionViewLayout) 7 | 8 | 9 | ScreenShots 10 | 11 | 12 | 13 | 14 | ## Example 15 | 16 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 17 | ## Using 18 | 19 | 1- Create instance 20 | 21 | ```swift 22 | let snCollectionViewLayout = SNCollectionViewLayout() 23 | snCollectionViewLayout.fixedDivisionCount = 4 // Columns for .vertical, rows for .horizontal 24 | snCollectionViewLayout.delegate = self 25 | myCollectionView.collectionViewLayout = snCollectionViewLayout 26 | ``` 27 | 28 | 2- Delegate 29 | 30 | ```swift 31 | // scale for items based number of columns 32 | func scaleForItem(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, atIndexPath indexPath: IndexPath) -> UInt { 33 | if indexPath.row == 0 || indexPath.row == 3 || indexPath.row == 10 || indexPath.row == 70 { 34 | 35 | return 2 36 | } 37 | return 1 38 | } 39 | // height for item if set fixedDimension height equal width 40 | func itemFlexibleDimension(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, fixedDimension: CGFloat) -> CGFloat { 41 | return fixedDimension 42 | } 43 | 44 | // header height 45 | func headerFlexibleDimension(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, fixedDimension: CGFloat) -> CGFloat { 46 | return 0 47 | } 48 | ``` 49 | 50 | ## Requirements 51 | 52 | * Swift 4.2+ 53 | * Xcode 10.0+ 54 | * iOS 11.0+ 55 | 56 | ## Installation 57 | 58 | SNCollectionViewLayout is available through [CocoaPods](https://cocoapods.org). To install 59 | it, simply add the following line to your Podfile: 60 | 61 | ```ruby 62 | pod 'SNCollectionViewLayout' 63 | ``` 64 | 65 | ## Author 66 | 67 | ahmedAlmasri, ahmed.almasri@ymail.com 68 | 69 | ## License 70 | 71 | SNCollectionViewLayout is available under the MIT license. See the LICENSE file for more info. 72 | -------------------------------------------------------------------------------- /SNCollectionViewLayout.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint SNCollectionViewLayout.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'SNCollectionViewLayout' 11 | s.version = '1.0.2' 12 | s.swift_version = '5.2' 13 | s.summary = 'Implement dynamic flow layout ' 14 | s.description = <<-DESC 15 | Collection View Layouts is a set of custom flow layouts for iOS which imitate general data grid approaches for mobile apps. 16 | DESC 17 | # This description is used to generate tags and improve search results. 18 | # * Think: What does it do? Why did you write it? What is the focus? 19 | # * Try to keep it short, snappy and to the point. 20 | # * Write the description between the DESC delimiters below. 21 | # * Finally, don't worry about the indent, CocoaPods strips it! 22 | 23 | s.description = <<-DESC 24 | TODO: Add long description of the pod here. 25 | DESC 26 | 27 | s.homepage = 'https://github.com/ahmedAlmasri/SNCollectionViewLayout' 28 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 29 | s.license = { :type => 'MIT', :file => 'LICENSE' } 30 | s.author = { 'ahmedAlmasri' => 'ahmed.almasri@ymail.com' } 31 | s.source = { :git => 'https://github.com/ahmedAlmasri/SNCollectionViewLayout.git', :tag => s.version.to_s } 32 | # s.social_media_url = 'https://twitter.com/' 33 | 34 | s.ios.deployment_target = '13.0' 35 | 36 | s.source_files = 'SNCollectionViewLayout/Classes/**/*' 37 | 38 | # s.resource_bundles = { 39 | # 'SNCollectionViewLayout' => ['SNCollectionViewLayout/Assets/*.png'] 40 | # } 41 | 42 | # s.public_header_files = 'Pod/Classes/**/*.h' 43 | # s.frameworks = 'UIKit', 'MapKit' 44 | # s.dependency 'AFNetworking', '~> 2.3' 45 | end 46 | -------------------------------------------------------------------------------- /SNCollectionViewLayout/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/SNCollectionViewLayout/bff0c3e25473968e9222e3776cbedb814983be12/SNCollectionViewLayout/Assets/.gitkeep -------------------------------------------------------------------------------- /SNCollectionViewLayout/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/SNCollectionViewLayout/bff0c3e25473968e9222e3776cbedb814983be12/SNCollectionViewLayout/Classes/.gitkeep -------------------------------------------------------------------------------- /SNCollectionViewLayout/Classes/SNCollectionViewLayout.swift: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2018 ahmedAlmasri 2 | // 3 | //Permission is hereby granted, free of charge, to any person obtaining a copy 4 | //of this software and associated documentation files (the "Software"), to deal 5 | //in the Software without restriction, including without limitation the rights 6 | //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | //copies of the Software, and to permit persons to whom the Software is 8 | //furnished to do so, subject to the following conditions: 9 | // 10 | //The above copyright notice and this permission notice shall be included in 11 | //all copies or substantial portions of the Software. 12 | // 13 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | //THE SOFTWARE. 20 | 21 | import UIKit 22 | 23 | open class SNCollectionViewLayout: UICollectionViewLayout, SNCollectionViewLayoutDelegate { 24 | override open var collectionViewContentSize: CGSize { 25 | return CGSize(width: contentWidth, height: contentHeight) 26 | } 27 | 28 | // User-configurable 'knobs' 29 | public var scrollDirection: UICollectionView.ScrollDirection = .vertical 30 | 31 | // Spacing between items 32 | public var itemSpacing: CGFloat = 0 33 | 34 | // Prevent the user from giving an invalid fixedDivisionCount 35 | public var fixedDivisionCount: UInt { 36 | get { 37 | return UInt(intFixedDivisionCount) 38 | } 39 | set { 40 | intFixedDivisionCount = newValue == 0 ? 1 : Int(newValue) 41 | } 42 | } 43 | 44 | weak public var delegate: SNCollectionViewLayoutDelegate? 45 | 46 | /// Backing variable for fixedDivisionCount, is an Int since indices don't like UInt 47 | private var intFixedDivisionCount = 1 48 | private var contentWidth: CGFloat = 0 49 | private var contentHeight: CGFloat = 0 50 | private var itemFixedDimension: CGFloat = 0 51 | private var itemFlexibleDimension: CGFloat = 0 52 | 53 | /// This represents a 2 dimensional array for each section, indicating whether each block in the grid is occupied 54 | /// It is grown dynamically as needed to fit every item into a grid 55 | private var sectionedItemGrid: Array>> = [] 56 | 57 | /// The cache built up during the `prepare` function 58 | private var itemAttributesCache: Array = [] 59 | 60 | /// The header cache built up during the `prepare` function 61 | private var headerAttributesCache: Array = [] 62 | 63 | /// A convenient tuple for working with items 64 | private typealias ItemFrame = (section: Int, flexibleIndex: Int, fixedIndex: Int, scale: Int) 65 | 66 | // MARK: - UICollectionView Layout 67 | override open func prepare() { 68 | 69 | // On rotation, UICollectionView sometimes calls prepare without calling invalidateLayout 70 | guard itemAttributesCache.isEmpty, headerAttributesCache.isEmpty, let collectionView = collectionView else { return } 71 | 72 | let fixedDimension: CGFloat 73 | if scrollDirection == .vertical { 74 | fixedDimension = collectionView.frame.width - (collectionView.contentInset.left + collectionView.contentInset.right) 75 | contentWidth = fixedDimension 76 | } else { 77 | fixedDimension = collectionView.frame.height - (collectionView.contentInset.top + collectionView.contentInset.bottom) 78 | contentHeight = fixedDimension 79 | } 80 | 81 | var additionalSectionSpacing: CGFloat = 0 82 | let headerFlexibleDimension = (delegate ?? self).headerFlexibleDimension(inCollectionView: collectionView, withLayout: self, fixedDimension: fixedDimension) 83 | 84 | itemFixedDimension = (fixedDimension - (CGFloat(fixedDivisionCount) * itemSpacing) + itemSpacing) / CGFloat(fixedDivisionCount) 85 | itemFlexibleDimension = (delegate ?? self).itemFlexibleDimension(inCollectionView: collectionView, withLayout: self, fixedDimension: itemFixedDimension) 86 | 87 | for section in 0 ..< collectionView.numberOfSections { 88 | let itemCount = collectionView.numberOfItems(inSection: section) 89 | 90 | // Calculate header attributes 91 | if headerFlexibleDimension > 0.0 && itemCount > 0 { 92 | if headerAttributesCache.count > 0 { 93 | additionalSectionSpacing += itemSpacing 94 | } 95 | 96 | let frame: CGRect 97 | if scrollDirection == .vertical { 98 | frame = CGRect(x: 0, y: additionalSectionSpacing, width: fixedDimension, height: headerFlexibleDimension) 99 | } else { 100 | frame = CGRect(x: additionalSectionSpacing, y: 0, width: headerFlexibleDimension, height: fixedDimension) 101 | } 102 | let headerLayoutAttributes = UICollectionViewLayoutAttributes(forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, with: IndexPath(item: 0, section: section)) 103 | headerLayoutAttributes.frame = frame 104 | 105 | headerAttributesCache.append(headerLayoutAttributes) 106 | additionalSectionSpacing += headerFlexibleDimension + itemSpacing 107 | } 108 | 109 | // Calculate item attributes 110 | let sectionOffset = additionalSectionSpacing 111 | sectionedItemGrid.append([]) 112 | 113 | var flexibleIndex = 0, fixedIndex = 0 114 | for item in 0 ..< itemCount { 115 | if fixedIndex >= intFixedDivisionCount { 116 | // Reached end of row in .vertical or column in .horizontal 117 | fixedIndex = 0 118 | flexibleIndex += 1 119 | } 120 | 121 | let itemIndexPath = IndexPath(item: item, section: section) 122 | let itemScale = indexableScale(forItemAt: itemIndexPath) 123 | let intendedFrame = ItemFrame(section, flexibleIndex, fixedIndex, itemScale) 124 | 125 | // Find a place for the item in the grid 126 | let (itemFrame, didFitInOriginalFrame) = nextAvailableFrame(startingAt: intendedFrame) 127 | 128 | reserveItemGrid(frame: itemFrame) 129 | let itemAttributes = layoutAttributes(for: itemIndexPath, at: itemFrame, with: sectionOffset) 130 | 131 | itemAttributesCache.append(itemAttributes) 132 | 133 | // Update flexible dimension 134 | if scrollDirection == .vertical { 135 | if itemAttributes.frame.maxY > contentHeight { 136 | contentHeight = itemAttributes.frame.maxY 137 | } 138 | if itemAttributes.frame.maxY > additionalSectionSpacing { 139 | additionalSectionSpacing = itemAttributes.frame.maxY 140 | } 141 | } else { 142 | // .horizontal 143 | if itemAttributes.frame.maxX > contentWidth { 144 | contentWidth = itemAttributes.frame.maxX 145 | } 146 | if itemAttributes.frame.maxX > additionalSectionSpacing { 147 | additionalSectionSpacing = itemAttributes.frame.maxX 148 | } 149 | } 150 | 151 | if (didFitInOriginalFrame) { 152 | fixedIndex += 1 + itemFrame.scale 153 | } 154 | } 155 | } 156 | sectionedItemGrid = [] // Only used during prepare, free up some memory 157 | } 158 | 159 | override open func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { 160 | let headerAttributes = headerAttributesCache.filter { 161 | $0.frame.intersects(rect) 162 | } 163 | let itemAttributes = itemAttributesCache.filter { 164 | $0.frame.intersects(rect) 165 | } 166 | 167 | return headerAttributes + itemAttributes 168 | } 169 | 170 | override open func layoutAttributesForItem(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? { 171 | return itemAttributesCache.first { 172 | $0.indexPath == indexPath 173 | } 174 | } 175 | 176 | override open func layoutAttributesForSupplementaryView(ofKind elementKind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? { 177 | guard elementKind == UICollectionView.elementKindSectionHeader else { return nil } 178 | 179 | return headerAttributesCache.first { 180 | $0.indexPath == indexPath 181 | } 182 | } 183 | 184 | override open func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool { 185 | if scrollDirection == .vertical, let oldWidth = collectionView?.bounds.width { 186 | return oldWidth != newBounds.width 187 | } else if scrollDirection == .horizontal, let oldHeight = collectionView?.bounds.height { 188 | return oldHeight != newBounds.height 189 | } 190 | 191 | return false 192 | } 193 | 194 | override open func invalidateLayout() { 195 | super.invalidateLayout() 196 | 197 | itemAttributesCache = [] 198 | headerAttributesCache = [] 199 | contentWidth = 0 200 | contentHeight = 0 201 | } 202 | 203 | // MARK: - Private 204 | private func indexableScale(forItemAt indexPath: IndexPath) -> Int { 205 | var itemScale = (delegate ?? self).scaleForItem(inCollectionView: collectionView!, withLayout: self, atIndexPath: indexPath) 206 | if itemScale > fixedDivisionCount { 207 | itemScale = fixedDivisionCount 208 | } 209 | return Int(itemScale - 1) // Using with indices, want 0-based 210 | } 211 | 212 | private func nextAvailableFrame(startingAt originalFrame: ItemFrame) -> (frame: ItemFrame, fitInOriginalFrame: Bool) { 213 | var flexibleIndex = originalFrame.flexibleIndex, fixedIndex = originalFrame.fixedIndex 214 | var newFrame = ItemFrame(originalFrame.section, flexibleIndex, fixedIndex, originalFrame.scale) 215 | while !isSpaceAvailable(for: newFrame) { 216 | fixedIndex += 1 217 | 218 | // Reached end of fixedIndex, restart on next flexibleIndex 219 | if fixedIndex + originalFrame.scale >= intFixedDivisionCount { 220 | fixedIndex = 0 221 | flexibleIndex += 1 222 | } 223 | 224 | newFrame = ItemFrame(originalFrame.section, flexibleIndex, fixedIndex, originalFrame.scale) 225 | } 226 | 227 | // Fits iff we never had to walk the grid to find a position 228 | return (newFrame, flexibleIndex == originalFrame.flexibleIndex && fixedIndex == originalFrame.fixedIndex) 229 | } 230 | 231 | /// Checks the grid from the origin to the origin + scale for occupied blocks 232 | private func isSpaceAvailable(for frame: ItemFrame) -> Bool { 233 | for flexibleIndex in frame.flexibleIndex ... frame.flexibleIndex + frame.scale { 234 | // Ensure we won't go off the end of the array 235 | while sectionedItemGrid[frame.section].count <= flexibleIndex { 236 | sectionedItemGrid[frame.section].append(Array(repeating: false, count: intFixedDivisionCount)) 237 | } 238 | 239 | for fixedIndex in frame.fixedIndex ... frame.fixedIndex + frame.scale { 240 | if fixedIndex >= intFixedDivisionCount || sectionedItemGrid[frame.section][flexibleIndex][fixedIndex] { 241 | return false 242 | } 243 | } 244 | } 245 | 246 | return true 247 | } 248 | 249 | private func reserveItemGrid(frame: ItemFrame) { 250 | for flexibleIndex in frame.flexibleIndex ... frame.flexibleIndex + frame.scale { 251 | for fixedIndex in frame.fixedIndex ... frame.fixedIndex + frame.scale { 252 | sectionedItemGrid[frame.section][flexibleIndex][fixedIndex] = true 253 | } 254 | } 255 | } 256 | 257 | private func layoutAttributes(for indexPath: IndexPath, at itemFrame: ItemFrame, with sectionOffset: CGFloat) -> UICollectionViewLayoutAttributes { 258 | let layoutAttributes = UICollectionViewLayoutAttributes(forCellWith: indexPath) 259 | 260 | let fixedIndexOffset = CGFloat(itemFrame.fixedIndex) * (itemSpacing + itemFixedDimension) 261 | let longitudinalOffset = CGFloat(itemFrame.flexibleIndex) * (itemSpacing + itemFlexibleDimension) + sectionOffset 262 | let itemScaledTransverseDimension = itemFixedDimension + (CGFloat(itemFrame.scale) * (itemSpacing + itemFixedDimension)) 263 | let itemScaledLongitudinalDimension = itemFlexibleDimension + (CGFloat(itemFrame.scale) * (itemSpacing + itemFlexibleDimension)) 264 | 265 | if scrollDirection == .vertical { 266 | layoutAttributes.frame = CGRect(x: fixedIndexOffset, y: longitudinalOffset, width: itemScaledTransverseDimension, height: itemScaledLongitudinalDimension) 267 | } else { 268 | layoutAttributes.frame = CGRect(x: longitudinalOffset, y: fixedIndexOffset, width: itemScaledLongitudinalDimension, height: itemScaledTransverseDimension) 269 | } 270 | 271 | return layoutAttributes 272 | } 273 | } 274 | 275 | -------------------------------------------------------------------------------- /SNCollectionViewLayout/Classes/SNCollectionViewLayoutDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SNCollectionViewLayoutDelegate.swift 3 | // SNCollectionViewLayout 4 | // 5 | // Created by Ahmad Almasri on 10/05/2021. 6 | // 7 | 8 | import Foundation 9 | 10 | public protocol SNCollectionViewLayoutDelegate: AnyObject { 11 | func scaleForItem(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, atIndexPath indexPath: IndexPath) -> UInt 12 | func itemFlexibleDimension(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, fixedDimension: CGFloat) -> CGFloat 13 | func headerFlexibleDimension(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, fixedDimension: CGFloat) -> CGFloat 14 | } 15 | 16 | public extension SNCollectionViewLayoutDelegate { 17 | func scaleForItem(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, atIndexPath indexPath: IndexPath) -> UInt { 18 | return 1 19 | } 20 | 21 | func itemFlexibleDimension(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, fixedDimension: CGFloat) -> CGFloat { 22 | return fixedDimension 23 | } 24 | 25 | func headerFlexibleDimension(inCollectionView collectionView: UICollectionView, withLayout layout: UICollectionViewLayout, fixedDimension: CGFloat) -> CGFloat { 26 | return 0 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /screenshot/img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/SNCollectionViewLayout/bff0c3e25473968e9222e3776cbedb814983be12/screenshot/img1.png --------------------------------------------------------------------------------