├── .gitignore ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── WBCollectionViewLayout.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-WBCollectionViewLayout_Example │ │ ├── Info.plist │ │ ├── Pods-WBCollectionViewLayout_Example-acknowledgements.markdown │ │ ├── Pods-WBCollectionViewLayout_Example-acknowledgements.plist │ │ ├── Pods-WBCollectionViewLayout_Example-dummy.m │ │ ├── Pods-WBCollectionViewLayout_Example-frameworks.sh │ │ ├── Pods-WBCollectionViewLayout_Example-resources.sh │ │ ├── Pods-WBCollectionViewLayout_Example-umbrella.h │ │ ├── Pods-WBCollectionViewLayout_Example.debug.xcconfig │ │ ├── Pods-WBCollectionViewLayout_Example.modulemap │ │ └── Pods-WBCollectionViewLayout_Example.release.xcconfig │ │ ├── Pods-WBCollectionViewLayout_Tests │ │ ├── Info.plist │ │ ├── Pods-WBCollectionViewLayout_Tests-acknowledgements.markdown │ │ ├── Pods-WBCollectionViewLayout_Tests-acknowledgements.plist │ │ ├── Pods-WBCollectionViewLayout_Tests-dummy.m │ │ ├── Pods-WBCollectionViewLayout_Tests-frameworks.sh │ │ ├── Pods-WBCollectionViewLayout_Tests-resources.sh │ │ ├── Pods-WBCollectionViewLayout_Tests-umbrella.h │ │ ├── Pods-WBCollectionViewLayout_Tests.debug.xcconfig │ │ ├── Pods-WBCollectionViewLayout_Tests.modulemap │ │ └── Pods-WBCollectionViewLayout_Tests.release.xcconfig │ │ └── WBCollectionViewLayout │ │ ├── Info.plist │ │ ├── WBCollectionViewLayout-dummy.m │ │ ├── WBCollectionViewLayout-prefix.pch │ │ ├── WBCollectionViewLayout-umbrella.h │ │ ├── WBCollectionViewLayout.modulemap │ │ └── WBCollectionViewLayout.xcconfig ├── Tests │ ├── Info.plist │ └── Tests.swift ├── WBCollectionViewLayout.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── WBCollectionViewLayout-Example.xcscheme ├── WBCollectionViewLayout.xcworkspace │ └── contents.xcworkspacedata └── WBCollectionViewLayout │ ├── AppDelegate.swift │ ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard │ ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ ├── MenuViewController.swift │ └── ViewController.swift ├── LICENSE ├── README.md ├── Screenshots ├── mixture.png ├── mixture_1.png ├── threeleft.png ├── threeleft_1.png ├── threeright.png ├── threeright_1.png ├── two.png └── two_1.png ├── WBCollectionViewLayout.podspec ├── WBCollectionViewLayout ├── 0.1.0 │ └── WBCollectionViewLayout.podspec ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── WBGridViewLayout.swift └── _Pods.xcodeproj /.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 | # http://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 | # * http://www.objc.io/issue-6/travis-ci.html 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/WBCollectionViewLayout.xcworkspace -scheme WBCollectionViewLayout-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | ## 1. Purpose 4 | 5 | A primary goal of Wb Collection View Layout is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof). 6 | 7 | This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior. 8 | 9 | We invite all those who participate in Wb Collection View Layout to help us create safe and positive experiences for everyone. 10 | 11 | ## 2. Open Source Citizenship 12 | 13 | A supplemental goal of this Code of Conduct is to increase open source citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community. 14 | 15 | Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society. 16 | 17 | If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know. 18 | 19 | ## 3. Expected Behavior 20 | 21 | The following behaviors are expected and requested of all community members: 22 | 23 | * Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community. 24 | * Exercise consideration and respect in your speech and actions. 25 | * Attempt collaboration before conflict. 26 | * Refrain from demeaning, discriminatory, or harassing behavior and speech. 27 | * Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential. 28 | * Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations. 29 | 30 | ## 4. Unacceptable Behavior 31 | 32 | The following behaviors are considered harassment and are unacceptable within our community: 33 | 34 | * Violence, threats of violence or violent language directed against another person. 35 | * Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language. 36 | * Posting or displaying sexually explicit or violent material. 37 | * Posting or threatening to post other people’s personally identifying information ("doxing"). 38 | * Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability. 39 | * Inappropriate photography or recording. 40 | * Inappropriate physical contact. You should have someone’s consent before touching them. 41 | * Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances. 42 | * Deliberate intimidation, stalking or following (online or in person). 43 | * Advocating for, or encouraging, any of the above behavior. 44 | * Sustained disruption of community events, including talks and presentations. 45 | 46 | ## 5. Consequences of Unacceptable Behavior 47 | 48 | Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated. 49 | 50 | Anyone asked to stop unacceptable behavior is expected to comply immediately. 51 | 52 | If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event). 53 | 54 | ## 6. Reporting Guidelines 55 | 56 | If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. m.waqas.bhati@hotmail.com. 57 | 58 | 59 | 60 | Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress. 61 | 62 | ## 7. Addressing Grievances 63 | 64 | If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify Mwaqasbhati with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. 65 | 66 | 67 | 68 | ## 8. Scope 69 | 70 | We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues–online and in-person–as well as in all one-on-one communications pertaining to community business. 71 | 72 | This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members. 73 | 74 | ## 9. Contact info 75 | 76 | m.waqas.bhati@hotmail.com 77 | 78 | ## 10. License and attribution 79 | 80 | This Code of Conduct is distributed under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/). 81 | 82 | Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy). 83 | 84 | Retrieved on November 22, 2016 from [http://citizencodeofconduct.org/](http://citizencodeofconduct.org/) 85 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'WBCollectionViewLayout_Example' do 4 | pod 'WBCollectionViewLayout', :path => '../' 5 | 6 | target 'WBCollectionViewLayout_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - WBCollectionViewLayout (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - WBCollectionViewLayout (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | WBCollectionViewLayout: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | WBCollectionViewLayout: bdc26b493b8bbeadabbc30614779fb719e66e218 13 | 14 | PODFILE CHECKSUM: e6b708aaa99bc1e166f2e1c5b3f16cab2aac72d0 15 | 16 | COCOAPODS: 1.4.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/WBCollectionViewLayout.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "WBCollectionViewLayout", 3 | "version": "0.1.0", 4 | "summary": "A short description of WBCollectionViewLayout.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/mwaqasbhati/WBCollectionViewLayout", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "mwaqasbhati": "m.waqas.bhati@hotmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/mwaqasbhati/WBCollectionViewLayout.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "WBCollectionViewLayout/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - WBCollectionViewLayout (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - WBCollectionViewLayout (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | WBCollectionViewLayout: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | WBCollectionViewLayout: bdc26b493b8bbeadabbc30614779fb719e66e218 13 | 14 | PODFILE CHECKSUM: e6b708aaa99bc1e166f2e1c5b3f16cab2aac72d0 15 | 16 | COCOAPODS: 1.4.0 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 | 2C6BB3AF84FE23FDC6BA5F47191EF35B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 11 | 3FF90D08302FA84AE528B0E115AB8D10 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 12 | 670F1A063FF95B5EA26C0578219AEAFA /* Pods-WBCollectionViewLayout_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 3B9014195813C8BD8D197A9949916821 /* Pods-WBCollectionViewLayout_Tests-dummy.m */; }; 13 | 97377FECDB5E9E803B0CFF4BD1968D1C /* Pods-WBCollectionViewLayout_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 98953D8BEDB0CCCF5F08350EE9CE1C9C /* Pods-WBCollectionViewLayout_Example-dummy.m */; }; 14 | B8B7421789C630C64E9EEEE67F427389 /* Pods-WBCollectionViewLayout_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0E16B298C1EB8C286FC1AE7A48C0558F /* Pods-WBCollectionViewLayout_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | BD17235ED8DF469A8B239BFCF52D7115 /* WBCollectionViewLayout-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E65AB7C20D1D41C041DEA8DEE6580F06 /* WBCollectionViewLayout-dummy.m */; }; 16 | CAEF37FD63B8BCF5F1AA50BFCBF9F5E9 /* WBCollectionViewLayout-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1B92E49C2ADAE4D640A481752CA2C504 /* WBCollectionViewLayout-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | F626DF6BD7392BBE4ABD39C7A7B47F60 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 18 | FA22206F206D82DC0055DC2F /* WBGridViewLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA22206E206D82DC0055DC2F /* WBGridViewLayout.swift */; }; 19 | FC2793879E21B09C0A77AF48EA29D9BF /* Pods-WBCollectionViewLayout_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 5B5E03A7589E0C2B179C133C86195543 /* Pods-WBCollectionViewLayout_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 4266892FCB5CA33C47C8191D4E05C53B /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = A2FE82029EB8D7B4D6CE053964CA9FD4; 28 | remoteInfo = WBCollectionViewLayout; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 0ABB527B2036E349C3C9AAE4B548522D /* Pods-WBCollectionViewLayout_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-WBCollectionViewLayout_Tests.modulemap"; sourceTree = ""; }; 34 | 0E16B298C1EB8C286FC1AE7A48C0558F /* Pods-WBCollectionViewLayout_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-WBCollectionViewLayout_Tests-umbrella.h"; sourceTree = ""; }; 35 | 0E8AD2D5369EEBDD458D22426BB2F3E0 /* Pods-WBCollectionViewLayout_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WBCollectionViewLayout_Example.release.xcconfig"; sourceTree = ""; }; 36 | 1B92E49C2ADAE4D640A481752CA2C504 /* WBCollectionViewLayout-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WBCollectionViewLayout-umbrella.h"; sourceTree = ""; }; 37 | 28C4EBD6266A5ABAFB273AF43B34C394 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 38 | 2BD6E6132C3A182DE06EAB3871E12771 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 3072C926493A5919BFE5F237910A0C69 /* WBCollectionViewLayout.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WBCollectionViewLayout.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 36C1CA846BE6C98B181E5CBF6657FD33 /* Pods-WBCollectionViewLayout_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WBCollectionViewLayout_Example-acknowledgements.markdown"; sourceTree = ""; }; 41 | 3B9014195813C8BD8D197A9949916821 /* Pods-WBCollectionViewLayout_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WBCollectionViewLayout_Tests-dummy.m"; sourceTree = ""; }; 42 | 44580E25E30215DC14480637B4ACC26F /* Pods_WBCollectionViewLayout_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WBCollectionViewLayout_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 445CE5D83E5D6447B05F2F2D27BC0688 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 455A3BBCB3863EFCC2477D236B3F2875 /* Pods-WBCollectionViewLayout_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WBCollectionViewLayout_Example-acknowledgements.plist"; sourceTree = ""; }; 45 | 4F5E5362D139348CAD4DAC29C5672F32 /* Pods-WBCollectionViewLayout_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WBCollectionViewLayout_Example.debug.xcconfig"; sourceTree = ""; }; 46 | 5B5E03A7589E0C2B179C133C86195543 /* Pods-WBCollectionViewLayout_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-WBCollectionViewLayout_Example-umbrella.h"; sourceTree = ""; }; 47 | 602319E4065673D81C5A0EB74D868621 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | 6196FDADB22237336221357CF9F043CD /* WBCollectionViewLayout.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = WBCollectionViewLayout.xcconfig; sourceTree = ""; }; 49 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 50 | 67262ED99DD3C3B401A5FD30BB81934D /* Pods-WBCollectionViewLayout_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WBCollectionViewLayout_Example-resources.sh"; sourceTree = ""; }; 51 | 728B3751F77C4EC53E30B444F9396C8B /* Pods-WBCollectionViewLayout_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WBCollectionViewLayout_Tests-acknowledgements.markdown"; sourceTree = ""; }; 52 | 906048E36A7A3BE188BCC8D8961B5B27 /* WBCollectionViewLayout-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WBCollectionViewLayout-prefix.pch"; sourceTree = ""; }; 53 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 54 | 95C34C3CC6AB1838E2CE28B88B24C01A /* Pods-WBCollectionViewLayout_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WBCollectionViewLayout_Tests-frameworks.sh"; sourceTree = ""; }; 55 | 97A08F53B07733DDFE5A10B41C9519EC /* Pods-WBCollectionViewLayout_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WBCollectionViewLayout_Tests-acknowledgements.plist"; sourceTree = ""; }; 56 | 98953D8BEDB0CCCF5F08350EE9CE1C9C /* Pods-WBCollectionViewLayout_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WBCollectionViewLayout_Example-dummy.m"; sourceTree = ""; }; 57 | A2CADD327FE4F6987600284D759940D6 /* Pods-WBCollectionViewLayout_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WBCollectionViewLayout_Tests.debug.xcconfig"; sourceTree = ""; }; 58 | AE9DF8A30F976DACC0AFC77C4350DE0E /* WBCollectionViewLayout.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; path = WBCollectionViewLayout.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 59 | AF202B502B8C3C49CC1D9FA86313390F /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 60 | B4846196842064DBA39A5737443DBBA9 /* Pods-WBCollectionViewLayout_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-WBCollectionViewLayout_Example.modulemap"; sourceTree = ""; }; 61 | BFF299C7E5E3A8EB7B107F910CDE85F4 /* Pods_WBCollectionViewLayout_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WBCollectionViewLayout_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | C1E7D90ED6DEF12F4D6CEAFC67301CC7 /* Pods-WBCollectionViewLayout_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WBCollectionViewLayout_Example-frameworks.sh"; sourceTree = ""; }; 63 | DA8293ABA82FB4BF27A2D7CABD85B592 /* WBCollectionViewLayout.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = WBCollectionViewLayout.modulemap; sourceTree = ""; }; 64 | E65AB7C20D1D41C041DEA8DEE6580F06 /* WBCollectionViewLayout-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "WBCollectionViewLayout-dummy.m"; sourceTree = ""; }; 65 | E769479520BC5A5AA5C487A78115EA31 /* Pods-WBCollectionViewLayout_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WBCollectionViewLayout_Tests.release.xcconfig"; sourceTree = ""; }; 66 | EE2AB2C9176C29C72FD1EF510E806ED6 /* Pods-WBCollectionViewLayout_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WBCollectionViewLayout_Tests-resources.sh"; sourceTree = ""; }; 67 | FA22206E206D82DC0055DC2F /* WBGridViewLayout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = WBGridViewLayout.swift; path = WBCollectionViewLayout/Classes/WBGridViewLayout.swift; sourceTree = ""; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 6C56AD5878E0C15DFF583063ED1C37B1 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | F626DF6BD7392BBE4ABD39C7A7B47F60 /* Foundation.framework in Frameworks */, 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | 9536641A6DC42FA99BCA2DA8FB0941F8 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | 2C6BB3AF84FE23FDC6BA5F47191EF35B /* Foundation.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | 9F180339519B0EC3E08F1503555A5026 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | 3FF90D08302FA84AE528B0E115AB8D10 /* Foundation.framework in Frameworks */, 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | /* End PBXFrameworksBuildPhase section */ 96 | 97 | /* Begin PBXGroup section */ 98 | 17A471CC4F926F82D11375E8D0BA636F /* Development Pods */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 31F81DF246B3D9141D9349964DF01DBC /* WBCollectionViewLayout */, 102 | ); 103 | name = "Development Pods"; 104 | sourceTree = ""; 105 | }; 106 | 188A4FE155F3B4230F98DB6644BDC268 /* Pods-WBCollectionViewLayout_Example */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 602319E4065673D81C5A0EB74D868621 /* Info.plist */, 110 | B4846196842064DBA39A5737443DBBA9 /* Pods-WBCollectionViewLayout_Example.modulemap */, 111 | 36C1CA846BE6C98B181E5CBF6657FD33 /* Pods-WBCollectionViewLayout_Example-acknowledgements.markdown */, 112 | 455A3BBCB3863EFCC2477D236B3F2875 /* Pods-WBCollectionViewLayout_Example-acknowledgements.plist */, 113 | 98953D8BEDB0CCCF5F08350EE9CE1C9C /* Pods-WBCollectionViewLayout_Example-dummy.m */, 114 | C1E7D90ED6DEF12F4D6CEAFC67301CC7 /* Pods-WBCollectionViewLayout_Example-frameworks.sh */, 115 | 67262ED99DD3C3B401A5FD30BB81934D /* Pods-WBCollectionViewLayout_Example-resources.sh */, 116 | 5B5E03A7589E0C2B179C133C86195543 /* Pods-WBCollectionViewLayout_Example-umbrella.h */, 117 | 4F5E5362D139348CAD4DAC29C5672F32 /* Pods-WBCollectionViewLayout_Example.debug.xcconfig */, 118 | 0E8AD2D5369EEBDD458D22426BB2F3E0 /* Pods-WBCollectionViewLayout_Example.release.xcconfig */, 119 | ); 120 | name = "Pods-WBCollectionViewLayout_Example"; 121 | path = "Target Support Files/Pods-WBCollectionViewLayout_Example"; 122 | sourceTree = ""; 123 | }; 124 | 1CC5B9422493A8DEB397532D37718877 /* Targets Support Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 188A4FE155F3B4230F98DB6644BDC268 /* Pods-WBCollectionViewLayout_Example */, 128 | AE8B7C0F9A40A03F93F7EA6E2F5C75C5 /* Pods-WBCollectionViewLayout_Tests */, 129 | ); 130 | name = "Targets Support Files"; 131 | sourceTree = ""; 132 | }; 133 | 2781CA743048FBE62C3EF78220CB41FE /* Support Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 445CE5D83E5D6447B05F2F2D27BC0688 /* Info.plist */, 137 | DA8293ABA82FB4BF27A2D7CABD85B592 /* WBCollectionViewLayout.modulemap */, 138 | 6196FDADB22237336221357CF9F043CD /* WBCollectionViewLayout.xcconfig */, 139 | E65AB7C20D1D41C041DEA8DEE6580F06 /* WBCollectionViewLayout-dummy.m */, 140 | 906048E36A7A3BE188BCC8D8961B5B27 /* WBCollectionViewLayout-prefix.pch */, 141 | 1B92E49C2ADAE4D640A481752CA2C504 /* WBCollectionViewLayout-umbrella.h */, 142 | ); 143 | name = "Support Files"; 144 | path = "Example/Pods/Target Support Files/WBCollectionViewLayout"; 145 | sourceTree = ""; 146 | }; 147 | 31F81DF246B3D9141D9349964DF01DBC /* WBCollectionViewLayout */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | FA22206E206D82DC0055DC2F /* WBGridViewLayout.swift */, 151 | E6E5BF15BCDD55B14034006ACFFA4612 /* Pod */, 152 | 2781CA743048FBE62C3EF78220CB41FE /* Support Files */, 153 | ); 154 | name = WBCollectionViewLayout; 155 | path = ../..; 156 | sourceTree = ""; 157 | }; 158 | 7DB346D0F39D3F0E887471402A8071AB = { 159 | isa = PBXGroup; 160 | children = ( 161 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 162 | 17A471CC4F926F82D11375E8D0BA636F /* Development Pods */, 163 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 164 | A0BEE563701E3FCF0A428BA135559B56 /* Products */, 165 | 1CC5B9422493A8DEB397532D37718877 /* Targets Support Files */, 166 | ); 167 | sourceTree = ""; 168 | }; 169 | A0BEE563701E3FCF0A428BA135559B56 /* Products */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | BFF299C7E5E3A8EB7B107F910CDE85F4 /* Pods_WBCollectionViewLayout_Example.framework */, 173 | 44580E25E30215DC14480637B4ACC26F /* Pods_WBCollectionViewLayout_Tests.framework */, 174 | 3072C926493A5919BFE5F237910A0C69 /* WBCollectionViewLayout.framework */, 175 | ); 176 | name = Products; 177 | sourceTree = ""; 178 | }; 179 | AE8B7C0F9A40A03F93F7EA6E2F5C75C5 /* Pods-WBCollectionViewLayout_Tests */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | 2BD6E6132C3A182DE06EAB3871E12771 /* Info.plist */, 183 | 0ABB527B2036E349C3C9AAE4B548522D /* Pods-WBCollectionViewLayout_Tests.modulemap */, 184 | 728B3751F77C4EC53E30B444F9396C8B /* Pods-WBCollectionViewLayout_Tests-acknowledgements.markdown */, 185 | 97A08F53B07733DDFE5A10B41C9519EC /* Pods-WBCollectionViewLayout_Tests-acknowledgements.plist */, 186 | 3B9014195813C8BD8D197A9949916821 /* Pods-WBCollectionViewLayout_Tests-dummy.m */, 187 | 95C34C3CC6AB1838E2CE28B88B24C01A /* Pods-WBCollectionViewLayout_Tests-frameworks.sh */, 188 | EE2AB2C9176C29C72FD1EF510E806ED6 /* Pods-WBCollectionViewLayout_Tests-resources.sh */, 189 | 0E16B298C1EB8C286FC1AE7A48C0558F /* Pods-WBCollectionViewLayout_Tests-umbrella.h */, 190 | A2CADD327FE4F6987600284D759940D6 /* Pods-WBCollectionViewLayout_Tests.debug.xcconfig */, 191 | E769479520BC5A5AA5C487A78115EA31 /* Pods-WBCollectionViewLayout_Tests.release.xcconfig */, 192 | ); 193 | name = "Pods-WBCollectionViewLayout_Tests"; 194 | path = "Target Support Files/Pods-WBCollectionViewLayout_Tests"; 195 | sourceTree = ""; 196 | }; 197 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 198 | isa = PBXGroup; 199 | children = ( 200 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 201 | ); 202 | name = Frameworks; 203 | sourceTree = ""; 204 | }; 205 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 209 | ); 210 | name = iOS; 211 | sourceTree = ""; 212 | }; 213 | E6E5BF15BCDD55B14034006ACFFA4612 /* Pod */ = { 214 | isa = PBXGroup; 215 | children = ( 216 | AF202B502B8C3C49CC1D9FA86313390F /* LICENSE */, 217 | 28C4EBD6266A5ABAFB273AF43B34C394 /* README.md */, 218 | AE9DF8A30F976DACC0AFC77C4350DE0E /* WBCollectionViewLayout.podspec */, 219 | ); 220 | name = Pod; 221 | sourceTree = ""; 222 | }; 223 | /* End PBXGroup section */ 224 | 225 | /* Begin PBXHeadersBuildPhase section */ 226 | C9545E872510CE1EDF8B726F7234D7CA /* Headers */ = { 227 | isa = PBXHeadersBuildPhase; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | FC2793879E21B09C0A77AF48EA29D9BF /* Pods-WBCollectionViewLayout_Example-umbrella.h in Headers */, 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | }; 234 | D4C76DDCBE39F3D2624B350398F0F46B /* Headers */ = { 235 | isa = PBXHeadersBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | CAEF37FD63B8BCF5F1AA50BFCBF9F5E9 /* WBCollectionViewLayout-umbrella.h in Headers */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | FF89BFDCB8249E08AF7B4A315EC22F86 /* Headers */ = { 243 | isa = PBXHeadersBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | B8B7421789C630C64E9EEEE67F427389 /* Pods-WBCollectionViewLayout_Tests-umbrella.h in Headers */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXHeadersBuildPhase section */ 251 | 252 | /* Begin PBXNativeTarget section */ 253 | 537DA464CDDEC6313DC87731C2C29305 /* Pods-WBCollectionViewLayout_Tests */ = { 254 | isa = PBXNativeTarget; 255 | buildConfigurationList = 9854097D78F024356EDE762060801D7F /* Build configuration list for PBXNativeTarget "Pods-WBCollectionViewLayout_Tests" */; 256 | buildPhases = ( 257 | D2C7FD13E2CA8E04FE056A00F73CF167 /* Sources */, 258 | 9536641A6DC42FA99BCA2DA8FB0941F8 /* Frameworks */, 259 | FF89BFDCB8249E08AF7B4A315EC22F86 /* Headers */, 260 | ); 261 | buildRules = ( 262 | ); 263 | dependencies = ( 264 | ); 265 | name = "Pods-WBCollectionViewLayout_Tests"; 266 | productName = "Pods-WBCollectionViewLayout_Tests"; 267 | productReference = 44580E25E30215DC14480637B4ACC26F /* Pods_WBCollectionViewLayout_Tests.framework */; 268 | productType = "com.apple.product-type.framework"; 269 | }; 270 | 85E3AD7C780BE5E40796242FC97F089E /* Pods-WBCollectionViewLayout_Example */ = { 271 | isa = PBXNativeTarget; 272 | buildConfigurationList = 1B5A06F415BC054F5F6B962C112F177E /* Build configuration list for PBXNativeTarget "Pods-WBCollectionViewLayout_Example" */; 273 | buildPhases = ( 274 | CBF2E17AF27C9759AD9419BC141E2552 /* Sources */, 275 | 6C56AD5878E0C15DFF583063ED1C37B1 /* Frameworks */, 276 | C9545E872510CE1EDF8B726F7234D7CA /* Headers */, 277 | ); 278 | buildRules = ( 279 | ); 280 | dependencies = ( 281 | 3D4752AB557A8CA1A8488E0A994C4CE0 /* PBXTargetDependency */, 282 | ); 283 | name = "Pods-WBCollectionViewLayout_Example"; 284 | productName = "Pods-WBCollectionViewLayout_Example"; 285 | productReference = BFF299C7E5E3A8EB7B107F910CDE85F4 /* Pods_WBCollectionViewLayout_Example.framework */; 286 | productType = "com.apple.product-type.framework"; 287 | }; 288 | A2FE82029EB8D7B4D6CE053964CA9FD4 /* WBCollectionViewLayout */ = { 289 | isa = PBXNativeTarget; 290 | buildConfigurationList = F2175366A9283ACC632222CFB21684F5 /* Build configuration list for PBXNativeTarget "WBCollectionViewLayout" */; 291 | buildPhases = ( 292 | CADD3B1F340E918C2B37954F8F777035 /* Sources */, 293 | 9F180339519B0EC3E08F1503555A5026 /* Frameworks */, 294 | D4C76DDCBE39F3D2624B350398F0F46B /* Headers */, 295 | ); 296 | buildRules = ( 297 | ); 298 | dependencies = ( 299 | ); 300 | name = WBCollectionViewLayout; 301 | productName = WBCollectionViewLayout; 302 | productReference = 3072C926493A5919BFE5F237910A0C69 /* WBCollectionViewLayout.framework */; 303 | productType = "com.apple.product-type.framework"; 304 | }; 305 | /* End PBXNativeTarget section */ 306 | 307 | /* Begin PBXProject section */ 308 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 309 | isa = PBXProject; 310 | attributes = { 311 | LastSwiftUpdateCheck = 0930; 312 | LastUpgradeCheck = 0930; 313 | TargetAttributes = { 314 | 85E3AD7C780BE5E40796242FC97F089E = { 315 | LastSwiftMigration = 0900; 316 | }; 317 | }; 318 | }; 319 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 320 | compatibilityVersion = "Xcode 3.2"; 321 | developmentRegion = English; 322 | hasScannedForEncodings = 0; 323 | knownRegions = ( 324 | en, 325 | ); 326 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 327 | productRefGroup = A0BEE563701E3FCF0A428BA135559B56 /* Products */; 328 | projectDirPath = ""; 329 | projectRoot = ""; 330 | targets = ( 331 | 85E3AD7C780BE5E40796242FC97F089E /* Pods-WBCollectionViewLayout_Example */, 332 | 537DA464CDDEC6313DC87731C2C29305 /* Pods-WBCollectionViewLayout_Tests */, 333 | A2FE82029EB8D7B4D6CE053964CA9FD4 /* WBCollectionViewLayout */, 334 | ); 335 | }; 336 | /* End PBXProject section */ 337 | 338 | /* Begin PBXSourcesBuildPhase section */ 339 | CADD3B1F340E918C2B37954F8F777035 /* Sources */ = { 340 | isa = PBXSourcesBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | BD17235ED8DF469A8B239BFCF52D7115 /* WBCollectionViewLayout-dummy.m in Sources */, 344 | FA22206F206D82DC0055DC2F /* WBGridViewLayout.swift in Sources */, 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | }; 348 | CBF2E17AF27C9759AD9419BC141E2552 /* Sources */ = { 349 | isa = PBXSourcesBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | 97377FECDB5E9E803B0CFF4BD1968D1C /* Pods-WBCollectionViewLayout_Example-dummy.m in Sources */, 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | }; 356 | D2C7FD13E2CA8E04FE056A00F73CF167 /* Sources */ = { 357 | isa = PBXSourcesBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | 670F1A063FF95B5EA26C0578219AEAFA /* Pods-WBCollectionViewLayout_Tests-dummy.m in Sources */, 361 | ); 362 | runOnlyForDeploymentPostprocessing = 0; 363 | }; 364 | /* End PBXSourcesBuildPhase section */ 365 | 366 | /* Begin PBXTargetDependency section */ 367 | 3D4752AB557A8CA1A8488E0A994C4CE0 /* PBXTargetDependency */ = { 368 | isa = PBXTargetDependency; 369 | name = WBCollectionViewLayout; 370 | target = A2FE82029EB8D7B4D6CE053964CA9FD4 /* WBCollectionViewLayout */; 371 | targetProxy = 4266892FCB5CA33C47C8191D4E05C53B /* PBXContainerItemProxy */; 372 | }; 373 | /* End PBXTargetDependency section */ 374 | 375 | /* Begin XCBuildConfiguration section */ 376 | 082C97B45470A70A6DD80F08F13E350D /* Debug */ = { 377 | isa = XCBuildConfiguration; 378 | baseConfigurationReference = 6196FDADB22237336221357CF9F043CD /* WBCollectionViewLayout.xcconfig */; 379 | buildSettings = { 380 | CODE_SIGN_IDENTITY = ""; 381 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 382 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 383 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 384 | CURRENT_PROJECT_VERSION = 1; 385 | DEFINES_MODULE = YES; 386 | DYLIB_COMPATIBILITY_VERSION = 1; 387 | DYLIB_CURRENT_VERSION = 1; 388 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 389 | GCC_PREFIX_HEADER = "Target Support Files/WBCollectionViewLayout/WBCollectionViewLayout-prefix.pch"; 390 | INFOPLIST_FILE = "Target Support Files/WBCollectionViewLayout/Info.plist"; 391 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 392 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 393 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 394 | MODULEMAP_FILE = "Target Support Files/WBCollectionViewLayout/WBCollectionViewLayout.modulemap"; 395 | PRODUCT_NAME = WBCollectionViewLayout; 396 | SDKROOT = iphoneos; 397 | SKIP_INSTALL = YES; 398 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 399 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 400 | SWIFT_VERSION = 4.0; 401 | TARGETED_DEVICE_FAMILY = "1,2"; 402 | VERSIONING_SYSTEM = "apple-generic"; 403 | VERSION_INFO_PREFIX = ""; 404 | }; 405 | name = Debug; 406 | }; 407 | 226DE25798E201858BB3F8F5A108EE71 /* Debug */ = { 408 | isa = XCBuildConfiguration; 409 | baseConfigurationReference = 4F5E5362D139348CAD4DAC29C5672F32 /* Pods-WBCollectionViewLayout_Example.debug.xcconfig */; 410 | buildSettings = { 411 | CLANG_ENABLE_MODULES = YES; 412 | CODE_SIGN_IDENTITY = ""; 413 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 414 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 415 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 416 | CURRENT_PROJECT_VERSION = 1; 417 | DEFINES_MODULE = YES; 418 | DYLIB_COMPATIBILITY_VERSION = 1; 419 | DYLIB_CURRENT_VERSION = 1; 420 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 421 | INFOPLIST_FILE = "Target Support Files/Pods-WBCollectionViewLayout_Example/Info.plist"; 422 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 423 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 424 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 425 | MACH_O_TYPE = staticlib; 426 | MODULEMAP_FILE = "Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example.modulemap"; 427 | OTHER_LDFLAGS = ""; 428 | OTHER_LIBTOOLFLAGS = ""; 429 | PODS_ROOT = "$(SRCROOT)"; 430 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 431 | PRODUCT_NAME = Pods_WBCollectionViewLayout_Example; 432 | SDKROOT = iphoneos; 433 | SKIP_INSTALL = YES; 434 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 435 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 436 | SWIFT_VERSION = 3.0; 437 | TARGETED_DEVICE_FAMILY = "1,2"; 438 | VERSIONING_SYSTEM = "apple-generic"; 439 | VERSION_INFO_PREFIX = ""; 440 | }; 441 | name = Debug; 442 | }; 443 | 2714CF3D1A92EDE4BACC1E9E77115874 /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = E769479520BC5A5AA5C487A78115EA31 /* Pods-WBCollectionViewLayout_Tests.release.xcconfig */; 446 | buildSettings = { 447 | CODE_SIGN_IDENTITY = ""; 448 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 449 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 450 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 451 | CURRENT_PROJECT_VERSION = 1; 452 | DEFINES_MODULE = YES; 453 | DYLIB_COMPATIBILITY_VERSION = 1; 454 | DYLIB_CURRENT_VERSION = 1; 455 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 456 | INFOPLIST_FILE = "Target Support Files/Pods-WBCollectionViewLayout_Tests/Info.plist"; 457 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 458 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 459 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 460 | MACH_O_TYPE = staticlib; 461 | MODULEMAP_FILE = "Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests.modulemap"; 462 | OTHER_LDFLAGS = ""; 463 | OTHER_LIBTOOLFLAGS = ""; 464 | PODS_ROOT = "$(SRCROOT)"; 465 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 466 | PRODUCT_NAME = Pods_WBCollectionViewLayout_Tests; 467 | SDKROOT = iphoneos; 468 | SKIP_INSTALL = YES; 469 | TARGETED_DEVICE_FAMILY = "1,2"; 470 | VALIDATE_PRODUCT = YES; 471 | VERSIONING_SYSTEM = "apple-generic"; 472 | VERSION_INFO_PREFIX = ""; 473 | }; 474 | name = Release; 475 | }; 476 | 5011B865762FC0C0A28ECEC4CB63DC68 /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | buildSettings = { 479 | ALWAYS_SEARCH_USER_PATHS = NO; 480 | CLANG_ANALYZER_NONNULL = YES; 481 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 482 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 483 | CLANG_CXX_LIBRARY = "libc++"; 484 | CLANG_ENABLE_MODULES = YES; 485 | CLANG_ENABLE_OBJC_ARC = YES; 486 | CLANG_ENABLE_OBJC_WEAK = YES; 487 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 488 | CLANG_WARN_BOOL_CONVERSION = YES; 489 | CLANG_WARN_COMMA = YES; 490 | CLANG_WARN_CONSTANT_CONVERSION = YES; 491 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 492 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 493 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 494 | CLANG_WARN_EMPTY_BODY = YES; 495 | CLANG_WARN_ENUM_CONVERSION = YES; 496 | CLANG_WARN_INFINITE_RECURSION = YES; 497 | CLANG_WARN_INT_CONVERSION = YES; 498 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 499 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 500 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 501 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 502 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 503 | CLANG_WARN_STRICT_PROTOTYPES = YES; 504 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 505 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 506 | CLANG_WARN_UNREACHABLE_CODE = YES; 507 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 508 | CODE_SIGNING_REQUIRED = NO; 509 | COPY_PHASE_STRIP = NO; 510 | DEBUG_INFORMATION_FORMAT = dwarf; 511 | ENABLE_STRICT_OBJC_MSGSEND = YES; 512 | ENABLE_TESTABILITY = YES; 513 | GCC_C_LANGUAGE_STANDARD = gnu11; 514 | GCC_DYNAMIC_NO_PIC = NO; 515 | GCC_NO_COMMON_BLOCKS = YES; 516 | GCC_OPTIMIZATION_LEVEL = 0; 517 | GCC_PREPROCESSOR_DEFINITIONS = ( 518 | "POD_CONFIGURATION_DEBUG=1", 519 | "DEBUG=1", 520 | "$(inherited)", 521 | ); 522 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 523 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 524 | GCC_WARN_UNDECLARED_SELECTOR = YES; 525 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 526 | GCC_WARN_UNUSED_FUNCTION = YES; 527 | GCC_WARN_UNUSED_VARIABLE = YES; 528 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 529 | MTL_ENABLE_DEBUG_INFO = YES; 530 | ONLY_ACTIVE_ARCH = YES; 531 | PRODUCT_NAME = "$(TARGET_NAME)"; 532 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 533 | STRIP_INSTALLED_PRODUCT = NO; 534 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 535 | SYMROOT = "${SRCROOT}/../build"; 536 | }; 537 | name = Debug; 538 | }; 539 | 827269710C98D60C14D46BC6AF9BF728 /* Release */ = { 540 | isa = XCBuildConfiguration; 541 | buildSettings = { 542 | ALWAYS_SEARCH_USER_PATHS = NO; 543 | CLANG_ANALYZER_NONNULL = YES; 544 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 545 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 546 | CLANG_CXX_LIBRARY = "libc++"; 547 | CLANG_ENABLE_MODULES = YES; 548 | CLANG_ENABLE_OBJC_ARC = YES; 549 | CLANG_ENABLE_OBJC_WEAK = YES; 550 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 551 | CLANG_WARN_BOOL_CONVERSION = YES; 552 | CLANG_WARN_COMMA = YES; 553 | CLANG_WARN_CONSTANT_CONVERSION = YES; 554 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 555 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 556 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 557 | CLANG_WARN_EMPTY_BODY = YES; 558 | CLANG_WARN_ENUM_CONVERSION = YES; 559 | CLANG_WARN_INFINITE_RECURSION = YES; 560 | CLANG_WARN_INT_CONVERSION = YES; 561 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 562 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 563 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 564 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 565 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 566 | CLANG_WARN_STRICT_PROTOTYPES = YES; 567 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 568 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 569 | CLANG_WARN_UNREACHABLE_CODE = YES; 570 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 571 | CODE_SIGNING_REQUIRED = NO; 572 | COPY_PHASE_STRIP = NO; 573 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 574 | ENABLE_NS_ASSERTIONS = NO; 575 | ENABLE_STRICT_OBJC_MSGSEND = YES; 576 | GCC_C_LANGUAGE_STANDARD = gnu11; 577 | GCC_NO_COMMON_BLOCKS = YES; 578 | GCC_PREPROCESSOR_DEFINITIONS = ( 579 | "POD_CONFIGURATION_RELEASE=1", 580 | "$(inherited)", 581 | ); 582 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 583 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 584 | GCC_WARN_UNDECLARED_SELECTOR = YES; 585 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 586 | GCC_WARN_UNUSED_FUNCTION = YES; 587 | GCC_WARN_UNUSED_VARIABLE = YES; 588 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 589 | MTL_ENABLE_DEBUG_INFO = NO; 590 | PRODUCT_NAME = "$(TARGET_NAME)"; 591 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 592 | STRIP_INSTALLED_PRODUCT = NO; 593 | SYMROOT = "${SRCROOT}/../build"; 594 | }; 595 | name = Release; 596 | }; 597 | 87058B050A799FFD461D8490E2C262BD /* Release */ = { 598 | isa = XCBuildConfiguration; 599 | baseConfigurationReference = 6196FDADB22237336221357CF9F043CD /* WBCollectionViewLayout.xcconfig */; 600 | buildSettings = { 601 | CODE_SIGN_IDENTITY = ""; 602 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 603 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 604 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 605 | CURRENT_PROJECT_VERSION = 1; 606 | DEFINES_MODULE = YES; 607 | DYLIB_COMPATIBILITY_VERSION = 1; 608 | DYLIB_CURRENT_VERSION = 1; 609 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 610 | GCC_PREFIX_HEADER = "Target Support Files/WBCollectionViewLayout/WBCollectionViewLayout-prefix.pch"; 611 | INFOPLIST_FILE = "Target Support Files/WBCollectionViewLayout/Info.plist"; 612 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 613 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 614 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 615 | MODULEMAP_FILE = "Target Support Files/WBCollectionViewLayout/WBCollectionViewLayout.modulemap"; 616 | PRODUCT_NAME = WBCollectionViewLayout; 617 | SDKROOT = iphoneos; 618 | SKIP_INSTALL = YES; 619 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 620 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 621 | SWIFT_VERSION = 4.0; 622 | TARGETED_DEVICE_FAMILY = "1,2"; 623 | VALIDATE_PRODUCT = YES; 624 | VERSIONING_SYSTEM = "apple-generic"; 625 | VERSION_INFO_PREFIX = ""; 626 | }; 627 | name = Release; 628 | }; 629 | DD0B4DEC2BFCB809CDEB33F52E760C9C /* Debug */ = { 630 | isa = XCBuildConfiguration; 631 | baseConfigurationReference = A2CADD327FE4F6987600284D759940D6 /* Pods-WBCollectionViewLayout_Tests.debug.xcconfig */; 632 | buildSettings = { 633 | CODE_SIGN_IDENTITY = ""; 634 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 635 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 636 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 637 | CURRENT_PROJECT_VERSION = 1; 638 | DEFINES_MODULE = YES; 639 | DYLIB_COMPATIBILITY_VERSION = 1; 640 | DYLIB_CURRENT_VERSION = 1; 641 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 642 | INFOPLIST_FILE = "Target Support Files/Pods-WBCollectionViewLayout_Tests/Info.plist"; 643 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 644 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 645 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 646 | MACH_O_TYPE = staticlib; 647 | MODULEMAP_FILE = "Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests.modulemap"; 648 | OTHER_LDFLAGS = ""; 649 | OTHER_LIBTOOLFLAGS = ""; 650 | PODS_ROOT = "$(SRCROOT)"; 651 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 652 | PRODUCT_NAME = Pods_WBCollectionViewLayout_Tests; 653 | SDKROOT = iphoneos; 654 | SKIP_INSTALL = YES; 655 | TARGETED_DEVICE_FAMILY = "1,2"; 656 | VERSIONING_SYSTEM = "apple-generic"; 657 | VERSION_INFO_PREFIX = ""; 658 | }; 659 | name = Debug; 660 | }; 661 | FE88F114E91B512DCAD79DC2F3BCF94F /* Release */ = { 662 | isa = XCBuildConfiguration; 663 | baseConfigurationReference = 0E8AD2D5369EEBDD458D22426BB2F3E0 /* Pods-WBCollectionViewLayout_Example.release.xcconfig */; 664 | buildSettings = { 665 | CLANG_ENABLE_MODULES = YES; 666 | CODE_SIGN_IDENTITY = ""; 667 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 668 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 669 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 670 | CURRENT_PROJECT_VERSION = 1; 671 | DEFINES_MODULE = YES; 672 | DYLIB_COMPATIBILITY_VERSION = 1; 673 | DYLIB_CURRENT_VERSION = 1; 674 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 675 | INFOPLIST_FILE = "Target Support Files/Pods-WBCollectionViewLayout_Example/Info.plist"; 676 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 677 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 678 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 679 | MACH_O_TYPE = staticlib; 680 | MODULEMAP_FILE = "Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example.modulemap"; 681 | OTHER_LDFLAGS = ""; 682 | OTHER_LIBTOOLFLAGS = ""; 683 | PODS_ROOT = "$(SRCROOT)"; 684 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 685 | PRODUCT_NAME = Pods_WBCollectionViewLayout_Example; 686 | SDKROOT = iphoneos; 687 | SKIP_INSTALL = YES; 688 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 689 | SWIFT_VERSION = 3.0; 690 | TARGETED_DEVICE_FAMILY = "1,2"; 691 | VALIDATE_PRODUCT = YES; 692 | VERSIONING_SYSTEM = "apple-generic"; 693 | VERSION_INFO_PREFIX = ""; 694 | }; 695 | name = Release; 696 | }; 697 | /* End XCBuildConfiguration section */ 698 | 699 | /* Begin XCConfigurationList section */ 700 | 1B5A06F415BC054F5F6B962C112F177E /* Build configuration list for PBXNativeTarget "Pods-WBCollectionViewLayout_Example" */ = { 701 | isa = XCConfigurationList; 702 | buildConfigurations = ( 703 | 226DE25798E201858BB3F8F5A108EE71 /* Debug */, 704 | FE88F114E91B512DCAD79DC2F3BCF94F /* Release */, 705 | ); 706 | defaultConfigurationIsVisible = 0; 707 | defaultConfigurationName = Release; 708 | }; 709 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 710 | isa = XCConfigurationList; 711 | buildConfigurations = ( 712 | 5011B865762FC0C0A28ECEC4CB63DC68 /* Debug */, 713 | 827269710C98D60C14D46BC6AF9BF728 /* Release */, 714 | ); 715 | defaultConfigurationIsVisible = 0; 716 | defaultConfigurationName = Release; 717 | }; 718 | 9854097D78F024356EDE762060801D7F /* Build configuration list for PBXNativeTarget "Pods-WBCollectionViewLayout_Tests" */ = { 719 | isa = XCConfigurationList; 720 | buildConfigurations = ( 721 | DD0B4DEC2BFCB809CDEB33F52E760C9C /* Debug */, 722 | 2714CF3D1A92EDE4BACC1E9E77115874 /* Release */, 723 | ); 724 | defaultConfigurationIsVisible = 0; 725 | defaultConfigurationName = Release; 726 | }; 727 | F2175366A9283ACC632222CFB21684F5 /* Build configuration list for PBXNativeTarget "WBCollectionViewLayout" */ = { 728 | isa = XCConfigurationList; 729 | buildConfigurations = ( 730 | 082C97B45470A70A6DD80F08F13E350D /* Debug */, 731 | 87058B050A799FFD461D8490E2C262BD /* Release */, 732 | ); 733 | defaultConfigurationIsVisible = 0; 734 | defaultConfigurationName = Release; 735 | }; 736 | /* End XCConfigurationList section */ 737 | }; 738 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 739 | } 740 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_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-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## WBCollectionViewLayout 5 | 6 | Copyright (c) 2018 mwaqasbhati 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-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_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 mwaqasbhati <m.waqas.bhati@hotmail.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 | WBCollectionViewLayout 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-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_WBCollectionViewLayout_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_WBCollectionViewLayout_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | # Used as a return value for each invocation of `strip_invalid_archs` function. 10 | STRIP_BINARY_RETVAL=0 11 | 12 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 13 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 14 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 15 | 16 | # Copies and strips a vendored framework 17 | install_framework() 18 | { 19 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 20 | local source="${BUILT_PRODUCTS_DIR}/$1" 21 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 22 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 23 | elif [ -r "$1" ]; then 24 | local source="$1" 25 | fi 26 | 27 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 28 | 29 | if [ -L "${source}" ]; then 30 | echo "Symlinked..." 31 | source="$(readlink "${source}")" 32 | fi 33 | 34 | # Use filter instead of exclude so missing patterns don't throw errors. 35 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 36 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 37 | 38 | local basename 39 | basename="$(basename -s .framework "$1")" 40 | binary="${destination}/${basename}.framework/${basename}" 41 | if ! [ -r "$binary" ]; then 42 | binary="${destination}/${basename}" 43 | fi 44 | 45 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 46 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 47 | strip_invalid_archs "$binary" 48 | fi 49 | 50 | # Resign the code if required by the build settings to avoid unstable apps 51 | code_sign_if_enabled "${destination}/$(basename "$1")" 52 | 53 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 54 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 55 | local swift_runtime_libs 56 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 57 | for lib in $swift_runtime_libs; do 58 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 59 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 60 | code_sign_if_enabled "${destination}/${lib}" 61 | done 62 | fi 63 | } 64 | 65 | # Copies and strips a vendored dSYM 66 | install_dsym() { 67 | local source="$1" 68 | if [ -r "$source" ]; then 69 | # Copy the dSYM into a the targets temp dir. 70 | 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}\"" 71 | 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}" 72 | 73 | local basename 74 | basename="$(basename -s .framework.dSYM "$source")" 75 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 76 | 77 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 78 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 79 | strip_invalid_archs "$binary" 80 | fi 81 | 82 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 83 | # Move the stripped file into its final destination. 84 | 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}\"" 85 | 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}" 86 | else 87 | # 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. 88 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 89 | fi 90 | fi 91 | } 92 | 93 | # Signs a framework with the provided identity 94 | code_sign_if_enabled() { 95 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 96 | # Use the current code_sign_identitiy 97 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 98 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 99 | 100 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 101 | code_sign_cmd="$code_sign_cmd &" 102 | fi 103 | echo "$code_sign_cmd" 104 | eval "$code_sign_cmd" 105 | fi 106 | } 107 | 108 | # Strip invalid architectures 109 | strip_invalid_archs() { 110 | binary="$1" 111 | # Get architectures for current target binary 112 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 113 | # Intersect them with the architectures we are building for 114 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 115 | # If there are no archs supported by this binary then warn the user 116 | if [[ -z "$intersected_archs" ]]; then 117 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 118 | STRIP_BINARY_RETVAL=0 119 | return 120 | fi 121 | stripped="" 122 | for arch in $binary_archs; do 123 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 124 | # Strip non-valid architectures in-place 125 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 126 | stripped="$stripped $arch" 127 | fi 128 | done 129 | if [[ "$stripped" ]]; then 130 | echo "Stripped $binary of architectures:$stripped" 131 | fi 132 | STRIP_BINARY_RETVAL=1 133 | } 134 | 135 | 136 | if [[ "$CONFIGURATION" == "Debug" ]]; then 137 | install_framework "${BUILT_PRODUCTS_DIR}/WBCollectionViewLayout/WBCollectionViewLayout.framework" 138 | fi 139 | if [[ "$CONFIGURATION" == "Release" ]]; then 140 | install_framework "${BUILT_PRODUCTS_DIR}/WBCollectionViewLayout/WBCollectionViewLayout.framework" 141 | fi 142 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 143 | wait 144 | fi 145 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | 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 56 | 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} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | 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}" 106 | fi 107 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_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_WBCollectionViewLayout_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_WBCollectionViewLayout_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WBCollectionViewLayout" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/WBCollectionViewLayout/WBCollectionViewLayout.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "WBCollectionViewLayout" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_WBCollectionViewLayout_Example { 2 | umbrella header "Pods-WBCollectionViewLayout_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WBCollectionViewLayout" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/WBCollectionViewLayout/WBCollectionViewLayout.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "WBCollectionViewLayout" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_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-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_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-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_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-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_WBCollectionViewLayout_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_WBCollectionViewLayout_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | # Used as a return value for each invocation of `strip_invalid_archs` function. 10 | STRIP_BINARY_RETVAL=0 11 | 12 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 13 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 14 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 15 | 16 | # Copies and strips a vendored framework 17 | install_framework() 18 | { 19 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 20 | local source="${BUILT_PRODUCTS_DIR}/$1" 21 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 22 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 23 | elif [ -r "$1" ]; then 24 | local source="$1" 25 | fi 26 | 27 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 28 | 29 | if [ -L "${source}" ]; then 30 | echo "Symlinked..." 31 | source="$(readlink "${source}")" 32 | fi 33 | 34 | # Use filter instead of exclude so missing patterns don't throw errors. 35 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 36 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 37 | 38 | local basename 39 | basename="$(basename -s .framework "$1")" 40 | binary="${destination}/${basename}.framework/${basename}" 41 | if ! [ -r "$binary" ]; then 42 | binary="${destination}/${basename}" 43 | fi 44 | 45 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 46 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 47 | strip_invalid_archs "$binary" 48 | fi 49 | 50 | # Resign the code if required by the build settings to avoid unstable apps 51 | code_sign_if_enabled "${destination}/$(basename "$1")" 52 | 53 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 54 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 55 | local swift_runtime_libs 56 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 57 | for lib in $swift_runtime_libs; do 58 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 59 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 60 | code_sign_if_enabled "${destination}/${lib}" 61 | done 62 | fi 63 | } 64 | 65 | # Copies and strips a vendored dSYM 66 | install_dsym() { 67 | local source="$1" 68 | if [ -r "$source" ]; then 69 | # Copy the dSYM into a the targets temp dir. 70 | 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}\"" 71 | 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}" 72 | 73 | local basename 74 | basename="$(basename -s .framework.dSYM "$source")" 75 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 76 | 77 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 78 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 79 | strip_invalid_archs "$binary" 80 | fi 81 | 82 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 83 | # Move the stripped file into its final destination. 84 | 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}\"" 85 | 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}" 86 | else 87 | # 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. 88 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 89 | fi 90 | fi 91 | } 92 | 93 | # Signs a framework with the provided identity 94 | code_sign_if_enabled() { 95 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 96 | # Use the current code_sign_identitiy 97 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 98 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 99 | 100 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 101 | code_sign_cmd="$code_sign_cmd &" 102 | fi 103 | echo "$code_sign_cmd" 104 | eval "$code_sign_cmd" 105 | fi 106 | } 107 | 108 | # Strip invalid architectures 109 | strip_invalid_archs() { 110 | binary="$1" 111 | # Get architectures for current target binary 112 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 113 | # Intersect them with the architectures we are building for 114 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 115 | # If there are no archs supported by this binary then warn the user 116 | if [[ -z "$intersected_archs" ]]; then 117 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 118 | STRIP_BINARY_RETVAL=0 119 | return 120 | fi 121 | stripped="" 122 | for arch in $binary_archs; do 123 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 124 | # Strip non-valid architectures in-place 125 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 126 | stripped="$stripped $arch" 127 | fi 128 | done 129 | if [[ "$stripped" ]]; then 130 | echo "Stripped $binary of architectures:$stripped" 131 | fi 132 | STRIP_BINARY_RETVAL=1 133 | } 134 | 135 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 136 | wait 137 | fi 138 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | 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 56 | 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} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | 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}" 106 | fi 107 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_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_WBCollectionViewLayout_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_WBCollectionViewLayout_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WBCollectionViewLayout" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/WBCollectionViewLayout/WBCollectionViewLayout.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_WBCollectionViewLayout_Tests { 2 | umbrella header "Pods-WBCollectionViewLayout_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WBCollectionViewLayout" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/WBCollectionViewLayout/WBCollectionViewLayout.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WBCollectionViewLayout/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/WBCollectionViewLayout/WBCollectionViewLayout-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_WBCollectionViewLayout : NSObject 3 | @end 4 | @implementation PodsDummy_WBCollectionViewLayout 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WBCollectionViewLayout/WBCollectionViewLayout-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/WBCollectionViewLayout/WBCollectionViewLayout-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 WBCollectionViewLayoutVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char WBCollectionViewLayoutVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WBCollectionViewLayout/WBCollectionViewLayout.modulemap: -------------------------------------------------------------------------------- 1 | framework module WBCollectionViewLayout { 2 | umbrella header "WBCollectionViewLayout-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WBCollectionViewLayout/WBCollectionViewLayout.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/WBCollectionViewLayout 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/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 WBCollectionViewLayout 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 | -------------------------------------------------------------------------------- /Example/WBCollectionViewLayout.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 12 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 13 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 14 | 671CD1B390A732B51806CBD1 /* Pods_WBCollectionViewLayout_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBE64EFE0427ED6743942384 /* Pods_WBCollectionViewLayout_Example.framework */; }; 15 | E84419ED6719C6A9169EC2D7 /* Pods_WBCollectionViewLayout_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F569B31787BBC128C5FF80C /* Pods_WBCollectionViewLayout_Tests.framework */; }; 16 | FA222049206D43BD0055DC2F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA222047206D43BD0055DC2F /* ViewController.swift */; }; 17 | FA22204A206D43BD0055DC2F /* MenuViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA222048206D43BD0055DC2F /* MenuViewController.swift */; }; 18 | FA22204D206D595D0055DC2F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FA22204B206D43D00055DC2F /* Main.storyboard */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 27 | remoteInfo = WBCollectionViewLayout; 28 | }; 29 | /* End PBXContainerItemProxy section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 037A06D76F871E05BD78DA92 /* Pods-WBCollectionViewLayout_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WBCollectionViewLayout_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example.release.xcconfig"; sourceTree = ""; }; 33 | 1F569B31787BBC128C5FF80C /* Pods_WBCollectionViewLayout_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WBCollectionViewLayout_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 38DBB1D58EC0FA7662D80AF6 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 35 | 528392CE7F1B33832E41C89E /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 36 | 5DB72CD0F8504B90197474EA /* WBCollectionViewLayout.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = WBCollectionViewLayout.podspec; path = ../WBCollectionViewLayout.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 37 | 607FACD01AFB9204008FA782 /* WBCollectionViewLayout_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WBCollectionViewLayout_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 40 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 607FACE51AFB9204008FA782 /* WBCollectionViewLayout_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WBCollectionViewLayout_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 45 | 621CF29F463FE75A10335612 /* Pods-WBCollectionViewLayout_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WBCollectionViewLayout_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests.release.xcconfig"; sourceTree = ""; }; 46 | 7778033234EEBD0FCBC12062 /* Pods-WBCollectionViewLayout_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WBCollectionViewLayout_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example.debug.xcconfig"; sourceTree = ""; }; 47 | 858BB0BF20B19DBA2559B342 /* Pods-WBCollectionViewLayout_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WBCollectionViewLayout_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests.debug.xcconfig"; sourceTree = ""; }; 48 | BBE64EFE0427ED6743942384 /* Pods_WBCollectionViewLayout_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WBCollectionViewLayout_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | FA222047206D43BD0055DC2F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 50 | FA222048206D43BD0055DC2F /* MenuViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MenuViewController.swift; sourceTree = ""; }; 51 | FA22204C206D43D00055DC2F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 52 | /* End PBXFileReference section */ 53 | 54 | /* Begin PBXFrameworksBuildPhase section */ 55 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 56 | isa = PBXFrameworksBuildPhase; 57 | buildActionMask = 2147483647; 58 | files = ( 59 | 671CD1B390A732B51806CBD1 /* Pods_WBCollectionViewLayout_Example.framework in Frameworks */, 60 | ); 61 | runOnlyForDeploymentPostprocessing = 0; 62 | }; 63 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 64 | isa = PBXFrameworksBuildPhase; 65 | buildActionMask = 2147483647; 66 | files = ( 67 | E84419ED6719C6A9169EC2D7 /* Pods_WBCollectionViewLayout_Tests.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | /* End PBXFrameworksBuildPhase section */ 72 | 73 | /* Begin PBXGroup section */ 74 | 607FACC71AFB9204008FA782 = { 75 | isa = PBXGroup; 76 | children = ( 77 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 78 | 607FACD21AFB9204008FA782 /* Example for WBCollectionViewLayout */, 79 | 607FACE81AFB9204008FA782 /* Tests */, 80 | 607FACD11AFB9204008FA782 /* Products */, 81 | 9043A1DCE52B12B6C3BB5D9E /* Pods */, 82 | A3950A986305E50F0DAF7041 /* Frameworks */, 83 | ); 84 | sourceTree = ""; 85 | }; 86 | 607FACD11AFB9204008FA782 /* Products */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 607FACD01AFB9204008FA782 /* WBCollectionViewLayout_Example.app */, 90 | 607FACE51AFB9204008FA782 /* WBCollectionViewLayout_Tests.xctest */, 91 | ); 92 | name = Products; 93 | sourceTree = ""; 94 | }; 95 | 607FACD21AFB9204008FA782 /* Example for WBCollectionViewLayout */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | FA222048206D43BD0055DC2F /* MenuViewController.swift */, 99 | FA222047206D43BD0055DC2F /* ViewController.swift */, 100 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 101 | FA22204B206D43D00055DC2F /* Main.storyboard */, 102 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 103 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 104 | 607FACD31AFB9204008FA782 /* Supporting Files */, 105 | ); 106 | name = "Example for WBCollectionViewLayout"; 107 | path = WBCollectionViewLayout; 108 | sourceTree = ""; 109 | }; 110 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 607FACD41AFB9204008FA782 /* Info.plist */, 114 | ); 115 | name = "Supporting Files"; 116 | sourceTree = ""; 117 | }; 118 | 607FACE81AFB9204008FA782 /* Tests */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 122 | 607FACE91AFB9204008FA782 /* Supporting Files */, 123 | ); 124 | path = Tests; 125 | sourceTree = ""; 126 | }; 127 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 607FACEA1AFB9204008FA782 /* Info.plist */, 131 | ); 132 | name = "Supporting Files"; 133 | sourceTree = ""; 134 | }; 135 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 5DB72CD0F8504B90197474EA /* WBCollectionViewLayout.podspec */, 139 | 528392CE7F1B33832E41C89E /* README.md */, 140 | 38DBB1D58EC0FA7662D80AF6 /* LICENSE */, 141 | ); 142 | name = "Podspec Metadata"; 143 | sourceTree = ""; 144 | }; 145 | 9043A1DCE52B12B6C3BB5D9E /* Pods */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 7778033234EEBD0FCBC12062 /* Pods-WBCollectionViewLayout_Example.debug.xcconfig */, 149 | 037A06D76F871E05BD78DA92 /* Pods-WBCollectionViewLayout_Example.release.xcconfig */, 150 | 858BB0BF20B19DBA2559B342 /* Pods-WBCollectionViewLayout_Tests.debug.xcconfig */, 151 | 621CF29F463FE75A10335612 /* Pods-WBCollectionViewLayout_Tests.release.xcconfig */, 152 | ); 153 | name = Pods; 154 | sourceTree = ""; 155 | }; 156 | A3950A986305E50F0DAF7041 /* Frameworks */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | BBE64EFE0427ED6743942384 /* Pods_WBCollectionViewLayout_Example.framework */, 160 | 1F569B31787BBC128C5FF80C /* Pods_WBCollectionViewLayout_Tests.framework */, 161 | ); 162 | name = Frameworks; 163 | sourceTree = ""; 164 | }; 165 | /* End PBXGroup section */ 166 | 167 | /* Begin PBXNativeTarget section */ 168 | 607FACCF1AFB9204008FA782 /* WBCollectionViewLayout_Example */ = { 169 | isa = PBXNativeTarget; 170 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "WBCollectionViewLayout_Example" */; 171 | buildPhases = ( 172 | 070754BCD0F44B154F246344 /* [CP] Check Pods Manifest.lock */, 173 | 607FACCC1AFB9204008FA782 /* Sources */, 174 | 607FACCD1AFB9204008FA782 /* Frameworks */, 175 | 607FACCE1AFB9204008FA782 /* Resources */, 176 | DBC590E2F8F5ECE8903E4300 /* [CP] Embed Pods Frameworks */, 177 | EAA149AEAA671BA17A9886AF /* [CP] Copy Pods Resources */, 178 | ); 179 | buildRules = ( 180 | ); 181 | dependencies = ( 182 | ); 183 | name = WBCollectionViewLayout_Example; 184 | productName = WBCollectionViewLayout; 185 | productReference = 607FACD01AFB9204008FA782 /* WBCollectionViewLayout_Example.app */; 186 | productType = "com.apple.product-type.application"; 187 | }; 188 | 607FACE41AFB9204008FA782 /* WBCollectionViewLayout_Tests */ = { 189 | isa = PBXNativeTarget; 190 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "WBCollectionViewLayout_Tests" */; 191 | buildPhases = ( 192 | F1B4C94B285018CB4AE7C357 /* [CP] Check Pods Manifest.lock */, 193 | 607FACE11AFB9204008FA782 /* Sources */, 194 | 607FACE21AFB9204008FA782 /* Frameworks */, 195 | 607FACE31AFB9204008FA782 /* Resources */, 196 | 96A0D94B991227B065DF692E /* [CP] Embed Pods Frameworks */, 197 | C7F38475BA6036DEA172A7E4 /* [CP] Copy Pods Resources */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 203 | ); 204 | name = WBCollectionViewLayout_Tests; 205 | productName = Tests; 206 | productReference = 607FACE51AFB9204008FA782 /* WBCollectionViewLayout_Tests.xctest */; 207 | productType = "com.apple.product-type.bundle.unit-test"; 208 | }; 209 | /* End PBXNativeTarget section */ 210 | 211 | /* Begin PBXProject section */ 212 | 607FACC81AFB9204008FA782 /* Project object */ = { 213 | isa = PBXProject; 214 | attributes = { 215 | LastSwiftUpdateCheck = 0830; 216 | LastUpgradeCheck = 0830; 217 | ORGANIZATIONNAME = CocoaPods; 218 | TargetAttributes = { 219 | 607FACCF1AFB9204008FA782 = { 220 | CreatedOnToolsVersion = 6.3.1; 221 | LastSwiftMigration = 0900; 222 | }; 223 | 607FACE41AFB9204008FA782 = { 224 | CreatedOnToolsVersion = 6.3.1; 225 | LastSwiftMigration = 0900; 226 | TestTargetID = 607FACCF1AFB9204008FA782; 227 | }; 228 | }; 229 | }; 230 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "WBCollectionViewLayout" */; 231 | compatibilityVersion = "Xcode 3.2"; 232 | developmentRegion = English; 233 | hasScannedForEncodings = 0; 234 | knownRegions = ( 235 | en, 236 | Base, 237 | ); 238 | mainGroup = 607FACC71AFB9204008FA782; 239 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 240 | projectDirPath = ""; 241 | projectRoot = ""; 242 | targets = ( 243 | 607FACCF1AFB9204008FA782 /* WBCollectionViewLayout_Example */, 244 | 607FACE41AFB9204008FA782 /* WBCollectionViewLayout_Tests */, 245 | ); 246 | }; 247 | /* End PBXProject section */ 248 | 249 | /* Begin PBXResourcesBuildPhase section */ 250 | 607FACCE1AFB9204008FA782 /* Resources */ = { 251 | isa = PBXResourcesBuildPhase; 252 | buildActionMask = 2147483647; 253 | files = ( 254 | FA22204D206D595D0055DC2F /* Main.storyboard in Resources */, 255 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 256 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | }; 260 | 607FACE31AFB9204008FA782 /* Resources */ = { 261 | isa = PBXResourcesBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | /* End PBXResourcesBuildPhase section */ 268 | 269 | /* Begin PBXShellScriptBuildPhase section */ 270 | 070754BCD0F44B154F246344 /* [CP] Check Pods Manifest.lock */ = { 271 | isa = PBXShellScriptBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | ); 275 | inputPaths = ( 276 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 277 | "${PODS_ROOT}/Manifest.lock", 278 | ); 279 | name = "[CP] Check Pods Manifest.lock"; 280 | outputPaths = ( 281 | "$(DERIVED_FILE_DIR)/Pods-WBCollectionViewLayout_Example-checkManifestLockResult.txt", 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | shellPath = /bin/sh; 285 | 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"; 286 | showEnvVarsInLog = 0; 287 | }; 288 | 96A0D94B991227B065DF692E /* [CP] Embed Pods Frameworks */ = { 289 | isa = PBXShellScriptBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | ); 293 | inputPaths = ( 294 | ); 295 | name = "[CP] Embed Pods Frameworks"; 296 | outputPaths = ( 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | shellPath = /bin/sh; 300 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests-frameworks.sh\"\n"; 301 | showEnvVarsInLog = 0; 302 | }; 303 | C7F38475BA6036DEA172A7E4 /* [CP] Copy Pods Resources */ = { 304 | isa = PBXShellScriptBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | ); 308 | inputPaths = ( 309 | ); 310 | name = "[CP] Copy Pods Resources"; 311 | outputPaths = ( 312 | ); 313 | runOnlyForDeploymentPostprocessing = 0; 314 | shellPath = /bin/sh; 315 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WBCollectionViewLayout_Tests/Pods-WBCollectionViewLayout_Tests-resources.sh\"\n"; 316 | showEnvVarsInLog = 0; 317 | }; 318 | DBC590E2F8F5ECE8903E4300 /* [CP] Embed Pods Frameworks */ = { 319 | isa = PBXShellScriptBuildPhase; 320 | buildActionMask = 2147483647; 321 | files = ( 322 | ); 323 | inputPaths = ( 324 | "${SRCROOT}/Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example-frameworks.sh", 325 | "${BUILT_PRODUCTS_DIR}/WBCollectionViewLayout/WBCollectionViewLayout.framework", 326 | ); 327 | name = "[CP] Embed Pods Frameworks"; 328 | outputPaths = ( 329 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WBCollectionViewLayout.framework", 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | shellPath = /bin/sh; 333 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example-frameworks.sh\"\n"; 334 | showEnvVarsInLog = 0; 335 | }; 336 | EAA149AEAA671BA17A9886AF /* [CP] Copy Pods Resources */ = { 337 | isa = PBXShellScriptBuildPhase; 338 | buildActionMask = 2147483647; 339 | files = ( 340 | ); 341 | inputPaths = ( 342 | ); 343 | name = "[CP] Copy Pods Resources"; 344 | outputPaths = ( 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | shellPath = /bin/sh; 348 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WBCollectionViewLayout_Example/Pods-WBCollectionViewLayout_Example-resources.sh\"\n"; 349 | showEnvVarsInLog = 0; 350 | }; 351 | F1B4C94B285018CB4AE7C357 /* [CP] Check Pods Manifest.lock */ = { 352 | isa = PBXShellScriptBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | ); 356 | inputPaths = ( 357 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 358 | "${PODS_ROOT}/Manifest.lock", 359 | ); 360 | name = "[CP] Check Pods Manifest.lock"; 361 | outputPaths = ( 362 | "$(DERIVED_FILE_DIR)/Pods-WBCollectionViewLayout_Tests-checkManifestLockResult.txt", 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | shellPath = /bin/sh; 366 | 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"; 367 | showEnvVarsInLog = 0; 368 | }; 369 | /* End PBXShellScriptBuildPhase section */ 370 | 371 | /* Begin PBXSourcesBuildPhase section */ 372 | 607FACCC1AFB9204008FA782 /* Sources */ = { 373 | isa = PBXSourcesBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | FA222049206D43BD0055DC2F /* ViewController.swift in Sources */, 377 | FA22204A206D43BD0055DC2F /* MenuViewController.swift in Sources */, 378 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 379 | ); 380 | runOnlyForDeploymentPostprocessing = 0; 381 | }; 382 | 607FACE11AFB9204008FA782 /* Sources */ = { 383 | isa = PBXSourcesBuildPhase; 384 | buildActionMask = 2147483647; 385 | files = ( 386 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 387 | ); 388 | runOnlyForDeploymentPostprocessing = 0; 389 | }; 390 | /* End PBXSourcesBuildPhase section */ 391 | 392 | /* Begin PBXTargetDependency section */ 393 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 394 | isa = PBXTargetDependency; 395 | target = 607FACCF1AFB9204008FA782 /* WBCollectionViewLayout_Example */; 396 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 397 | }; 398 | /* End PBXTargetDependency section */ 399 | 400 | /* Begin PBXVariantGroup section */ 401 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 402 | isa = PBXVariantGroup; 403 | children = ( 404 | 607FACDF1AFB9204008FA782 /* Base */, 405 | ); 406 | name = LaunchScreen.xib; 407 | sourceTree = ""; 408 | }; 409 | FA22204B206D43D00055DC2F /* Main.storyboard */ = { 410 | isa = PBXVariantGroup; 411 | children = ( 412 | FA22204C206D43D00055DC2F /* Base */, 413 | ); 414 | name = Main.storyboard; 415 | sourceTree = ""; 416 | }; 417 | /* End PBXVariantGroup section */ 418 | 419 | /* Begin XCBuildConfiguration section */ 420 | 607FACED1AFB9204008FA782 /* Debug */ = { 421 | isa = XCBuildConfiguration; 422 | buildSettings = { 423 | ALWAYS_SEARCH_USER_PATHS = NO; 424 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 425 | CLANG_CXX_LIBRARY = "libc++"; 426 | CLANG_ENABLE_MODULES = YES; 427 | CLANG_ENABLE_OBJC_ARC = YES; 428 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 429 | CLANG_WARN_BOOL_CONVERSION = YES; 430 | CLANG_WARN_COMMA = YES; 431 | CLANG_WARN_CONSTANT_CONVERSION = YES; 432 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 433 | CLANG_WARN_EMPTY_BODY = YES; 434 | CLANG_WARN_ENUM_CONVERSION = YES; 435 | CLANG_WARN_INFINITE_RECURSION = YES; 436 | CLANG_WARN_INT_CONVERSION = YES; 437 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 438 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 439 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 440 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 441 | CLANG_WARN_STRICT_PROTOTYPES = YES; 442 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 443 | CLANG_WARN_UNREACHABLE_CODE = YES; 444 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 445 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 446 | COPY_PHASE_STRIP = NO; 447 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 448 | ENABLE_STRICT_OBJC_MSGSEND = YES; 449 | ENABLE_TESTABILITY = YES; 450 | GCC_C_LANGUAGE_STANDARD = gnu99; 451 | GCC_DYNAMIC_NO_PIC = NO; 452 | GCC_NO_COMMON_BLOCKS = YES; 453 | GCC_OPTIMIZATION_LEVEL = 0; 454 | GCC_PREPROCESSOR_DEFINITIONS = ( 455 | "DEBUG=1", 456 | "$(inherited)", 457 | ); 458 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 459 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 460 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 461 | GCC_WARN_UNDECLARED_SELECTOR = YES; 462 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 463 | GCC_WARN_UNUSED_FUNCTION = YES; 464 | GCC_WARN_UNUSED_VARIABLE = YES; 465 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 466 | MTL_ENABLE_DEBUG_INFO = YES; 467 | ONLY_ACTIVE_ARCH = YES; 468 | SDKROOT = iphoneos; 469 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 470 | }; 471 | name = Debug; 472 | }; 473 | 607FACEE1AFB9204008FA782 /* Release */ = { 474 | isa = XCBuildConfiguration; 475 | buildSettings = { 476 | ALWAYS_SEARCH_USER_PATHS = NO; 477 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 478 | CLANG_CXX_LIBRARY = "libc++"; 479 | CLANG_ENABLE_MODULES = YES; 480 | CLANG_ENABLE_OBJC_ARC = YES; 481 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 482 | CLANG_WARN_BOOL_CONVERSION = YES; 483 | CLANG_WARN_COMMA = YES; 484 | CLANG_WARN_CONSTANT_CONVERSION = YES; 485 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 486 | CLANG_WARN_EMPTY_BODY = YES; 487 | CLANG_WARN_ENUM_CONVERSION = YES; 488 | CLANG_WARN_INFINITE_RECURSION = YES; 489 | CLANG_WARN_INT_CONVERSION = YES; 490 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 491 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 492 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 493 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 494 | CLANG_WARN_STRICT_PROTOTYPES = YES; 495 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 496 | CLANG_WARN_UNREACHABLE_CODE = YES; 497 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 498 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 499 | COPY_PHASE_STRIP = NO; 500 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 501 | ENABLE_NS_ASSERTIONS = NO; 502 | ENABLE_STRICT_OBJC_MSGSEND = YES; 503 | GCC_C_LANGUAGE_STANDARD = gnu99; 504 | GCC_NO_COMMON_BLOCKS = YES; 505 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 506 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 507 | GCC_WARN_UNDECLARED_SELECTOR = YES; 508 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 509 | GCC_WARN_UNUSED_FUNCTION = YES; 510 | GCC_WARN_UNUSED_VARIABLE = YES; 511 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 512 | MTL_ENABLE_DEBUG_INFO = NO; 513 | SDKROOT = iphoneos; 514 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 515 | VALIDATE_PRODUCT = YES; 516 | }; 517 | name = Release; 518 | }; 519 | 607FACF01AFB9204008FA782 /* Debug */ = { 520 | isa = XCBuildConfiguration; 521 | baseConfigurationReference = 7778033234EEBD0FCBC12062 /* Pods-WBCollectionViewLayout_Example.debug.xcconfig */; 522 | buildSettings = { 523 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 524 | INFOPLIST_FILE = WBCollectionViewLayout/Info.plist; 525 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 526 | MODULE_NAME = ExampleApp; 527 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 528 | PRODUCT_NAME = "$(TARGET_NAME)"; 529 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 530 | SWIFT_VERSION = 4.0; 531 | }; 532 | name = Debug; 533 | }; 534 | 607FACF11AFB9204008FA782 /* Release */ = { 535 | isa = XCBuildConfiguration; 536 | baseConfigurationReference = 037A06D76F871E05BD78DA92 /* Pods-WBCollectionViewLayout_Example.release.xcconfig */; 537 | buildSettings = { 538 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 539 | INFOPLIST_FILE = WBCollectionViewLayout/Info.plist; 540 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 541 | MODULE_NAME = ExampleApp; 542 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 543 | PRODUCT_NAME = "$(TARGET_NAME)"; 544 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 545 | SWIFT_VERSION = 4.0; 546 | }; 547 | name = Release; 548 | }; 549 | 607FACF31AFB9204008FA782 /* Debug */ = { 550 | isa = XCBuildConfiguration; 551 | baseConfigurationReference = 858BB0BF20B19DBA2559B342 /* Pods-WBCollectionViewLayout_Tests.debug.xcconfig */; 552 | buildSettings = { 553 | FRAMEWORK_SEARCH_PATHS = ( 554 | "$(SDKROOT)/Developer/Library/Frameworks", 555 | "$(inherited)", 556 | ); 557 | GCC_PREPROCESSOR_DEFINITIONS = ( 558 | "DEBUG=1", 559 | "$(inherited)", 560 | ); 561 | INFOPLIST_FILE = Tests/Info.plist; 562 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 563 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 564 | PRODUCT_NAME = "$(TARGET_NAME)"; 565 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 566 | SWIFT_VERSION = 4.0; 567 | }; 568 | name = Debug; 569 | }; 570 | 607FACF41AFB9204008FA782 /* Release */ = { 571 | isa = XCBuildConfiguration; 572 | baseConfigurationReference = 621CF29F463FE75A10335612 /* Pods-WBCollectionViewLayout_Tests.release.xcconfig */; 573 | buildSettings = { 574 | FRAMEWORK_SEARCH_PATHS = ( 575 | "$(SDKROOT)/Developer/Library/Frameworks", 576 | "$(inherited)", 577 | ); 578 | INFOPLIST_FILE = Tests/Info.plist; 579 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 580 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 581 | PRODUCT_NAME = "$(TARGET_NAME)"; 582 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 583 | SWIFT_VERSION = 4.0; 584 | }; 585 | name = Release; 586 | }; 587 | /* End XCBuildConfiguration section */ 588 | 589 | /* Begin XCConfigurationList section */ 590 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "WBCollectionViewLayout" */ = { 591 | isa = XCConfigurationList; 592 | buildConfigurations = ( 593 | 607FACED1AFB9204008FA782 /* Debug */, 594 | 607FACEE1AFB9204008FA782 /* Release */, 595 | ); 596 | defaultConfigurationIsVisible = 0; 597 | defaultConfigurationName = Release; 598 | }; 599 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "WBCollectionViewLayout_Example" */ = { 600 | isa = XCConfigurationList; 601 | buildConfigurations = ( 602 | 607FACF01AFB9204008FA782 /* Debug */, 603 | 607FACF11AFB9204008FA782 /* Release */, 604 | ); 605 | defaultConfigurationIsVisible = 0; 606 | defaultConfigurationName = Release; 607 | }; 608 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "WBCollectionViewLayout_Tests" */ = { 609 | isa = XCConfigurationList; 610 | buildConfigurations = ( 611 | 607FACF31AFB9204008FA782 /* Debug */, 612 | 607FACF41AFB9204008FA782 /* Release */, 613 | ); 614 | defaultConfigurationIsVisible = 0; 615 | defaultConfigurationName = Release; 616 | }; 617 | /* End XCConfigurationList section */ 618 | }; 619 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 620 | } 621 | -------------------------------------------------------------------------------- /Example/WBCollectionViewLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/WBCollectionViewLayout.xcodeproj/xcshareddata/xcschemes/WBCollectionViewLayout-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/WBCollectionViewLayout.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/WBCollectionViewLayout/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // WBCollectionViewLayout 4 | // 5 | // Created by mwaqasbhati on 03/29/2018. 6 | // Copyright (c) 2018 mwaqasbhati. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/WBCollectionViewLayout/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/WBCollectionViewLayout/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | -------------------------------------------------------------------------------- /Example/WBCollectionViewLayout/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/WBCollectionViewLayout/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/WBCollectionViewLayout/MenuViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MenuViewController.swift 3 | // CustomLayout 4 | // 5 | // Created by Muhammad Waqas Bhati on 3/28/18. 6 | // Copyright © 2018 Muhammad Waqas Bhati. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class MenuViewController: UIViewController { 12 | 13 | @IBOutlet weak var tableViewMenu: UITableView! 14 | 15 | fileprivate let menuItems = ["Two Cells Layout","Three Cells Left Layout","Three Cells Right Layout","Mixture Layout"] 16 | fileprivate var cellLayout: MyCellLayout = .Mixture 17 | 18 | override func viewDidLoad() { 19 | super.viewDidLoad() 20 | 21 | // Do any additional setup after loading the view. 22 | } 23 | 24 | // MARK: - Navigation 25 | 26 | // In a storyboard-based application, you will often want to do a little preparation before navigation 27 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 28 | // Get the new view controller using segue.destinationViewController. 29 | // Pass the selected object to the new view controller. 30 | if let vc = segue.destination as? ViewController { 31 | vc.cellLayout = cellLayout 32 | } 33 | } 34 | 35 | 36 | } 37 | 38 | extension MenuViewController: UITableViewDelegate, UITableViewDataSource { 39 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 40 | return menuItems.count 41 | } 42 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 43 | let cell = UITableViewCell.init(style: .default, reuseIdentifier: "cellID") 44 | cell.textLabel?.text = menuItems[indexPath.row] 45 | return cell 46 | } 47 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 48 | cellLayout = MyCellLayout(rawValue: indexPath.row + 2) ?? .Mixture 49 | performSegue(withIdentifier: "goToLayoutVC", sender: nil) 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Example/WBCollectionViewLayout/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CustomLayout 4 | // 5 | // Created by Muhammad Waqas Bhati on 3/21/18. 6 | // Copyright © 2018 Muhammad Waqas Bhati. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import WBCollectionViewLayout 11 | 12 | enum MyCellLayout: Int { 13 | case Two = 2 14 | case ThreeLeft = 3 15 | case ThreeRight = 4 16 | case Mixture = 5 17 | } 18 | 19 | class ViewController: UIViewController { 20 | 21 | @IBOutlet weak var collectionView: UICollectionView! 22 | 23 | var cellLayout: MyCellLayout = .Mixture 24 | 25 | var items: [Int] { 26 | var temp = [Int]() 27 | for i in 1..<103 { 28 | temp.append(i) 29 | } 30 | return temp 31 | } 32 | 33 | override func viewDidLoad() { 34 | super.viewDidLoad() 35 | let layout = WBGridViewLayout() 36 | layout.delegate = self 37 | collectionView.setCollectionViewLayout(layout, animated: true) 38 | } 39 | } 40 | 41 | extension ViewController: UICollectionViewDelegate, UICollectionViewDataSource { 42 | 43 | // MARK: - UICollectionViewDataSource 44 | 45 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 46 | return items.count 47 | } 48 | 49 | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 50 | 51 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cellID", for: indexPath) as? CustomCell 52 | let item = items[indexPath.row] 53 | cell?.titleLbl.text = "\(item)" 54 | cell?.layer.borderColor = UIColor.black.cgColor 55 | cell?.layer.borderWidth = 2.0 56 | return cell! 57 | 58 | } 59 | 60 | } 61 | 62 | extension ViewController: WBGridViewLayoutDelegate { 63 | 64 | func colectionView(_ collectionView: UICollectionView, numberOfItemsInRow row: Int) -> CellLayout { 65 | switch cellLayout { 66 | case .Two: return .Two 67 | case .ThreeLeft: return .ThreeLeft 68 | case .ThreeRight: return .ThreeRight 69 | case .Mixture: 70 | if row % 4 == 1 || row % 4 == 2 { 71 | if row % 2 == 0 { 72 | return .ThreeRight 73 | } 74 | return .ThreeLeft 75 | } 76 | } 77 | return CellLayout.Two 78 | } 79 | func colectionView(_ collectionView: UICollectionView, sizeOfItemInRow row: Int) -> CGSize? { 80 | return nil 81 | } 82 | 83 | } 84 | 85 | class CustomCell: UICollectionViewCell { 86 | 87 | @IBOutlet weak var titleLbl: UILabel! 88 | 89 | } 90 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 mwaqasbhati 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 | # WBCollectionViewLayout 2 | 3 | It provides 4 different type of Custom layout for CollectionView. 4 | 5 | 6 | | Two Cell Layout | Three Cell Left Layout | Three Cell Right Layout | Mix Layout | 7 | |---------------------------------|------------------------------|------------------------------|---------------------------------| 8 | |![Demo](https://github.com/mwaqasbhati/WBCollectionViewLayout/blob/master/Screenshots/two.png)|![Demo](https://github.com/mwaqasbhati/WBCollectionViewLayout/blob/master/Screenshots/threeleft.png)|![Demo](https://github.com/mwaqasbhati/WBCollectionViewLayout/blob/master/Screenshots/threeright.png)|![Demo](https://github.com/mwaqasbhati/WBCollectionViewLayout/blob/master/Screenshots/mixture.png) 9 | |![Demo](https://github.com/mwaqasbhati/WBCollectionViewLayout/blob/master/Screenshots/two_1.png)|![Demo](https://github.com/mwaqasbhati/WBCollectionViewLayout/blob/master/Screenshots/threeleft_1.png)|![Demo](https://github.com/mwaqasbhati/WBCollectionViewLayout/blob/master/Screenshots/threeright_1.png)|![Demo](https://github.com/mwaqasbhati/WBCollectionViewLayout/blob/master/Screenshots/mixture_1.png) 10 | 11 | ## Contents 12 | - [Requirements](#requirements) 13 | - [Installation](#installation) 14 | - [Example](#example) 15 | - [Usage](#usage) 16 | - [Tips](#tips) 17 | - [Contact us](#contact-us) 18 | - [License](#license) 19 | 20 | 21 | ## Requirements 22 | 23 | - iOS 9.0+ 24 | - Swift 4.0 25 | 26 | ## Installation 27 | 28 | ### Manually 29 | 30 | Download the Code and Copy the layout file -> `WBCollectionViewLayout.swift` into your project. That's it. 31 | 32 | ### CocoaPods 33 | 34 | WBCollectionViewLayout is available through [CocoaPods](http://cocoapods.org). To install 35 | it, simply add the following line to your Podfile: 36 | 37 | ```ruby 38 | pod 'WBCollectionViewLayout', :git => 'https://github.com/mwaqasbhati/WBCollectionViewLayout.git' 39 | ``` 40 | 41 | ## Example 42 | 43 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 44 | 45 | ## Usage 46 | 47 | - Just Create a WBGridViewLayout object and Confirm to it's Delegate 48 | 49 | ```swift 50 | let mlayout = WBGridViewLayout() 51 | mlayout.delegate = self 52 | collectionView.setCollectionViewLayout(layout, animated: true) 53 | ``` 54 | Note: Delegates methods are optional and in default case Mixture layout will be drawn but if you want more customization then you need to implement it's delegates 55 | 56 | ### Two Cell Layout 57 | ```swift 58 | func colectionView(_ collectionView: UICollectionView, numberOfItemsInRow row: Int) -> CellLayout { 59 | return .Two 60 | } 61 | ``` 62 | ### Three Cell Left Layout 63 | ```swift 64 | func colectionView(_ collectionView: UICollectionView, numberOfItemsInRow row: Int) -> CellLayout { 65 | return .ThreeLeft 66 | } 67 | ``` 68 | ### Three Cell Right Layout 69 | ```swift 70 | func colectionView(_ collectionView: UICollectionView, numberOfItemsInRow row: Int) -> CellLayout { 71 | return .ThreeRight 72 | } 73 | ``` 74 | ### Mixutre Cell Layout 75 | 76 | This Layout is the default one and you don't have to implement `numberOfItemsInRow` delegate. 77 | 78 | ### Custom Cell Layout 79 | 80 | - If you want more customization in drawing the layout then you can optionally implement it's delegate methods given below which provides `numberOfItemsInRow` for each Row and `size of each Row`. 81 | 82 | ```swift 83 | func colectionView(_ collectionView: UICollectionView, numberOfItemsInRow row: Int) -> CellLayout 84 | func colectionView(_ collectionView: UICollectionView, sizeOfItemInRow row: Int) -> CGSize? 85 | 86 | ``` 87 | 88 | ## Tips 89 | 90 | ### When you load data from service 91 | 92 | In case you load data asynchronously please follow next steps: 93 | 94 | > when data is loaded invalidate layout as well as reload data on collection view. 95 | ```swift 96 | collectionView.collectionViewLayout.invalidateLayout() 97 | collectionView.reloadData() 98 | ``` 99 | 100 | ## Author 101 | 102 | mwaqasbhati, m.waqas.bhati@hotmail.com 103 | 104 | ## License 105 | 106 | WBCollectionViewLayout is available under the MIT license. See the LICENSE file for more info. 107 | -------------------------------------------------------------------------------- /Screenshots/mixture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/Screenshots/mixture.png -------------------------------------------------------------------------------- /Screenshots/mixture_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/Screenshots/mixture_1.png -------------------------------------------------------------------------------- /Screenshots/threeleft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/Screenshots/threeleft.png -------------------------------------------------------------------------------- /Screenshots/threeleft_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/Screenshots/threeleft_1.png -------------------------------------------------------------------------------- /Screenshots/threeright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/Screenshots/threeright.png -------------------------------------------------------------------------------- /Screenshots/threeright_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/Screenshots/threeright_1.png -------------------------------------------------------------------------------- /Screenshots/two.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/Screenshots/two.png -------------------------------------------------------------------------------- /Screenshots/two_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/Screenshots/two_1.png -------------------------------------------------------------------------------- /WBCollectionViewLayout.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint WBCollectionViewLayout.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'WBCollectionViewLayout' 11 | s.version = '0.1.0' 12 | s.summary = 'This Controller provides custom layout for Collection View' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = 'This Controller provides 3 type of different layouts for collection view' 21 | 22 | s.homepage = 'https://github.com/mwaqasbhati/WBCollectionViewLayout' 23 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 24 | s.license = { :type => 'MIT', :file => 'LICENSE' } 25 | s.author = { 'mwaqasbhati' => 'm.waqas.bhati@hotmail.com' } 26 | s.source = { :git => 'https://github.com/mwaqasbhati/WBCollectionViewLayout.git', :tag => s.version.to_s } 27 | # s.social_media_url = 'https://twitter.com/' 28 | s.swift_version = '4.0' 29 | s.ios.deployment_target = '8.0' 30 | 31 | s.source_files = 'WBCollectionViewLayout/Classes/**/*' 32 | 33 | # s.resource_bundles = { 34 | # 'WBCollectionViewLayout' => ['WBCollectionViewLayout/Assets/*.png'] 35 | # } 36 | 37 | # s.public_header_files = 'Pod/Classes/**/*.h' 38 | # s.frameworks = 'UIKit', 'MapKit' 39 | # s.dependency 'AFNetworking', '~> 2.3' 40 | end 41 | -------------------------------------------------------------------------------- /WBCollectionViewLayout/0.1.0/WBCollectionViewLayout.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint WBCollectionViewLayout.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'WBCollectionViewLayout' 11 | s.version = '0.1.0' 12 | s.summary = 'This Controller provides custom layout for Collection View' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = 'This Controller provides 3 type of different layouts for collection view' 21 | 22 | s.homepage = 'https://github.com/mwaqasbhati/WBCollectionViewLayout' 23 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 24 | s.license = { :type => 'MIT', :file => 'LICENSE' } 25 | s.author = { 'mwaqasbhati' => 'm.waqas.bhati@hotmail.com' } 26 | s.source = { :git => 'https://github.com/mwaqasbhati/WBCollectionViewLayout.git', :tag => s.version.to_s } 27 | # s.social_media_url = 'https://twitter.com/' 28 | s.swift_version = '4.0' 29 | s.ios.deployment_target = '8.0' 30 | 31 | s.source_files = 'WBCollectionViewLayout/Classes/**/*' 32 | 33 | # s.resource_bundles = { 34 | # 'WBCollectionViewLayout' => ['WBCollectionViewLayout/Assets/*.png'] 35 | # } 36 | 37 | # s.public_header_files = 'Pod/Classes/**/*.h' 38 | # s.frameworks = 'UIKit', 'MapKit' 39 | # s.dependency 'AFNetworking', '~> 2.3' 40 | end 41 | -------------------------------------------------------------------------------- /WBCollectionViewLayout/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/WBCollectionViewLayout/Assets/.gitkeep -------------------------------------------------------------------------------- /WBCollectionViewLayout/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwaqasbhati/WBCollectionViewLayout/eb68819942287690805d939eb81592abb658edb5/WBCollectionViewLayout/Classes/.gitkeep -------------------------------------------------------------------------------- /WBCollectionViewLayout/Classes/WBGridViewLayout.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MovieItemsGridLayout.swift 3 | // TestProject 4 | // 5 | // Created by Muhammad Waqas on 3/06/18. 6 | // Copyright © 2018 Emaar . All rights reserved. 7 | 8 | import UIKit 9 | 10 | // MARK: - MBGridViewLayoutDelegate 11 | 12 | public protocol WBGridViewLayoutDelegate: class { 13 | func colectionView(_ collectionView: UICollectionView, numberOfItemsInRow row: Int) -> CellLayout 14 | func colectionView(_ collectionView: UICollectionView, sizeOfItemInRow row: Int) -> CGSize? 15 | } 16 | 17 | // These Default methods will be used, if you will not implement Delegate Methods. 18 | 19 | extension WBGridViewLayoutDelegate { 20 | func colectionView(_ collectionView: UICollectionView, numberOfItemsInRow row: Int) -> CellLayout { 21 | if row % 4 == 0 || row % 4 == 3 { 22 | return CellLayout.Two 23 | } else if row % 4 == 1 || row % 4 == 2 { 24 | if row % 2 == 0 { 25 | return CellLayout.ThreeRight 26 | } 27 | return CellLayout.ThreeLeft 28 | } 29 | return CellLayout.Two 30 | } 31 | func colectionView(_ collectionView: UICollectionView, sizeOfItemInRow row: Int) -> CGSize? { 32 | return nil 33 | } 34 | } 35 | 36 | // Enum for Defining Layout Direction and Layout Type 37 | // MARK: - Layout - Enums 38 | 39 | public enum CellLayout { 40 | case Two 41 | case ThreeLeft 42 | case ThreeRight 43 | 44 | var itemsCount: Int { 45 | switch self { 46 | case .Two: return 2 47 | case .ThreeLeft: return 3 48 | case .ThreeRight: return 3 49 | } 50 | } 51 | } 52 | 53 | // MARK: - Layout - Main Class 54 | 55 | open class WBGridViewLayout: UICollectionViewLayout { 56 | 57 | // MARK: - Instances 58 | 59 | private var horizontalInset = 0.0 as CGFloat 60 | private var verticalInset = 0.0 as CGFloat 61 | private var itemHeightForTwoCell = 195.0 as CGFloat 62 | private var itemHeightForThreeCell = 330.0 as CGFloat 63 | 64 | private var _layoutAttributes = Dictionary() 65 | private var _contentSize = CGSize.zero 66 | 67 | private var layoutCell: CellLayout = .Two 68 | private var typeTotalItems = 0 69 | private var lastRowHeight = 0.0 70 | 71 | public weak var delegate: WBGridViewLayoutDelegate? 72 | 73 | private lazy var quarterWidth = { 74 | return (self.collectionView?.frame.size.width ?? 0.0) * 0.25 75 | }() 76 | private lazy var halfWidth = { 77 | return (self.collectionView?.frame.size.width ?? 0.0) * 0.50 78 | }() 79 | private lazy var threeQuarterWidth = { 80 | return (self.collectionView?.frame.size.width ?? 0.0) * 0.75 81 | }() 82 | 83 | private struct Numbers { 84 | static let One = 1 85 | static let Two = 2 86 | static let Three = 3 87 | } 88 | 89 | // MARK: - 90 | // MARK: - Layout 91 | 92 | override open func prepare() { 93 | super.prepare() 94 | 95 | if delegate == nil { 96 | fatalError("Please confirm to delegate to Continue") 97 | } 98 | _layoutAttributes = Dictionary() 99 | drawLayout() 100 | 101 | } 102 | 103 | // MARK: - 104 | // MARK: - Initializers 105 | 106 | public init(horizontalInset: CGFloat = 0.0, verticalInset: CGFloat = 0.0) { 107 | self.horizontalInset = horizontalInset 108 | self.verticalInset = verticalInset 109 | super.init() 110 | } 111 | required public init?(coder aDecoder: NSCoder) { 112 | // fatalError("init(coder:) has not been implemented") 113 | super.init(coder: aDecoder) 114 | } 115 | 116 | // MARK: - 117 | // MARK: - Helpers 118 | 119 | private func drawLayout() { 120 | 121 | let path = IndexPath(item: 0, section: 0) 122 | let attributes = UICollectionViewLayoutAttributes(forSupplementaryViewOfKind: UICollectionElementKindSectionHeader, with: path) 123 | 124 | let headerHeight = CGFloat(0.0) 125 | attributes.frame = CGRect(x: 0, y: 0, width: self.collectionView!.frame.size.width, height: headerHeight) 126 | 127 | let headerKey = layoutKeyForHeaderAtIndexPath(path) 128 | _layoutAttributes[headerKey] = attributes 129 | 130 | var yOffset = headerHeight 131 | 132 | let numberOfSections = self.collectionView!.numberOfSections 133 | 134 | for section in 0 ..< numberOfSections { 135 | 136 | let numberOfItems = self.collectionView!.numberOfItems(inSection: section) 137 | 138 | var xOffset = horizontalInset 139 | 140 | for item in 0 ..< numberOfItems { 141 | 142 | let indexPath = IndexPath(item: item, section: section) 143 | var attributes = UICollectionViewLayoutAttributes(forCellWith: indexPath) 144 | 145 | if xOffset == horizontalInset && typeTotalItems == 0 { 146 | // This code will be used to reset some global variables when layout will switch from 2 to 3 cell and vice versa. 147 | 148 | guard let cellLayout = delegate?.colectionView(collectionView!, numberOfItemsInRow: indexPath.row) else { 149 | fatalError("Number of Items not provided for Row \(indexPath.row)") 150 | } 151 | 152 | layoutCell = cellLayout 153 | typeTotalItems = layoutCell.itemsCount 154 | } 155 | // This code will be used to draw 2 and 3 cells in a box depending on layoutCell. 156 | switch layoutCell { 157 | case .Two: 158 | drawTwoCellLayoutFor(indexPath: indexPath, attributes: &attributes, xOffset: &xOffset, yOffset: &yOffset) 159 | case .ThreeLeft: 160 | drawThreeCellLeftLayoutFor(indexPath: indexPath, attributes: &attributes, xOffset: &xOffset, yOffset: &yOffset) 161 | case .ThreeRight: 162 | drawThreeCellRightLayoutFor(indexPath: indexPath, attributes: &attributes, xOffset: &xOffset, yOffset: &yOffset) 163 | 164 | } 165 | } 166 | } 167 | 168 | // This code will be used to add some extra padding at the bottom 169 | 170 | if typeTotalItems > 0 { 171 | let numberOfItems = self.collectionView!.numberOfItems(inSection: 0) 172 | let mItemSize = getItemSize(at: numberOfItems) 173 | yOffset += mItemSize.height 174 | } 175 | 176 | _contentSize = CGSize(width: self.collectionView!.frame.size.width, height: yOffset + self.verticalInset) 177 | 178 | } 179 | private func drawTwoCellLayoutFor(indexPath: IndexPath, attributes: inout UICollectionViewLayoutAttributes,xOffset: inout CGFloat, yOffset: inout CGFloat) { 180 | 181 | let mItemSize = getItemSize(at: indexPath.row) 182 | 183 | if typeTotalItems > 0 { 184 | attributes.frame = CGRect(x: xOffset, y: yOffset, width: mItemSize.width, height: mItemSize.height).integral 185 | // print("Row: \(indexPath.row) Frame: \(attributes.frame)") 186 | let key = layoutKeyForIndexPath(indexPath) 187 | _layoutAttributes[key] = attributes // 7 188 | 189 | xOffset += mItemSize.width 190 | typeTotalItems -= 1 191 | if typeTotalItems == 0 { 192 | xOffset = horizontalInset 193 | yOffset += mItemSize.height 194 | } 195 | } 196 | } 197 | private func drawThreeCellLeftLayoutFor(indexPath: IndexPath, attributes: inout UICollectionViewLayoutAttributes,xOffset: inout CGFloat, yOffset: inout CGFloat) { 198 | 199 | var mItemSize = getItemSize(at: indexPath.row) 200 | 201 | if typeTotalItems > 0 { 202 | if typeTotalItems == Numbers.Three { 203 | attributes.frame = CGRect(x: xOffset, y: yOffset, width: mItemSize.width, height: mItemSize.height).integral 204 | xOffset += mItemSize.width 205 | } 206 | else if typeTotalItems == Numbers.Two { 207 | mItemSize.height = mItemSize.height/2 208 | let itemWidth = (collectionView?.frame.size.width ?? 0.0) - mItemSize.width 209 | attributes.frame = CGRect(x: xOffset, y: yOffset, width: itemWidth, height: mItemSize.height).integral 210 | yOffset += mItemSize.height 211 | } 212 | else if typeTotalItems == Numbers.One { 213 | mItemSize.height = mItemSize.height/2 214 | let itemWidth = (collectionView?.frame.size.width ?? 0.0) - mItemSize.width 215 | attributes.frame = CGRect(x: xOffset, y: yOffset, width: itemWidth, height: mItemSize.height).integral 216 | } 217 | 218 | // print("Row: \(indexPath.row) Frame: \(attributes.frame)") 219 | let key = layoutKeyForIndexPath(indexPath) 220 | _layoutAttributes[key] = attributes // 7 221 | typeTotalItems -= 1 222 | 223 | if typeTotalItems == 0 { 224 | //reset 225 | xOffset = horizontalInset 226 | yOffset += mItemSize.height 227 | } 228 | 229 | } 230 | } 231 | private func drawThreeCellRightLayoutFor(indexPath: IndexPath, attributes: inout UICollectionViewLayoutAttributes,xOffset: inout CGFloat, yOffset: inout CGFloat) { 232 | 233 | var mItemSize = getItemSize(at: indexPath.row) 234 | 235 | if typeTotalItems > 0 { 236 | 237 | if typeTotalItems == Numbers.Three { 238 | mItemSize.height = mItemSize.height/2 239 | let itemWidth = (collectionView?.frame.size.width ?? 0.0) - mItemSize.width 240 | attributes.frame = CGRect(x: xOffset, y: yOffset, width: itemWidth, height: mItemSize.height).integral 241 | yOffset += mItemSize.height 242 | } 243 | else if typeTotalItems == Numbers.Two { 244 | mItemSize.height = mItemSize.height/2 245 | let itemWidth = (collectionView?.frame.size.width ?? 0.0) - mItemSize.width 246 | attributes.frame = CGRect(x: xOffset, y: yOffset, width: itemWidth, height: mItemSize.height).integral 247 | yOffset += mItemSize.height 248 | xOffset += itemWidth 249 | } 250 | else if typeTotalItems == Numbers.One { 251 | yOffset -= mItemSize.height 252 | attributes.frame = CGRect(x: xOffset, y: yOffset, width: mItemSize.width, height: mItemSize.height).integral 253 | } 254 | 255 | // print("Row: \(indexPath.row) Frame: \(attributes.frame)") 256 | let key = layoutKeyForIndexPath(indexPath) 257 | _layoutAttributes[key] = attributes // 7 258 | typeTotalItems -= 1 259 | 260 | if typeTotalItems == 0 { 261 | //reset 262 | xOffset = horizontalInset 263 | yOffset += mItemSize.height 264 | } 265 | 266 | } 267 | } 268 | private func getItemSize(at row: Int) -> CGSize { 269 | guard let itemSize = delegate?.colectionView(collectionView!, sizeOfItemInRow: row) else { 270 | switch layoutCell { 271 | case .Two: 272 | return CGSize(width: halfWidth, height: itemHeightForTwoCell) 273 | case .ThreeLeft: 274 | return CGSize(width: threeQuarterWidth, height: itemHeightForThreeCell) 275 | case .ThreeRight: 276 | return CGSize(width: threeQuarterWidth, height: itemHeightForThreeCell) 277 | } 278 | } 279 | return itemSize 280 | } 281 | 282 | private func layoutKeyForIndexPath(_ indexPath : IndexPath) -> String { 283 | return "\(indexPath.section)_\(indexPath.row)" 284 | } 285 | 286 | private func layoutKeyForHeaderAtIndexPath(_ indexPath : IndexPath) -> String { 287 | return "s_\(indexPath.section)_\(indexPath.row)" 288 | } 289 | 290 | // MARK: - 291 | // MARK: - Layout attributes 292 | 293 | override open var collectionViewContentSize: CGSize { 294 | return _contentSize 295 | } 296 | 297 | override open func layoutAttributesForSupplementaryView(ofKind elementKind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? { 298 | let headerKey = layoutKeyForIndexPath(indexPath) 299 | return _layoutAttributes[headerKey] 300 | } 301 | 302 | override open func layoutAttributesForItem(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? { 303 | let key = layoutKeyForIndexPath(indexPath) 304 | return _layoutAttributes[key] 305 | } 306 | 307 | override open func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { 308 | let predicate = NSPredicate { [unowned self] (evaluatedObject, bindings) -> Bool in 309 | let layoutAttribute = self._layoutAttributes[evaluatedObject as! String] 310 | return rect.intersects(layoutAttribute!.frame) 311 | } 312 | let dict = _layoutAttributes as NSDictionary 313 | let keys = dict.allKeys as NSArray 314 | let matchingKeys = keys.filtered(using: predicate) 315 | return dict.objects(forKeys: matchingKeys, notFoundMarker: NSNull()) as? [UICollectionViewLayoutAttributes] 316 | } 317 | 318 | override open func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool { 319 | return !newBounds.size.equalTo(self.collectionView!.frame.size) 320 | } 321 | } 322 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------