├── .gitignore ├── .travis.yml ├── Example ├── IrregularCollectionUIKit.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── IrregularCollectionUIKit_Example.xcscheme ├── IrregularCollectionUIKit.xcworkspace │ └── contents.xcworkspacedata ├── IrregularCollectionUIKit │ ├── DemoAppDelegate.h │ ├── DemoAppDelegate.m │ ├── DemoViewController.swift │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── IrregularCollectionUIKit-Info.plist │ ├── IrregularCollectionUIKit-Prefix.pch │ ├── IrregularCollectionUIKit_Example-Bridging-Header.h │ ├── Launch Screen.storyboard │ ├── Main.storyboard │ ├── Resources │ │ └── img │ │ │ ├── 201499971412727010.jpg │ │ │ ├── 20160408110556_11.jpg │ │ │ ├── 201606100719471127_1.jpg │ │ │ ├── 7.jpg │ │ │ ├── 99763_62164_3159.jpg │ │ │ ├── R1280x0.jpg │ │ │ ├── article_20150904-1.jpg │ │ │ ├── channelProfileView.png │ │ │ └── img_20150502111148_a5d91d53.jpg │ ├── SampleContent.swift │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m ├── Podfile ├── Podfile.lock ├── Pods │ ├── Headers │ │ ├── Private │ │ │ └── IrregularCollectionUIKit │ │ │ │ ├── IrregularCollectionUIKit.h │ │ │ │ ├── IrregularCollectionViewController.h │ │ │ │ ├── IrregularCollectionViewLayout.h │ │ │ │ ├── IrregularLayoutAttributesManager.h │ │ │ │ └── PropertyManagedViewController.h │ │ └── Public │ │ │ └── IrregularCollectionUIKit │ │ │ ├── IrregularCollectionUIKit.h │ │ │ ├── IrregularCollectionViewController.h │ │ │ ├── IrregularCollectionViewLayout.h │ │ │ ├── IrregularLayoutAttributesManager.h │ │ │ └── PropertyManagedViewController.h │ ├── Local Podspecs │ │ └── IrregularCollectionUIKit.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── IrregularCollectionUIKit │ │ ├── IrregularCollectionUIKit-dummy.m │ │ ├── IrregularCollectionUIKit-prefix.pch │ │ └── IrregularCollectionUIKit.xcconfig │ │ ├── Pods-IrregularCollectionUIKit_Example │ │ ├── Pods-IrregularCollectionUIKit_Example-acknowledgements.markdown │ │ ├── Pods-IrregularCollectionUIKit_Example-acknowledgements.plist │ │ ├── Pods-IrregularCollectionUIKit_Example-dummy.m │ │ ├── Pods-IrregularCollectionUIKit_Example-frameworks.sh │ │ ├── Pods-IrregularCollectionUIKit_Example-resources.sh │ │ ├── Pods-IrregularCollectionUIKit_Example.debug.xcconfig │ │ └── Pods-IrregularCollectionUIKit_Example.release.xcconfig │ │ └── Pods-IrregularCollectionUIKit_Tests │ │ ├── Pods-IrregularCollectionUIKit_Tests-acknowledgements.markdown │ │ ├── Pods-IrregularCollectionUIKit_Tests-acknowledgements.plist │ │ ├── Pods-IrregularCollectionUIKit_Tests-dummy.m │ │ ├── Pods-IrregularCollectionUIKit_Tests-frameworks.sh │ │ ├── Pods-IrregularCollectionUIKit_Tests-resources.sh │ │ ├── Pods-IrregularCollectionUIKit_Tests.debug.xcconfig │ │ └── Pods-IrregularCollectionUIKit_Tests.release.xcconfig └── Tests │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── en.lproj │ └── InfoPlist.strings ├── IrregularCollectionUIKit.podspec ├── IrregularCollectionUIKit.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ └── IrregularCollectionUIKit.xcscheme ├── IrregularCollectionUIKit ├── Assets │ └── .gitkeep ├── Classes │ ├── .gitkeep │ ├── IrregularCollectionUIKit.h │ ├── IrregularCollectionViewController.h │ ├── IrregularCollectionViewController.m │ ├── IrregularCollectionViewLayout.h │ ├── IrregularCollectionViewLayout.m │ ├── IrregularLayoutAttributesManager.h │ ├── IrregularLayoutAttributesManager.m │ ├── PropertyManagedViewController.h │ └── PropertyManagedViewController.m └── Info.plist ├── LICENSE ├── README.md ├── _Pods.xcodeproj └── screenshots ├── sh_001.png ├── sh_002.png └── sh_003.png /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: swift 2 | osx_image: xcode8.3 3 | script: set -o pipefail && xcodebuild -workspace Example/IrregularCollectionUIKit.xcworkspace -scheme IrregularCollectionUIKit_Example -sdk iphonesimulator10.3 | xcpretty 4 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 231D91321D90CEA600E913FE /* DemoAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 231D911E1D90CEA600E913FE /* DemoAppDelegate.m */; }; 11 | 231D91331D90CEA600E913FE /* DemoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 231D911F1D90CEA600E913FE /* DemoViewController.swift */; }; 12 | 231D91341D90CEA600E913FE /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 231D91201D90CEA600E913FE /* Images.xcassets */; }; 13 | 231D91361D90CEA600E913FE /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 231D91231D90CEA600E913FE /* Launch Screen.storyboard */; }; 14 | 231D91371D90CEA600E913FE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 231D91241D90CEA600E913FE /* Main.storyboard */; }; 15 | 231D91391D90CEA600E913FE /* SampleContent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 231D91261D90CEA600E913FE /* SampleContent.swift */; }; 16 | 231D91401D90CEDA00E913FE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 231D913F1D90CEDA00E913FE /* main.m */; }; 17 | 236759DD1D9116190006C75B /* 201499971412727010.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 236759D41D9116190006C75B /* 201499971412727010.jpg */; }; 18 | 236759DE1D9116190006C75B /* 20160408110556_11.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 236759D51D9116190006C75B /* 20160408110556_11.jpg */; }; 19 | 236759DF1D9116190006C75B /* 201606100719471127_1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 236759D61D9116190006C75B /* 201606100719471127_1.jpg */; }; 20 | 236759E01D9116190006C75B /* 7.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 236759D71D9116190006C75B /* 7.jpg */; }; 21 | 236759E11D9116190006C75B /* 99763_62164_3159.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 236759D81D9116190006C75B /* 99763_62164_3159.jpg */; }; 22 | 236759E21D9116190006C75B /* article_20150904-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 236759D91D9116190006C75B /* article_20150904-1.jpg */; }; 23 | 236759E31D9116190006C75B /* channelProfileView.png in Resources */ = {isa = PBXBuildFile; fileRef = 236759DA1D9116190006C75B /* channelProfileView.png */; }; 24 | 236759E41D9116190006C75B /* img_20150502111148_a5d91d53.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 236759DB1D9116190006C75B /* img_20150502111148_a5d91d53.jpg */; }; 25 | 236759E51D9116190006C75B /* R1280x0.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 236759DC1D9116190006C75B /* R1280x0.jpg */; }; 26 | 359EB1436A7AF1B47CBC71D9 /* libPods-IrregularCollectionUIKit_Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D365CE9DA2F47C4076203BD9 /* libPods-IrregularCollectionUIKit_Example.a */; }; 27 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 28 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 29 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 30 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 31 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 32 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 33 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 34 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 35 | 7E80DDE9AD4379A9CB98A46F /* libPods-IrregularUIKit_Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FFFB03E0B7127FF49C4CDA91 /* libPods-IrregularUIKit_Tests.a */; }; 36 | F55E84639323FB72E84B2F22 /* libPods-IrregularCollectionUIKit_Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 22AD11D3C79A266782377DFA /* libPods-IrregularCollectionUIKit_Tests.a */; }; 37 | /* End PBXBuildFile section */ 38 | 39 | /* Begin PBXContainerItemProxy section */ 40 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 41 | isa = PBXContainerItemProxy; 42 | containerPortal = 6003F582195388D10070C39A /* Project object */; 43 | proxyType = 1; 44 | remoteGlobalIDString = 6003F589195388D20070C39A; 45 | remoteInfo = IrregularUIKit; 46 | }; 47 | /* End PBXContainerItemProxy section */ 48 | 49 | /* Begin PBXFileReference section */ 50 | 012EDBD6140CF710D5922F90 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 51 | 015A94912719ADD3ACF1CEF6 /* Pods-IrregularUIKit_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IrregularUIKit_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-IrregularUIKit_Example/Pods-IrregularUIKit_Example.release.xcconfig"; sourceTree = ""; }; 52 | 09E580333797462ED0A221B9 /* Pods-IrregularCollectionUIKit_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IrregularCollectionUIKit_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_Tests.debug.xcconfig"; sourceTree = ""; }; 53 | 1A1EBD36F9AF24BAD13639CB /* Pods-IrregularCollectionUIKit_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IrregularCollectionUIKit_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_Example.release.xcconfig"; sourceTree = ""; }; 54 | 22AD11D3C79A266782377DFA /* libPods-IrregularCollectionUIKit_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-IrregularCollectionUIKit_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 231D911D1D90CEA600E913FE /* DemoAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DemoAppDelegate.h; path = IrregularCollectionUIKit/DemoAppDelegate.h; sourceTree = SOURCE_ROOT; }; 56 | 231D911E1D90CEA600E913FE /* DemoAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DemoAppDelegate.m; path = IrregularCollectionUIKit/DemoAppDelegate.m; sourceTree = SOURCE_ROOT; }; 57 | 231D911F1D90CEA600E913FE /* DemoViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DemoViewController.swift; path = IrregularCollectionUIKit/DemoViewController.swift; sourceTree = SOURCE_ROOT; }; 58 | 231D91201D90CEA600E913FE /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = IrregularCollectionUIKit/Images.xcassets; sourceTree = SOURCE_ROOT; }; 59 | 231D91221D90CEA600E913FE /* IrregularCollectionUIKit_Example-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "IrregularCollectionUIKit_Example-Bridging-Header.h"; path = "IrregularCollectionUIKit/IrregularCollectionUIKit_Example-Bridging-Header.h"; sourceTree = SOURCE_ROOT; }; 60 | 231D91231D90CEA600E913FE /* Launch Screen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = "Launch Screen.storyboard"; path = "IrregularCollectionUIKit/Launch Screen.storyboard"; sourceTree = SOURCE_ROOT; }; 61 | 231D91241D90CEA600E913FE /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = IrregularCollectionUIKit/Main.storyboard; sourceTree = SOURCE_ROOT; }; 62 | 231D91261D90CEA600E913FE /* SampleContent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SampleContent.swift; path = IrregularCollectionUIKit/SampleContent.swift; sourceTree = SOURCE_ROOT; }; 63 | 231D913B1D90CEBF00E913FE /* IrregularCollectionUIKit-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "IrregularCollectionUIKit-Info.plist"; path = "IrregularCollectionUIKit/IrregularCollectionUIKit-Info.plist"; sourceTree = SOURCE_ROOT; }; 64 | 231D913C1D90CEBF00E913FE /* IrregularCollectionUIKit-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "IrregularCollectionUIKit-Prefix.pch"; path = "IrregularCollectionUIKit/IrregularCollectionUIKit-Prefix.pch"; sourceTree = SOURCE_ROOT; }; 65 | 231D913E1D90CEC600E913FE /* IrregularCollectionUIKit_Example-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "IrregularCollectionUIKit_Example-Bridging-Header.h"; path = "IrregularCollectionUIKit/IrregularCollectionUIKit_Example-Bridging-Header.h"; sourceTree = SOURCE_ROOT; }; 66 | 231D913F1D90CEDA00E913FE /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = IrregularCollectionUIKit/main.m; sourceTree = SOURCE_ROOT; }; 67 | 236759D41D9116190006C75B /* 201499971412727010.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 201499971412727010.jpg; sourceTree = ""; }; 68 | 236759D51D9116190006C75B /* 20160408110556_11.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 20160408110556_11.jpg; sourceTree = ""; }; 69 | 236759D61D9116190006C75B /* 201606100719471127_1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 201606100719471127_1.jpg; sourceTree = ""; }; 70 | 236759D71D9116190006C75B /* 7.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 7.jpg; sourceTree = ""; }; 71 | 236759D81D9116190006C75B /* 99763_62164_3159.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 99763_62164_3159.jpg; sourceTree = ""; }; 72 | 236759D91D9116190006C75B /* article_20150904-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "article_20150904-1.jpg"; sourceTree = ""; }; 73 | 236759DA1D9116190006C75B /* channelProfileView.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = channelProfileView.png; sourceTree = ""; }; 74 | 236759DB1D9116190006C75B /* img_20150502111148_a5d91d53.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = img_20150502111148_a5d91d53.jpg; sourceTree = ""; }; 75 | 236759DC1D9116190006C75B /* R1280x0.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = R1280x0.jpg; sourceTree = ""; }; 76 | 243C44F3B9E03DBDA3231685 /* Pods-IrregularCollectionUIKit_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IrregularCollectionUIKit_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_Tests.release.xcconfig"; sourceTree = ""; }; 77 | 3D1EB8E802573A29606DCFAF /* libPods-IrregularUIKit_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-IrregularUIKit_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 78 | 58892DABB6AC01EC46F2B7C6 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 79 | 6003F58A195388D20070C39A /* IrregularCollectionUIKit_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IrregularCollectionUIKit_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 80 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 81 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 82 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 83 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 84 | 6003F5AE195388D20070C39A /* IrregularCollectionUIKit_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = IrregularCollectionUIKit_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 85 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 86 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 87 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 88 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 89 | 6031D925E5AA3EBD5A4CB3EC /* Pods-IrregularUIKit_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IrregularUIKit_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-IrregularUIKit_Tests/Pods-IrregularUIKit_Tests.release.xcconfig"; sourceTree = ""; }; 90 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 91 | 6E9616E2CF4AB72F02EF8DB9 /* Pods-IrregularCollectionUIKit_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IrregularCollectionUIKit_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_Example.debug.xcconfig"; sourceTree = ""; }; 92 | 72A86362576C2D687DC56F85 /* IrregularUIKit.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = IrregularUIKit.podspec; path = ../IrregularUIKit.podspec; sourceTree = ""; }; 93 | A3E1996E3FE9546F4B7DAB2E /* Pods-IrregularUIKit_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IrregularUIKit_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-IrregularUIKit_Example/Pods-IrregularUIKit_Example.debug.xcconfig"; sourceTree = ""; }; 94 | D365CE9DA2F47C4076203BD9 /* libPods-IrregularCollectionUIKit_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-IrregularCollectionUIKit_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 95 | FC18D4A34C220869D3659E8E /* Pods-IrregularUIKit_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IrregularUIKit_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-IrregularUIKit_Tests/Pods-IrregularUIKit_Tests.debug.xcconfig"; sourceTree = ""; }; 96 | FFFB03E0B7127FF49C4CDA91 /* libPods-IrregularUIKit_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-IrregularUIKit_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 97 | /* End PBXFileReference section */ 98 | 99 | /* Begin PBXFrameworksBuildPhase section */ 100 | 6003F587195388D20070C39A /* Frameworks */ = { 101 | isa = PBXFrameworksBuildPhase; 102 | buildActionMask = 2147483647; 103 | files = ( 104 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 105 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 106 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 107 | 359EB1436A7AF1B47CBC71D9 /* libPods-IrregularCollectionUIKit_Example.a in Frameworks */, 108 | ); 109 | runOnlyForDeploymentPostprocessing = 0; 110 | }; 111 | 6003F5AB195388D20070C39A /* Frameworks */ = { 112 | isa = PBXFrameworksBuildPhase; 113 | buildActionMask = 2147483647; 114 | files = ( 115 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 116 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 117 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 118 | 7E80DDE9AD4379A9CB98A46F /* libPods-IrregularUIKit_Tests.a in Frameworks */, 119 | F55E84639323FB72E84B2F22 /* libPods-IrregularCollectionUIKit_Tests.a in Frameworks */, 120 | ); 121 | runOnlyForDeploymentPostprocessing = 0; 122 | }; 123 | /* End PBXFrameworksBuildPhase section */ 124 | 125 | /* Begin PBXGroup section */ 126 | 236759D21D9116190006C75B /* Resources */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 236759D31D9116190006C75B /* img */, 130 | ); 131 | name = Resources; 132 | path = IrregularCollectionUIKit/Resources; 133 | sourceTree = SOURCE_ROOT; 134 | }; 135 | 236759D31D9116190006C75B /* img */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 236759D41D9116190006C75B /* 201499971412727010.jpg */, 139 | 236759D51D9116190006C75B /* 20160408110556_11.jpg */, 140 | 236759D61D9116190006C75B /* 201606100719471127_1.jpg */, 141 | 236759D71D9116190006C75B /* 7.jpg */, 142 | 236759D81D9116190006C75B /* 99763_62164_3159.jpg */, 143 | 236759D91D9116190006C75B /* article_20150904-1.jpg */, 144 | 236759DA1D9116190006C75B /* channelProfileView.png */, 145 | 236759DB1D9116190006C75B /* img_20150502111148_a5d91d53.jpg */, 146 | 236759DC1D9116190006C75B /* R1280x0.jpg */, 147 | ); 148 | path = img; 149 | sourceTree = ""; 150 | }; 151 | 6003F581195388D10070C39A = { 152 | isa = PBXGroup; 153 | children = ( 154 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 155 | 6003F593195388D20070C39A /* Example for IrregularCollectionUIKit */, 156 | 6003F5B5195388D20070C39A /* Tests */, 157 | 6003F58C195388D20070C39A /* Frameworks */, 158 | 6003F58B195388D20070C39A /* Products */, 159 | BD3F7A855E0B8BAB51C96131 /* Pods */, 160 | ); 161 | sourceTree = ""; 162 | }; 163 | 6003F58B195388D20070C39A /* Products */ = { 164 | isa = PBXGroup; 165 | children = ( 166 | 6003F58A195388D20070C39A /* IrregularCollectionUIKit_Example.app */, 167 | 6003F5AE195388D20070C39A /* IrregularCollectionUIKit_Tests.xctest */, 168 | ); 169 | name = Products; 170 | sourceTree = ""; 171 | }; 172 | 6003F58C195388D20070C39A /* Frameworks */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | 6003F58D195388D20070C39A /* Foundation.framework */, 176 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 177 | 6003F591195388D20070C39A /* UIKit.framework */, 178 | 6003F5AF195388D20070C39A /* XCTest.framework */, 179 | 3D1EB8E802573A29606DCFAF /* libPods-IrregularUIKit_Example.a */, 180 | FFFB03E0B7127FF49C4CDA91 /* libPods-IrregularUIKit_Tests.a */, 181 | D365CE9DA2F47C4076203BD9 /* libPods-IrregularCollectionUIKit_Example.a */, 182 | 22AD11D3C79A266782377DFA /* libPods-IrregularCollectionUIKit_Tests.a */, 183 | ); 184 | name = Frameworks; 185 | sourceTree = ""; 186 | }; 187 | 6003F593195388D20070C39A /* Example for IrregularCollectionUIKit */ = { 188 | isa = PBXGroup; 189 | children = ( 190 | 236759D21D9116190006C75B /* Resources */, 191 | 231D91201D90CEA600E913FE /* Images.xcassets */, 192 | 231D911D1D90CEA600E913FE /* DemoAppDelegate.h */, 193 | 231D911E1D90CEA600E913FE /* DemoAppDelegate.m */, 194 | 231D911F1D90CEA600E913FE /* DemoViewController.swift */, 195 | 231D91221D90CEA600E913FE /* IrregularCollectionUIKit_Example-Bridging-Header.h */, 196 | 231D91231D90CEA600E913FE /* Launch Screen.storyboard */, 197 | 231D91241D90CEA600E913FE /* Main.storyboard */, 198 | 231D91261D90CEA600E913FE /* SampleContent.swift */, 199 | 6003F594195388D20070C39A /* Supporting Files */, 200 | ); 201 | name = "Example for IrregularCollectionUIKit"; 202 | path = IrregularUIKit; 203 | sourceTree = ""; 204 | }; 205 | 6003F594195388D20070C39A /* Supporting Files */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | 231D913F1D90CEDA00E913FE /* main.m */, 209 | 231D913E1D90CEC600E913FE /* IrregularCollectionUIKit_Example-Bridging-Header.h */, 210 | 231D913B1D90CEBF00E913FE /* IrregularCollectionUIKit-Info.plist */, 211 | 231D913C1D90CEBF00E913FE /* IrregularCollectionUIKit-Prefix.pch */, 212 | 6003F596195388D20070C39A /* InfoPlist.strings */, 213 | ); 214 | name = "Supporting Files"; 215 | sourceTree = ""; 216 | }; 217 | 6003F5B5195388D20070C39A /* Tests */ = { 218 | isa = PBXGroup; 219 | children = ( 220 | 6003F5BB195388D20070C39A /* Tests.m */, 221 | 6003F5B6195388D20070C39A /* Supporting Files */, 222 | ); 223 | path = Tests; 224 | sourceTree = ""; 225 | }; 226 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 227 | isa = PBXGroup; 228 | children = ( 229 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 230 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 231 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 232 | ); 233 | name = "Supporting Files"; 234 | sourceTree = ""; 235 | }; 236 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 237 | isa = PBXGroup; 238 | children = ( 239 | 72A86362576C2D687DC56F85 /* IrregularUIKit.podspec */, 240 | 012EDBD6140CF710D5922F90 /* README.md */, 241 | 58892DABB6AC01EC46F2B7C6 /* LICENSE */, 242 | ); 243 | name = "Podspec Metadata"; 244 | sourceTree = ""; 245 | }; 246 | BD3F7A855E0B8BAB51C96131 /* Pods */ = { 247 | isa = PBXGroup; 248 | children = ( 249 | A3E1996E3FE9546F4B7DAB2E /* Pods-IrregularUIKit_Example.debug.xcconfig */, 250 | 015A94912719ADD3ACF1CEF6 /* Pods-IrregularUIKit_Example.release.xcconfig */, 251 | FC18D4A34C220869D3659E8E /* Pods-IrregularUIKit_Tests.debug.xcconfig */, 252 | 6031D925E5AA3EBD5A4CB3EC /* Pods-IrregularUIKit_Tests.release.xcconfig */, 253 | 6E9616E2CF4AB72F02EF8DB9 /* Pods-IrregularCollectionUIKit_Example.debug.xcconfig */, 254 | 1A1EBD36F9AF24BAD13639CB /* Pods-IrregularCollectionUIKit_Example.release.xcconfig */, 255 | 09E580333797462ED0A221B9 /* Pods-IrregularCollectionUIKit_Tests.debug.xcconfig */, 256 | 243C44F3B9E03DBDA3231685 /* Pods-IrregularCollectionUIKit_Tests.release.xcconfig */, 257 | ); 258 | name = Pods; 259 | sourceTree = ""; 260 | }; 261 | /* End PBXGroup section */ 262 | 263 | /* Begin PBXNativeTarget section */ 264 | 6003F589195388D20070C39A /* IrregularCollectionUIKit_Example */ = { 265 | isa = PBXNativeTarget; 266 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "IrregularCollectionUIKit_Example" */; 267 | buildPhases = ( 268 | 7D772DBCD2E14B272E688EB2 /* [CP] Check Pods Manifest.lock */, 269 | 6003F586195388D20070C39A /* Sources */, 270 | 6003F587195388D20070C39A /* Frameworks */, 271 | 6003F588195388D20070C39A /* Resources */, 272 | 7AFF676B45964DC4AB34ECA5 /* [CP] Embed Pods Frameworks */, 273 | 0E451A0830CBBCE035F2B41D /* [CP] Copy Pods Resources */, 274 | ); 275 | buildRules = ( 276 | ); 277 | dependencies = ( 278 | ); 279 | name = IrregularCollectionUIKit_Example; 280 | productName = IrregularUIKit; 281 | productReference = 6003F58A195388D20070C39A /* IrregularCollectionUIKit_Example.app */; 282 | productType = "com.apple.product-type.application"; 283 | }; 284 | 6003F5AD195388D20070C39A /* IrregularCollectionUIKit_Tests */ = { 285 | isa = PBXNativeTarget; 286 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "IrregularCollectionUIKit_Tests" */; 287 | buildPhases = ( 288 | 5F4795B85FA1C60FE462F2F4 /* [CP] Check Pods Manifest.lock */, 289 | 6003F5AA195388D20070C39A /* Sources */, 290 | 6003F5AB195388D20070C39A /* Frameworks */, 291 | 6003F5AC195388D20070C39A /* Resources */, 292 | E668C5A3264DEAC12CEA2C5B /* [CP] Embed Pods Frameworks */, 293 | BCC2D6280E225C39A93BF3C3 /* [CP] Copy Pods Resources */, 294 | ); 295 | buildRules = ( 296 | ); 297 | dependencies = ( 298 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 299 | ); 300 | name = IrregularCollectionUIKit_Tests; 301 | productName = IrregularUIKitTests; 302 | productReference = 6003F5AE195388D20070C39A /* IrregularCollectionUIKit_Tests.xctest */; 303 | productType = "com.apple.product-type.bundle.unit-test"; 304 | }; 305 | /* End PBXNativeTarget section */ 306 | 307 | /* Begin PBXProject section */ 308 | 6003F582195388D10070C39A /* Project object */ = { 309 | isa = PBXProject; 310 | attributes = { 311 | CLASSPREFIX = Demo; 312 | LastSwiftUpdateCheck = 0730; 313 | LastUpgradeCheck = 0720; 314 | ORGANIZATIONNAME = "Steve Kim"; 315 | TargetAttributes = { 316 | 6003F589195388D20070C39A = { 317 | DevelopmentTeam = Z2MHWT9TNN; 318 | }; 319 | 6003F5AD195388D20070C39A = { 320 | TestTargetID = 6003F589195388D20070C39A; 321 | }; 322 | }; 323 | }; 324 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "IrregularCollectionUIKit" */; 325 | compatibilityVersion = "Xcode 3.2"; 326 | developmentRegion = English; 327 | hasScannedForEncodings = 0; 328 | knownRegions = ( 329 | en, 330 | Base, 331 | ); 332 | mainGroup = 6003F581195388D10070C39A; 333 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 334 | projectDirPath = ""; 335 | projectRoot = ""; 336 | targets = ( 337 | 6003F589195388D20070C39A /* IrregularCollectionUIKit_Example */, 338 | 6003F5AD195388D20070C39A /* IrregularCollectionUIKit_Tests */, 339 | ); 340 | }; 341 | /* End PBXProject section */ 342 | 343 | /* Begin PBXResourcesBuildPhase section */ 344 | 6003F588195388D20070C39A /* Resources */ = { 345 | isa = PBXResourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 236759DE1D9116190006C75B /* 20160408110556_11.jpg in Resources */, 349 | 231D91341D90CEA600E913FE /* Images.xcassets in Resources */, 350 | 236759E11D9116190006C75B /* 99763_62164_3159.jpg in Resources */, 351 | 236759DD1D9116190006C75B /* 201499971412727010.jpg in Resources */, 352 | 236759E41D9116190006C75B /* img_20150502111148_a5d91d53.jpg in Resources */, 353 | 236759E21D9116190006C75B /* article_20150904-1.jpg in Resources */, 354 | 231D91361D90CEA600E913FE /* Launch Screen.storyboard in Resources */, 355 | 231D91371D90CEA600E913FE /* Main.storyboard in Resources */, 356 | 236759E01D9116190006C75B /* 7.jpg in Resources */, 357 | 236759E51D9116190006C75B /* R1280x0.jpg in Resources */, 358 | 236759DF1D9116190006C75B /* 201606100719471127_1.jpg in Resources */, 359 | 236759E31D9116190006C75B /* channelProfileView.png in Resources */, 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | 6003F5AC195388D20070C39A /* Resources */ = { 364 | isa = PBXResourcesBuildPhase; 365 | buildActionMask = 2147483647; 366 | files = ( 367 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 368 | ); 369 | runOnlyForDeploymentPostprocessing = 0; 370 | }; 371 | /* End PBXResourcesBuildPhase section */ 372 | 373 | /* Begin PBXShellScriptBuildPhase section */ 374 | 0E451A0830CBBCE035F2B41D /* [CP] Copy Pods Resources */ = { 375 | isa = PBXShellScriptBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | ); 379 | inputPaths = ( 380 | ); 381 | name = "[CP] Copy Pods Resources"; 382 | outputPaths = ( 383 | ); 384 | runOnlyForDeploymentPostprocessing = 0; 385 | shellPath = /bin/sh; 386 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_Example-resources.sh\"\n"; 387 | showEnvVarsInLog = 0; 388 | }; 389 | 5F4795B85FA1C60FE462F2F4 /* [CP] Check Pods Manifest.lock */ = { 390 | isa = PBXShellScriptBuildPhase; 391 | buildActionMask = 2147483647; 392 | files = ( 393 | ); 394 | inputPaths = ( 395 | ); 396 | name = "[CP] Check Pods Manifest.lock"; 397 | outputPaths = ( 398 | ); 399 | runOnlyForDeploymentPostprocessing = 0; 400 | shellPath = /bin/sh; 401 | 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"; 402 | showEnvVarsInLog = 0; 403 | }; 404 | 7AFF676B45964DC4AB34ECA5 /* [CP] Embed Pods Frameworks */ = { 405 | isa = PBXShellScriptBuildPhase; 406 | buildActionMask = 2147483647; 407 | files = ( 408 | ); 409 | inputPaths = ( 410 | ); 411 | name = "[CP] Embed Pods Frameworks"; 412 | outputPaths = ( 413 | ); 414 | runOnlyForDeploymentPostprocessing = 0; 415 | shellPath = /bin/sh; 416 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_Example-frameworks.sh\"\n"; 417 | showEnvVarsInLog = 0; 418 | }; 419 | 7D772DBCD2E14B272E688EB2 /* [CP] Check Pods Manifest.lock */ = { 420 | isa = PBXShellScriptBuildPhase; 421 | buildActionMask = 2147483647; 422 | files = ( 423 | ); 424 | inputPaths = ( 425 | ); 426 | name = "[CP] Check Pods Manifest.lock"; 427 | outputPaths = ( 428 | ); 429 | runOnlyForDeploymentPostprocessing = 0; 430 | shellPath = /bin/sh; 431 | 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"; 432 | showEnvVarsInLog = 0; 433 | }; 434 | BCC2D6280E225C39A93BF3C3 /* [CP] Copy Pods Resources */ = { 435 | isa = PBXShellScriptBuildPhase; 436 | buildActionMask = 2147483647; 437 | files = ( 438 | ); 439 | inputPaths = ( 440 | ); 441 | name = "[CP] Copy Pods Resources"; 442 | outputPaths = ( 443 | ); 444 | runOnlyForDeploymentPostprocessing = 0; 445 | shellPath = /bin/sh; 446 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_Tests-resources.sh\"\n"; 447 | showEnvVarsInLog = 0; 448 | }; 449 | E668C5A3264DEAC12CEA2C5B /* [CP] Embed Pods Frameworks */ = { 450 | isa = PBXShellScriptBuildPhase; 451 | buildActionMask = 2147483647; 452 | files = ( 453 | ); 454 | inputPaths = ( 455 | ); 456 | name = "[CP] Embed Pods Frameworks"; 457 | outputPaths = ( 458 | ); 459 | runOnlyForDeploymentPostprocessing = 0; 460 | shellPath = /bin/sh; 461 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_Tests-frameworks.sh\"\n"; 462 | showEnvVarsInLog = 0; 463 | }; 464 | /* End PBXShellScriptBuildPhase section */ 465 | 466 | /* Begin PBXSourcesBuildPhase section */ 467 | 6003F586195388D20070C39A /* Sources */ = { 468 | isa = PBXSourcesBuildPhase; 469 | buildActionMask = 2147483647; 470 | files = ( 471 | 231D91391D90CEA600E913FE /* SampleContent.swift in Sources */, 472 | 231D91321D90CEA600E913FE /* DemoAppDelegate.m in Sources */, 473 | 231D91401D90CEDA00E913FE /* main.m in Sources */, 474 | 231D91331D90CEA600E913FE /* DemoViewController.swift in Sources */, 475 | ); 476 | runOnlyForDeploymentPostprocessing = 0; 477 | }; 478 | 6003F5AA195388D20070C39A /* Sources */ = { 479 | isa = PBXSourcesBuildPhase; 480 | buildActionMask = 2147483647; 481 | files = ( 482 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 483 | ); 484 | runOnlyForDeploymentPostprocessing = 0; 485 | }; 486 | /* End PBXSourcesBuildPhase section */ 487 | 488 | /* Begin PBXTargetDependency section */ 489 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 490 | isa = PBXTargetDependency; 491 | target = 6003F589195388D20070C39A /* IrregularCollectionUIKit_Example */; 492 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 493 | }; 494 | /* End PBXTargetDependency section */ 495 | 496 | /* Begin PBXVariantGroup section */ 497 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 498 | isa = PBXVariantGroup; 499 | children = ( 500 | 6003F597195388D20070C39A /* en */, 501 | ); 502 | name = InfoPlist.strings; 503 | sourceTree = ""; 504 | }; 505 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 506 | isa = PBXVariantGroup; 507 | children = ( 508 | 6003F5B9195388D20070C39A /* en */, 509 | ); 510 | name = InfoPlist.strings; 511 | sourceTree = ""; 512 | }; 513 | /* End PBXVariantGroup section */ 514 | 515 | /* Begin XCBuildConfiguration section */ 516 | 6003F5BD195388D20070C39A /* Debug */ = { 517 | isa = XCBuildConfiguration; 518 | buildSettings = { 519 | ALWAYS_SEARCH_USER_PATHS = NO; 520 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 521 | CLANG_CXX_LIBRARY = "libc++"; 522 | CLANG_ENABLE_MODULES = YES; 523 | CLANG_ENABLE_OBJC_ARC = YES; 524 | CLANG_WARN_BOOL_CONVERSION = YES; 525 | CLANG_WARN_CONSTANT_CONVERSION = YES; 526 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 527 | CLANG_WARN_EMPTY_BODY = YES; 528 | CLANG_WARN_ENUM_CONVERSION = YES; 529 | CLANG_WARN_INT_CONVERSION = YES; 530 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 531 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 532 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 533 | COPY_PHASE_STRIP = NO; 534 | ENABLE_TESTABILITY = YES; 535 | GCC_C_LANGUAGE_STANDARD = gnu99; 536 | GCC_DYNAMIC_NO_PIC = NO; 537 | GCC_OPTIMIZATION_LEVEL = 0; 538 | GCC_PREPROCESSOR_DEFINITIONS = ( 539 | "DEBUG=1", 540 | "$(inherited)", 541 | ); 542 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 543 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 544 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 545 | GCC_WARN_UNDECLARED_SELECTOR = YES; 546 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 547 | GCC_WARN_UNUSED_FUNCTION = YES; 548 | GCC_WARN_UNUSED_VARIABLE = YES; 549 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 550 | ONLY_ACTIVE_ARCH = YES; 551 | SDKROOT = iphoneos; 552 | TARGETED_DEVICE_FAMILY = "1,2"; 553 | }; 554 | name = Debug; 555 | }; 556 | 6003F5BE195388D20070C39A /* Release */ = { 557 | isa = XCBuildConfiguration; 558 | buildSettings = { 559 | ALWAYS_SEARCH_USER_PATHS = NO; 560 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 561 | CLANG_CXX_LIBRARY = "libc++"; 562 | CLANG_ENABLE_MODULES = YES; 563 | CLANG_ENABLE_OBJC_ARC = YES; 564 | CLANG_WARN_BOOL_CONVERSION = YES; 565 | CLANG_WARN_CONSTANT_CONVERSION = YES; 566 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 567 | CLANG_WARN_EMPTY_BODY = YES; 568 | CLANG_WARN_ENUM_CONVERSION = YES; 569 | CLANG_WARN_INT_CONVERSION = YES; 570 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 571 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 572 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 573 | COPY_PHASE_STRIP = YES; 574 | ENABLE_NS_ASSERTIONS = NO; 575 | GCC_C_LANGUAGE_STANDARD = gnu99; 576 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 577 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 578 | GCC_WARN_UNDECLARED_SELECTOR = YES; 579 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 580 | GCC_WARN_UNUSED_FUNCTION = YES; 581 | GCC_WARN_UNUSED_VARIABLE = YES; 582 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 583 | SDKROOT = iphoneos; 584 | TARGETED_DEVICE_FAMILY = "1,2"; 585 | VALIDATE_PRODUCT = YES; 586 | }; 587 | name = Release; 588 | }; 589 | 6003F5C0195388D20070C39A /* Debug */ = { 590 | isa = XCBuildConfiguration; 591 | baseConfigurationReference = 6E9616E2CF4AB72F02EF8DB9 /* Pods-IrregularCollectionUIKit_Example.debug.xcconfig */; 592 | buildSettings = { 593 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 594 | CLANG_ENABLE_MODULES = YES; 595 | DEVELOPMENT_TEAM = Z2MHWT9TNN; 596 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 597 | GCC_PREFIX_HEADER = "IrregularCollectionUIKit/IrregularCollectionUIKit-Prefix.pch"; 598 | INFOPLIST_FILE = "IrregularCollectionUIKit/IrregularCollectionUIKit-Info.plist"; 599 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 600 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 601 | MODULE_NAME = ExampleApp; 602 | ONLY_ACTIVE_ARCH = YES; 603 | OTHER_LDFLAGS = "$(inherited)"; 604 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 605 | PRODUCT_NAME = "$(TARGET_NAME)"; 606 | SWIFT_OBJC_BRIDGING_HEADER = "IrregularCollectionUIKit/IrregularCollectionUIKit_Example-Bridging-Header.h"; 607 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 608 | SWIFT_VERSION = 3.0; 609 | WRAPPER_EXTENSION = app; 610 | }; 611 | name = Debug; 612 | }; 613 | 6003F5C1195388D20070C39A /* Release */ = { 614 | isa = XCBuildConfiguration; 615 | baseConfigurationReference = 1A1EBD36F9AF24BAD13639CB /* Pods-IrregularCollectionUIKit_Example.release.xcconfig */; 616 | buildSettings = { 617 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 618 | CLANG_ENABLE_MODULES = YES; 619 | DEVELOPMENT_TEAM = Z2MHWT9TNN; 620 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 621 | GCC_PREFIX_HEADER = "IrregularCollectionUIKit/IrregularCollectionUIKit-Prefix.pch"; 622 | INFOPLIST_FILE = "IrregularCollectionUIKit/IrregularCollectionUIKit-Info.plist"; 623 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 624 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 625 | MODULE_NAME = ExampleApp; 626 | ONLY_ACTIVE_ARCH = NO; 627 | OTHER_LDFLAGS = "$(inherited)"; 628 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 629 | PRODUCT_NAME = "$(TARGET_NAME)"; 630 | SWIFT_OBJC_BRIDGING_HEADER = "IrregularCollectionUIKit/IrregularCollectionUIKit_Example-Bridging-Header.h"; 631 | SWIFT_VERSION = 3.0; 632 | WRAPPER_EXTENSION = app; 633 | }; 634 | name = Release; 635 | }; 636 | 6003F5C3195388D20070C39A /* Debug */ = { 637 | isa = XCBuildConfiguration; 638 | baseConfigurationReference = 09E580333797462ED0A221B9 /* Pods-IrregularCollectionUIKit_Tests.debug.xcconfig */; 639 | buildSettings = { 640 | BUNDLE_LOADER = "$(TEST_HOST)"; 641 | FRAMEWORK_SEARCH_PATHS = ( 642 | "$(SDKROOT)/Developer/Library/Frameworks", 643 | "$(inherited)", 644 | "$(DEVELOPER_FRAMEWORKS_DIR)", 645 | ); 646 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 647 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 648 | GCC_PREPROCESSOR_DEFINITIONS = ( 649 | "DEBUG=1", 650 | "$(inherited)", 651 | ); 652 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 653 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 654 | PRODUCT_NAME = "$(TARGET_NAME)"; 655 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IrregularUIKit_Example.app/IrregularCollectionUIKit_Example"; 656 | WRAPPER_EXTENSION = xctest; 657 | }; 658 | name = Debug; 659 | }; 660 | 6003F5C4195388D20070C39A /* Release */ = { 661 | isa = XCBuildConfiguration; 662 | baseConfigurationReference = 243C44F3B9E03DBDA3231685 /* Pods-IrregularCollectionUIKit_Tests.release.xcconfig */; 663 | buildSettings = { 664 | BUNDLE_LOADER = "$(TEST_HOST)"; 665 | FRAMEWORK_SEARCH_PATHS = ( 666 | "$(SDKROOT)/Developer/Library/Frameworks", 667 | "$(inherited)", 668 | "$(DEVELOPER_FRAMEWORKS_DIR)", 669 | ); 670 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 671 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 672 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 673 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 674 | PRODUCT_NAME = "$(TARGET_NAME)"; 675 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IrregularUIKit_Example.app/IrregularCollectionUIKit_Example"; 676 | WRAPPER_EXTENSION = xctest; 677 | }; 678 | name = Release; 679 | }; 680 | /* End XCBuildConfiguration section */ 681 | 682 | /* Begin XCConfigurationList section */ 683 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "IrregularCollectionUIKit" */ = { 684 | isa = XCConfigurationList; 685 | buildConfigurations = ( 686 | 6003F5BD195388D20070C39A /* Debug */, 687 | 6003F5BE195388D20070C39A /* Release */, 688 | ); 689 | defaultConfigurationIsVisible = 0; 690 | defaultConfigurationName = Release; 691 | }; 692 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "IrregularCollectionUIKit_Example" */ = { 693 | isa = XCConfigurationList; 694 | buildConfigurations = ( 695 | 6003F5C0195388D20070C39A /* Debug */, 696 | 6003F5C1195388D20070C39A /* Release */, 697 | ); 698 | defaultConfigurationIsVisible = 0; 699 | defaultConfigurationName = Release; 700 | }; 701 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "IrregularCollectionUIKit_Tests" */ = { 702 | isa = XCConfigurationList; 703 | buildConfigurations = ( 704 | 6003F5C3195388D20070C39A /* Debug */, 705 | 6003F5C4195388D20070C39A /* Release */, 706 | ); 707 | defaultConfigurationIsVisible = 0; 708 | defaultConfigurationName = Release; 709 | }; 710 | /* End XCConfigurationList section */ 711 | }; 712 | rootObject = 6003F582195388D10070C39A /* Project object */; 713 | } 714 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit.xcodeproj/xcshareddata/xcschemes/IrregularCollectionUIKit_Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/DemoAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // DemoAppDelegate.h 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by Steve Kim on 09/17/2016. 6 | // Copyright (c) 2016-2017 Steve Kim. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface DemoAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/DemoAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // DemoAppDelegate.m 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by Steve Kim on 09/17/2016. 6 | // Copyright (c) 2016-2017 Steve Kim. All rights reserved. 7 | // 8 | 9 | #import "DemoAppDelegate.h" 10 | 11 | @implementation DemoAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // 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. 22 | // 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. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // 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. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 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 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // 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. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/DemoViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DemoViewController.swift 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/19/16. 6 | // Copyright © 2016 Steve Kim. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class DemoViewController: IrregularCollectionViewController { 12 | let sizeArray = [400, 300, 200] 13 | let imageNames = ["201499971412727010.jpg", "99763_62164_3159.jpg", "7.jpg", "20160408110556_11.jpg", "201606100719471127_1.jpg", "article_20150904-1.jpg", "img_20150502111148_a5d91d53.jpg", "R1280x0.jpg"] 14 | 15 | var contents: [SampleContent] = [] { 16 | didSet { 17 | collectionView.reloadData() 18 | } 19 | } 20 | 21 | // MARK: - Overridden: IrregularCollectionViewController 22 | 23 | override func viewDidLoad() { 24 | super.viewDidLoad() 25 | 26 | title = "Demo" 27 | collectionViewLayout.columnSpacing = 1 28 | collectionViewLayout.numberOfColumns = 3 29 | collectionViewLayout.sectionInset = UIEdgeInsetsMake(1, 1, 1, 1) 30 | collectionView.register(SampleViewCell.self, forCellWithReuseIdentifier: "SampleViewCell") 31 | } 32 | override func viewDidAppear(_ animated: Bool) { 33 | super.viewDidAppear(animated) 34 | 35 | if isFirstViewAppearence { 36 | contents = createRandomSizeItems(1000) 37 | } 38 | } 39 | 40 | override func numberOfSections(in collectionView: UICollectionView) -> Int { 41 | return 1 42 | } 43 | override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 44 | return contents.count 45 | } 46 | override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 47 | return collectionView.dequeueReusableCell(withReuseIdentifier: "SampleViewCell", for: indexPath) 48 | } 49 | override func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) { 50 | (cell as? SampleViewCell)?.content = contents[indexPath.item] 51 | } 52 | override func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, originalItemSizeAt indexPath: IndexPath) -> CGSize { 53 | let content = contents[indexPath.item] 54 | return CGSize(width: CGFloat(content.width), height: CGFloat(content.height)) 55 | } 56 | 57 | // MARK: - Private methods 58 | 59 | private func createRandomSizeItems(_ count: Int) -> [SampleContent] { 60 | var source: Array = [] 61 | for i in 0.. [SampleContent] { 71 | return [ 72 | SampleContent(width: 300, height: 300), 73 | SampleContent(width: 400, height: 300), 74 | SampleContent(width: 400, height: 300), 75 | SampleContent(width: 400, height: 200), 76 | SampleContent(width: 400, height: 300), 77 | SampleContent(width: 400, height: 300), 78 | SampleContent(width: 400, height: 300), 79 | SampleContent(width: 400, height: 300), 80 | SampleContent(width: 400, height: 300), 81 | SampleContent(width: 400, height: 300), 82 | SampleContent(width: 400, height: 200), 83 | SampleContent(width: 400, height: 300), 84 | SampleContent(width: 400, height: 300), 85 | SampleContent(width: 400, height: 300), 86 | SampleContent(width: 400, height: 300), 87 | SampleContent(width: 400, height: 300), 88 | SampleContent(width: 400, height: 300), 89 | SampleContent(width: 400, height: 200), 90 | SampleContent(width: 400, height: 300), 91 | SampleContent(width: 200, height: 300), 92 | SampleContent(width: 200, height: 300), 93 | SampleContent(width: 200, height: 300), 94 | SampleContent(width: 200, height: 300), 95 | SampleContent(width: 400, height: 300), 96 | SampleContent(width: 400, height: 200), 97 | SampleContent(width: 400, height: 300), 98 | SampleContent(width: 400, height: 300), 99 | SampleContent(width: 400, height: 300), 100 | SampleContent(width: 400, height: 300) 101 | ] 102 | } 103 | } 104 | 105 | class SampleViewCell: UICollectionViewCell { 106 | private lazy var imageView: UIImageView = { 107 | let view = UIImageView() 108 | view.clipsToBounds = true 109 | view.contentMode = .scaleAspectFill 110 | view.translatesAutoresizingMaskIntoConstraints = false 111 | return view 112 | }() 113 | 114 | var content: SampleContent? { 115 | didSet { 116 | if let url = content?.url { 117 | imageView.image = UIImage(named: url) 118 | } 119 | } 120 | } 121 | 122 | override init(frame: CGRect) { 123 | super.init(frame: frame) 124 | 125 | contentView.addSubview(imageView) 126 | NSLayoutConstraint.activate([ 127 | imageView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor), 128 | imageView.topAnchor.constraint(equalTo: contentView.topAnchor), 129 | imageView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor), 130 | imageView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor)]) 131 | } 132 | required init?(coder aDecoder: NSCoder) { 133 | super.init(coder: aDecoder) 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/IrregularCollectionUIKit-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | Launch Screen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UIStatusBarHidden 36 | 37 | UISupportedInterfaceOrientations 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationLandscapeLeft 41 | UIInterfaceOrientationLandscapeRight 42 | 43 | UISupportedInterfaceOrientations~ipad 44 | 45 | UIInterfaceOrientationPortrait 46 | UIInterfaceOrientationPortraitUpsideDown 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/IrregularCollectionUIKit-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/IrregularCollectionUIKit_Example-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Launch Screen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/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 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Resources/img/201499971412727010.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/Example/IrregularCollectionUIKit/Resources/img/201499971412727010.jpg -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Resources/img/20160408110556_11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/Example/IrregularCollectionUIKit/Resources/img/20160408110556_11.jpg -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Resources/img/201606100719471127_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/Example/IrregularCollectionUIKit/Resources/img/201606100719471127_1.jpg -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Resources/img/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/Example/IrregularCollectionUIKit/Resources/img/7.jpg -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Resources/img/99763_62164_3159.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/Example/IrregularCollectionUIKit/Resources/img/99763_62164_3159.jpg -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Resources/img/R1280x0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/Example/IrregularCollectionUIKit/Resources/img/R1280x0.jpg -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Resources/img/article_20150904-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/Example/IrregularCollectionUIKit/Resources/img/article_20150904-1.jpg -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Resources/img/channelProfileView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/Example/IrregularCollectionUIKit/Resources/img/channelProfileView.png -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/Resources/img/img_20150502111148_a5d91d53.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/Example/IrregularCollectionUIKit/Resources/img/img_20150502111148_a5d91d53.jpg -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/SampleContent.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SampleContent.swift 3 | // IrregularCollectionUIKit_Example 4 | // 5 | // Created by pisces on 9/17/16. 6 | // Copyright © 2016 pisces. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class SampleContent: NSObject, IrregularSizeObject { 12 | var commentCount: Int = 0 13 | var height: Int = 0 14 | var type: Int = 0 15 | var width: Int = 0 16 | var channelID: String? 17 | var contentID: String? 18 | var thumb: String? 19 | var url: String? 20 | var userID: String? 21 | var thumbHeaders: NSData? 22 | var urlHeaders: NSData? 23 | 24 | init(width: Int, height: Int) { 25 | self.width = width 26 | self.height = height 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/IrregularCollectionUIKit/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by Steve Kim on 09/17/2016. 6 | // Copyright (c) 2016-2017 Steve Kim. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "DemoAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([DemoAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '8.0' 2 | inhibit_all_warnings! 3 | 4 | target 'IrregularCollectionUIKit_Example' do 5 | pod 'IrregularCollectionUIKit', :path => '../' 6 | 7 | target 'IrregularCollectionUIKit_Tests' do 8 | inherit! :search_paths 9 | 10 | 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - IrregularCollectionUIKit (2.0.0) 3 | 4 | DEPENDENCIES: 5 | - IrregularCollectionUIKit (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | IrregularCollectionUIKit: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | IrregularCollectionUIKit: 4c26f1894cf244002e088516d01c14465d9f7a0c 13 | 14 | PODFILE CHECKSUM: 2f0a7f1a15fec6b717df38f75270ef7dde869940 15 | 16 | COCOAPODS: 1.2.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/IrregularCollectionUIKit/IrregularCollectionUIKit.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/IrregularCollectionUIKit.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/IrregularCollectionUIKit/IrregularCollectionViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/IrregularCollectionViewController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/IrregularCollectionUIKit/IrregularCollectionViewLayout.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/IrregularCollectionViewLayout.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/IrregularCollectionUIKit/IrregularLayoutAttributesManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/IrregularLayoutAttributesManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/IrregularCollectionUIKit/PropertyManagedViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/PropertyManagedViewController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/IrregularCollectionUIKit/IrregularCollectionUIKit.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/IrregularCollectionUIKit.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/IrregularCollectionUIKit/IrregularCollectionViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/IrregularCollectionViewController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/IrregularCollectionUIKit/IrregularCollectionViewLayout.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/IrregularCollectionViewLayout.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/IrregularCollectionUIKit/IrregularLayoutAttributesManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/IrregularLayoutAttributesManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/IrregularCollectionUIKit/PropertyManagedViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../../IrregularCollectionUIKit/Classes/PropertyManagedViewController.h -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/IrregularCollectionUIKit.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "IrregularCollectionUIKit", 3 | "version": "2.0.0", 4 | "summary": "A short description of IrregularCollectionUIKit.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/pisces/IrregularCollectionUIKit", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Steve Kim": "hh963103@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/pisces/IrregularCollectionUIKit.git", 16 | "tag": "2.0.0" 17 | }, 18 | "platforms": { 19 | "ios": "7.0" 20 | }, 21 | "source_files": "IrregularCollectionUIKit/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - IrregularCollectionUIKit (2.0.0) 3 | 4 | DEPENDENCIES: 5 | - IrregularCollectionUIKit (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | IrregularCollectionUIKit: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | IrregularCollectionUIKit: 4c26f1894cf244002e088516d01c14465d9f7a0c 13 | 14 | PODFILE CHECKSUM: 2f0a7f1a15fec6b717df38f75270ef7dde869940 15 | 16 | COCOAPODS: 1.2.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 22E9009160536D66EC4FA35CD0D24EA9 /* PropertyManagedViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = B23FBD7362D504B421EAC431B9E3D310 /* PropertyManagedViewController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 423F5D99575E51DDD9DD5CD0F7057B93 /* Pods-IrregularCollectionUIKit_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F6D8361B1F74F9BAAFA800004CD83D1C /* Pods-IrregularCollectionUIKit_Example-dummy.m */; }; 12 | 5AA635CF0440D66F5E3B941C9E29CFE4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 13 | 6EA9DA0882253F7B42C9042B9CEDD1AB /* IrregularCollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC4108684A81AFB9D8CA24E395F333C4 /* IrregularCollectionViewController.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; 14 | 7B3A5A2FCCC2C7DE1ABE517C4413E951 /* Pods-IrregularCollectionUIKit_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = EA0DF5F00D46B73CD7BB9D6C7D7F61BE /* Pods-IrregularCollectionUIKit_Tests-dummy.m */; }; 15 | 7C35832E46115CC5B8F6EAB471E4EF3F /* IrregularCollectionViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 10E948861C5883693397E13865B400A5 /* IrregularCollectionViewController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | 8E7AA4772163C373A8272532C40ADFB6 /* IrregularCollectionViewLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 2CF2D95D3B7776885C52BF09B3845E61 /* IrregularCollectionViewLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | 9422B800A58AFE6CC6A5214B7054BA25 /* IrregularLayoutAttributesManager.m in Sources */ = {isa = PBXBuildFile; fileRef = F03583322AB54A03F99AFDB498EA3456 /* IrregularLayoutAttributesManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; 18 | B0DE1595F0CBAB9B6CE8071447A09F78 /* IrregularLayoutAttributesManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CE75CB68F87AD4F5487EC2779DB07D0 /* IrregularLayoutAttributesManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | B39CED32627BB007BD6E172BE28588ED /* IrregularCollectionUIKit-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 01F2B01D7C02C7E1984A9DFFEEF70D85 /* IrregularCollectionUIKit-dummy.m */; }; 20 | BB96693D340171FCA54ACC777FA19D88 /* PropertyManagedViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 56123CA4581D47A8CE315A40DD5942CB /* PropertyManagedViewController.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; 21 | C695F5F38F75CDB401168A334AFDB186 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 22 | D022506E208821C117584568F56D47E2 /* IrregularCollectionViewLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = E19E0A40D903CF789EE4C3D4DED5F0BC /* IrregularCollectionViewLayout.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; 23 | EADDEEEF719C246A41A291450810624B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 24 | F99CCD1987415C2E8B6904F08F458181 /* IrregularCollectionUIKit.h in Headers */ = {isa = PBXBuildFile; fileRef = C81768B1994774B2E71DC1A84E0D01EE /* IrregularCollectionUIKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 1264E3902093D62CCA35DC6DBBEBFBF3 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 203FC91ECA773484E750B2FF6AD62194; 33 | remoteInfo = IrregularCollectionUIKit; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 01F2B01D7C02C7E1984A9DFFEEF70D85 /* IrregularCollectionUIKit-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "IrregularCollectionUIKit-dummy.m"; sourceTree = ""; }; 39 | 10E948861C5883693397E13865B400A5 /* IrregularCollectionViewController.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = IrregularCollectionViewController.h; sourceTree = ""; }; 40 | 1556481838B121EF8A97DE4233F43A80 /* Pods-IrregularCollectionUIKit_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-IrregularCollectionUIKit_Tests-frameworks.sh"; sourceTree = ""; }; 41 | 1807DE4C373731B4B9D0B00D775E59F6 /* libPods-IrregularCollectionUIKit_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-IrregularCollectionUIKit_Tests.a"; path = "libPods-IrregularCollectionUIKit_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 26BD2E4112FC345DA97C0B57E5C87A5E /* Pods-IrregularCollectionUIKit_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-IrregularCollectionUIKit_Tests.debug.xcconfig"; sourceTree = ""; }; 43 | 2CF2D95D3B7776885C52BF09B3845E61 /* IrregularCollectionViewLayout.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = IrregularCollectionViewLayout.h; sourceTree = ""; }; 44 | 3DE72A2A159297EE2DDBC1FC6A7E6C26 /* Pods-IrregularCollectionUIKit_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-IrregularCollectionUIKit_Tests-resources.sh"; sourceTree = ""; }; 45 | 3DF247B1C179F4703629B8BBA0B12E7E /* libPods-IrregularCollectionUIKit_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-IrregularCollectionUIKit_Example.a"; path = "libPods-IrregularCollectionUIKit_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 48B1950D613855FEAA49D17A7371ABDA /* Pods-IrregularCollectionUIKit_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-IrregularCollectionUIKit_Example-resources.sh"; sourceTree = ""; }; 47 | 4ECE28F86C5AD17210D161F310A92069 /* Pods-IrregularCollectionUIKit_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-IrregularCollectionUIKit_Example.release.xcconfig"; sourceTree = ""; }; 48 | 56123CA4581D47A8CE315A40DD5942CB /* PropertyManagedViewController.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = PropertyManagedViewController.m; sourceTree = ""; }; 49 | 5CE75CB68F87AD4F5487EC2779DB07D0 /* IrregularLayoutAttributesManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = IrregularLayoutAttributesManager.h; sourceTree = ""; }; 50 | 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; }; 51 | 69D3B58357A6CE7A274E5D5A1EF7FCE7 /* libIrregularCollectionUIKit.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libIrregularCollectionUIKit.a; path = libIrregularCollectionUIKit.a; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 72EBA594F33D5574DA872E5E6E183B3C /* Pods-IrregularCollectionUIKit_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-IrregularCollectionUIKit_Example-frameworks.sh"; sourceTree = ""; }; 53 | 74E0E6246A6CE9589513EF068757974E /* Pods-IrregularCollectionUIKit_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-IrregularCollectionUIKit_Tests-acknowledgements.plist"; sourceTree = ""; }; 54 | 803BE624DAD9F60D32FE069EDFCB7CA4 /* Pods-IrregularCollectionUIKit_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-IrregularCollectionUIKit_Example.debug.xcconfig"; sourceTree = ""; }; 55 | 933E64B05EF4EF0202611FA2E5DBB1EE /* Pods-IrregularCollectionUIKit_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-IrregularCollectionUIKit_Tests-acknowledgements.markdown"; sourceTree = ""; }; 56 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 57 | 9C9BD8EBAF750CFE32D83D6DD3E6C1F8 /* Pods-IrregularCollectionUIKit_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-IrregularCollectionUIKit_Example-acknowledgements.plist"; sourceTree = ""; }; 58 | B23FBD7362D504B421EAC431B9E3D310 /* PropertyManagedViewController.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = PropertyManagedViewController.h; sourceTree = ""; }; 59 | BC4108684A81AFB9D8CA24E395F333C4 /* IrregularCollectionViewController.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = IrregularCollectionViewController.m; sourceTree = ""; }; 60 | BF151AEA0713F5C551CE6E274533EE88 /* Pods-IrregularCollectionUIKit_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-IrregularCollectionUIKit_Tests.release.xcconfig"; sourceTree = ""; }; 61 | C5DCC3FAD7AE88CFD2439DBB5E46277D /* IrregularCollectionUIKit.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = IrregularCollectionUIKit.xcconfig; sourceTree = ""; }; 62 | C81768B1994774B2E71DC1A84E0D01EE /* IrregularCollectionUIKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = IrregularCollectionUIKit.h; sourceTree = ""; }; 63 | D9E28948858D739FEC347A0EBF459925 /* Pods-IrregularCollectionUIKit_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-IrregularCollectionUIKit_Example-acknowledgements.markdown"; sourceTree = ""; }; 64 | E19E0A40D903CF789EE4C3D4DED5F0BC /* IrregularCollectionViewLayout.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = IrregularCollectionViewLayout.m; sourceTree = ""; }; 65 | E2D3CFB9FDE13D90C1773048EFDAD05F /* IrregularCollectionUIKit-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "IrregularCollectionUIKit-prefix.pch"; sourceTree = ""; }; 66 | EA0DF5F00D46B73CD7BB9D6C7D7F61BE /* Pods-IrregularCollectionUIKit_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-IrregularCollectionUIKit_Tests-dummy.m"; sourceTree = ""; }; 67 | F03583322AB54A03F99AFDB498EA3456 /* IrregularLayoutAttributesManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = IrregularLayoutAttributesManager.m; sourceTree = ""; }; 68 | F6D8361B1F74F9BAAFA800004CD83D1C /* Pods-IrregularCollectionUIKit_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-IrregularCollectionUIKit_Example-dummy.m"; sourceTree = ""; }; 69 | /* End PBXFileReference section */ 70 | 71 | /* Begin PBXFrameworksBuildPhase section */ 72 | 3EFDE47B21406B56D8CE1E0E74EF9A2D /* Frameworks */ = { 73 | isa = PBXFrameworksBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | 5AA635CF0440D66F5E3B941C9E29CFE4 /* Foundation.framework in Frameworks */, 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | 6880867447A911AADF119C74C05A7265 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | C695F5F38F75CDB401168A334AFDB186 /* Foundation.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | D3F4F3C0205680DEAD97060B530721F0 /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | EADDEEEF719C246A41A291450810624B /* Foundation.framework in Frameworks */, 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | /* End PBXFrameworksBuildPhase section */ 97 | 98 | /* Begin PBXGroup section */ 99 | 32A1DFA4BD71A65097B597F888AE2D6A /* Targets Support Files */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 69234F414715142E7A43227F55AC0D46 /* Pods-IrregularCollectionUIKit_Example */, 103 | 97ABC3A8E18E4E13F0FCE055CE86A3FF /* Pods-IrregularCollectionUIKit_Tests */, 104 | ); 105 | name = "Targets Support Files"; 106 | sourceTree = ""; 107 | }; 108 | 398DE834FF65BFA15EA77D6F432A4828 /* IrregularCollectionUIKit */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | FC292D27713D0F52ECEFBD290D6D5F1F /* IrregularCollectionUIKit */, 112 | ACE85B9EE3DEDE7181F777FC5561B099 /* Support Files */, 113 | ); 114 | name = IrregularCollectionUIKit; 115 | path = ../..; 116 | sourceTree = ""; 117 | }; 118 | 69234F414715142E7A43227F55AC0D46 /* Pods-IrregularCollectionUIKit_Example */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | D9E28948858D739FEC347A0EBF459925 /* Pods-IrregularCollectionUIKit_Example-acknowledgements.markdown */, 122 | 9C9BD8EBAF750CFE32D83D6DD3E6C1F8 /* Pods-IrregularCollectionUIKit_Example-acknowledgements.plist */, 123 | F6D8361B1F74F9BAAFA800004CD83D1C /* Pods-IrregularCollectionUIKit_Example-dummy.m */, 124 | 72EBA594F33D5574DA872E5E6E183B3C /* Pods-IrregularCollectionUIKit_Example-frameworks.sh */, 125 | 48B1950D613855FEAA49D17A7371ABDA /* Pods-IrregularCollectionUIKit_Example-resources.sh */, 126 | 803BE624DAD9F60D32FE069EDFCB7CA4 /* Pods-IrregularCollectionUIKit_Example.debug.xcconfig */, 127 | 4ECE28F86C5AD17210D161F310A92069 /* Pods-IrregularCollectionUIKit_Example.release.xcconfig */, 128 | ); 129 | name = "Pods-IrregularCollectionUIKit_Example"; 130 | path = "Target Support Files/Pods-IrregularCollectionUIKit_Example"; 131 | sourceTree = ""; 132 | }; 133 | 6D1B5EC7E27298B2EF52174C57D13C51 /* Classes */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | C81768B1994774B2E71DC1A84E0D01EE /* IrregularCollectionUIKit.h */, 137 | 10E948861C5883693397E13865B400A5 /* IrregularCollectionViewController.h */, 138 | BC4108684A81AFB9D8CA24E395F333C4 /* IrregularCollectionViewController.m */, 139 | 2CF2D95D3B7776885C52BF09B3845E61 /* IrregularCollectionViewLayout.h */, 140 | E19E0A40D903CF789EE4C3D4DED5F0BC /* IrregularCollectionViewLayout.m */, 141 | 5CE75CB68F87AD4F5487EC2779DB07D0 /* IrregularLayoutAttributesManager.h */, 142 | F03583322AB54A03F99AFDB498EA3456 /* IrregularLayoutAttributesManager.m */, 143 | B23FBD7362D504B421EAC431B9E3D310 /* PropertyManagedViewController.h */, 144 | 56123CA4581D47A8CE315A40DD5942CB /* PropertyManagedViewController.m */, 145 | ); 146 | name = Classes; 147 | path = Classes; 148 | sourceTree = ""; 149 | }; 150 | 7DB346D0F39D3F0E887471402A8071AB = { 151 | isa = PBXGroup; 152 | children = ( 153 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 154 | C2F27F7205FEB46F35C7653EA76D4FF7 /* Development Pods */, 155 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 156 | B1DB85CA47901595219B579F78F9EB06 /* Products */, 157 | 32A1DFA4BD71A65097B597F888AE2D6A /* Targets Support Files */, 158 | ); 159 | sourceTree = ""; 160 | }; 161 | 97ABC3A8E18E4E13F0FCE055CE86A3FF /* Pods-IrregularCollectionUIKit_Tests */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 933E64B05EF4EF0202611FA2E5DBB1EE /* Pods-IrregularCollectionUIKit_Tests-acknowledgements.markdown */, 165 | 74E0E6246A6CE9589513EF068757974E /* Pods-IrregularCollectionUIKit_Tests-acknowledgements.plist */, 166 | EA0DF5F00D46B73CD7BB9D6C7D7F61BE /* Pods-IrregularCollectionUIKit_Tests-dummy.m */, 167 | 1556481838B121EF8A97DE4233F43A80 /* Pods-IrregularCollectionUIKit_Tests-frameworks.sh */, 168 | 3DE72A2A159297EE2DDBC1FC6A7E6C26 /* Pods-IrregularCollectionUIKit_Tests-resources.sh */, 169 | 26BD2E4112FC345DA97C0B57E5C87A5E /* Pods-IrregularCollectionUIKit_Tests.debug.xcconfig */, 170 | BF151AEA0713F5C551CE6E274533EE88 /* Pods-IrregularCollectionUIKit_Tests.release.xcconfig */, 171 | ); 172 | name = "Pods-IrregularCollectionUIKit_Tests"; 173 | path = "Target Support Files/Pods-IrregularCollectionUIKit_Tests"; 174 | sourceTree = ""; 175 | }; 176 | ACE85B9EE3DEDE7181F777FC5561B099 /* Support Files */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | C5DCC3FAD7AE88CFD2439DBB5E46277D /* IrregularCollectionUIKit.xcconfig */, 180 | 01F2B01D7C02C7E1984A9DFFEEF70D85 /* IrregularCollectionUIKit-dummy.m */, 181 | E2D3CFB9FDE13D90C1773048EFDAD05F /* IrregularCollectionUIKit-prefix.pch */, 182 | ); 183 | name = "Support Files"; 184 | path = "Example/Pods/Target Support Files/IrregularCollectionUIKit"; 185 | sourceTree = ""; 186 | }; 187 | B1DB85CA47901595219B579F78F9EB06 /* Products */ = { 188 | isa = PBXGroup; 189 | children = ( 190 | 69D3B58357A6CE7A274E5D5A1EF7FCE7 /* libIrregularCollectionUIKit.a */, 191 | 3DF247B1C179F4703629B8BBA0B12E7E /* libPods-IrregularCollectionUIKit_Example.a */, 192 | 1807DE4C373731B4B9D0B00D775E59F6 /* libPods-IrregularCollectionUIKit_Tests.a */, 193 | ); 194 | name = Products; 195 | sourceTree = ""; 196 | }; 197 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 198 | isa = PBXGroup; 199 | children = ( 200 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 201 | ); 202 | name = Frameworks; 203 | sourceTree = ""; 204 | }; 205 | C2F27F7205FEB46F35C7653EA76D4FF7 /* Development Pods */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | 398DE834FF65BFA15EA77D6F432A4828 /* IrregularCollectionUIKit */, 209 | ); 210 | name = "Development Pods"; 211 | sourceTree = ""; 212 | }; 213 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 214 | isa = PBXGroup; 215 | children = ( 216 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 217 | ); 218 | name = iOS; 219 | sourceTree = ""; 220 | }; 221 | FC292D27713D0F52ECEFBD290D6D5F1F /* IrregularCollectionUIKit */ = { 222 | isa = PBXGroup; 223 | children = ( 224 | 6D1B5EC7E27298B2EF52174C57D13C51 /* Classes */, 225 | ); 226 | name = IrregularCollectionUIKit; 227 | path = IrregularCollectionUIKit; 228 | sourceTree = ""; 229 | }; 230 | /* End PBXGroup section */ 231 | 232 | /* Begin PBXHeadersBuildPhase section */ 233 | 8AD77908D0FD9A572C1270ED19AE0622 /* Headers */ = { 234 | isa = PBXHeadersBuildPhase; 235 | buildActionMask = 2147483647; 236 | files = ( 237 | F99CCD1987415C2E8B6904F08F458181 /* IrregularCollectionUIKit.h in Headers */, 238 | 7C35832E46115CC5B8F6EAB471E4EF3F /* IrregularCollectionViewController.h in Headers */, 239 | 8E7AA4772163C373A8272532C40ADFB6 /* IrregularCollectionViewLayout.h in Headers */, 240 | B0DE1595F0CBAB9B6CE8071447A09F78 /* IrregularLayoutAttributesManager.h in Headers */, 241 | 22E9009160536D66EC4FA35CD0D24EA9 /* PropertyManagedViewController.h in Headers */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | /* End PBXHeadersBuildPhase section */ 246 | 247 | /* Begin PBXNativeTarget section */ 248 | 203FC91ECA773484E750B2FF6AD62194 /* IrregularCollectionUIKit */ = { 249 | isa = PBXNativeTarget; 250 | buildConfigurationList = B3C6578C9D4AB748AC81DE345F3BDE85 /* Build configuration list for PBXNativeTarget "IrregularCollectionUIKit" */; 251 | buildPhases = ( 252 | 12BB08ADA6460787D34A5E2C61D88BC3 /* Sources */, 253 | 3EFDE47B21406B56D8CE1E0E74EF9A2D /* Frameworks */, 254 | 8AD77908D0FD9A572C1270ED19AE0622 /* Headers */, 255 | ); 256 | buildRules = ( 257 | ); 258 | dependencies = ( 259 | ); 260 | name = IrregularCollectionUIKit; 261 | productName = IrregularCollectionUIKit; 262 | productReference = 69D3B58357A6CE7A274E5D5A1EF7FCE7 /* libIrregularCollectionUIKit.a */; 263 | productType = "com.apple.product-type.library.static"; 264 | }; 265 | 85CBB607103DD0C74D82A6A0660F9E31 /* Pods-IrregularCollectionUIKit_Tests */ = { 266 | isa = PBXNativeTarget; 267 | buildConfigurationList = 0E44CA90B198214FB2CA108C401CCE66 /* Build configuration list for PBXNativeTarget "Pods-IrregularCollectionUIKit_Tests" */; 268 | buildPhases = ( 269 | 198DA9DEE3D838E94AD85F36BF452188 /* Sources */, 270 | 6880867447A911AADF119C74C05A7265 /* Frameworks */, 271 | ); 272 | buildRules = ( 273 | ); 274 | dependencies = ( 275 | ); 276 | name = "Pods-IrregularCollectionUIKit_Tests"; 277 | productName = "Pods-IrregularCollectionUIKit_Tests"; 278 | productReference = 1807DE4C373731B4B9D0B00D775E59F6 /* libPods-IrregularCollectionUIKit_Tests.a */; 279 | productType = "com.apple.product-type.library.static"; 280 | }; 281 | 92E238CC0E2FB26B70180E0F4B24E9C6 /* Pods-IrregularCollectionUIKit_Example */ = { 282 | isa = PBXNativeTarget; 283 | buildConfigurationList = CA2EA52A088DC0DE2C9C4524068DF0B6 /* Build configuration list for PBXNativeTarget "Pods-IrregularCollectionUIKit_Example" */; 284 | buildPhases = ( 285 | 625ECD44430BB7D4343F3DE2C977F735 /* Sources */, 286 | D3F4F3C0205680DEAD97060B530721F0 /* Frameworks */, 287 | ); 288 | buildRules = ( 289 | ); 290 | dependencies = ( 291 | 38FADE0162DF2A0D2444227721222BCC /* PBXTargetDependency */, 292 | ); 293 | name = "Pods-IrregularCollectionUIKit_Example"; 294 | productName = "Pods-IrregularCollectionUIKit_Example"; 295 | productReference = 3DF247B1C179F4703629B8BBA0B12E7E /* libPods-IrregularCollectionUIKit_Example.a */; 296 | productType = "com.apple.product-type.library.static"; 297 | }; 298 | /* End PBXNativeTarget section */ 299 | 300 | /* Begin PBXProject section */ 301 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 302 | isa = PBXProject; 303 | attributes = { 304 | LastSwiftUpdateCheck = 0830; 305 | LastUpgradeCheck = 0700; 306 | }; 307 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 308 | compatibilityVersion = "Xcode 3.2"; 309 | developmentRegion = English; 310 | hasScannedForEncodings = 0; 311 | knownRegions = ( 312 | en, 313 | ); 314 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 315 | productRefGroup = B1DB85CA47901595219B579F78F9EB06 /* Products */; 316 | projectDirPath = ""; 317 | projectRoot = ""; 318 | targets = ( 319 | 203FC91ECA773484E750B2FF6AD62194 /* IrregularCollectionUIKit */, 320 | 92E238CC0E2FB26B70180E0F4B24E9C6 /* Pods-IrregularCollectionUIKit_Example */, 321 | 85CBB607103DD0C74D82A6A0660F9E31 /* Pods-IrregularCollectionUIKit_Tests */, 322 | ); 323 | }; 324 | /* End PBXProject section */ 325 | 326 | /* Begin PBXSourcesBuildPhase section */ 327 | 12BB08ADA6460787D34A5E2C61D88BC3 /* Sources */ = { 328 | isa = PBXSourcesBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | B39CED32627BB007BD6E172BE28588ED /* IrregularCollectionUIKit-dummy.m in Sources */, 332 | 6EA9DA0882253F7B42C9042B9CEDD1AB /* IrregularCollectionViewController.m in Sources */, 333 | D022506E208821C117584568F56D47E2 /* IrregularCollectionViewLayout.m in Sources */, 334 | 9422B800A58AFE6CC6A5214B7054BA25 /* IrregularLayoutAttributesManager.m in Sources */, 335 | BB96693D340171FCA54ACC777FA19D88 /* PropertyManagedViewController.m in Sources */, 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | 198DA9DEE3D838E94AD85F36BF452188 /* Sources */ = { 340 | isa = PBXSourcesBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | 7B3A5A2FCCC2C7DE1ABE517C4413E951 /* Pods-IrregularCollectionUIKit_Tests-dummy.m in Sources */, 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | }; 347 | 625ECD44430BB7D4343F3DE2C977F735 /* Sources */ = { 348 | isa = PBXSourcesBuildPhase; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | 423F5D99575E51DDD9DD5CD0F7057B93 /* Pods-IrregularCollectionUIKit_Example-dummy.m in Sources */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | /* End PBXSourcesBuildPhase section */ 356 | 357 | /* Begin PBXTargetDependency section */ 358 | 38FADE0162DF2A0D2444227721222BCC /* PBXTargetDependency */ = { 359 | isa = PBXTargetDependency; 360 | name = IrregularCollectionUIKit; 361 | target = 203FC91ECA773484E750B2FF6AD62194 /* IrregularCollectionUIKit */; 362 | targetProxy = 1264E3902093D62CCA35DC6DBBEBFBF3 /* PBXContainerItemProxy */; 363 | }; 364 | /* End PBXTargetDependency section */ 365 | 366 | /* Begin XCBuildConfiguration section */ 367 | 34FE9531DA9AF2820790339988D5FF41 /* Release */ = { 368 | isa = XCBuildConfiguration; 369 | buildSettings = { 370 | ALWAYS_SEARCH_USER_PATHS = NO; 371 | CLANG_ANALYZER_NONNULL = YES; 372 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 373 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 374 | CLANG_CXX_LIBRARY = "libc++"; 375 | CLANG_ENABLE_MODULES = YES; 376 | CLANG_ENABLE_OBJC_ARC = YES; 377 | CLANG_WARN_BOOL_CONVERSION = YES; 378 | CLANG_WARN_CONSTANT_CONVERSION = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 380 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 381 | CLANG_WARN_EMPTY_BODY = YES; 382 | CLANG_WARN_ENUM_CONVERSION = YES; 383 | CLANG_WARN_INFINITE_RECURSION = YES; 384 | CLANG_WARN_INT_CONVERSION = YES; 385 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 386 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 387 | CLANG_WARN_UNREACHABLE_CODE = YES; 388 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 389 | CODE_SIGNING_REQUIRED = NO; 390 | COPY_PHASE_STRIP = YES; 391 | ENABLE_NS_ASSERTIONS = NO; 392 | GCC_C_LANGUAGE_STANDARD = gnu99; 393 | GCC_PREPROCESSOR_DEFINITIONS = ( 394 | "POD_CONFIGURATION_RELEASE=1", 395 | "$(inherited)", 396 | ); 397 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 398 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 399 | GCC_WARN_UNDECLARED_SELECTOR = YES; 400 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 401 | GCC_WARN_UNUSED_FUNCTION = YES; 402 | GCC_WARN_UNUSED_VARIABLE = YES; 403 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 404 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 405 | STRIP_INSTALLED_PRODUCT = NO; 406 | SYMROOT = "${SRCROOT}/../build"; 407 | VALIDATE_PRODUCT = YES; 408 | }; 409 | name = Release; 410 | }; 411 | 47DF05A1A07455BBBC935FB456578417 /* Release */ = { 412 | isa = XCBuildConfiguration; 413 | baseConfigurationReference = C5DCC3FAD7AE88CFD2439DBB5E46277D /* IrregularCollectionUIKit.xcconfig */; 414 | buildSettings = { 415 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 416 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 417 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 418 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 419 | ENABLE_STRICT_OBJC_MSGSEND = YES; 420 | GCC_NO_COMMON_BLOCKS = YES; 421 | GCC_PREFIX_HEADER = "Target Support Files/IrregularCollectionUIKit/IrregularCollectionUIKit-prefix.pch"; 422 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 423 | MTL_ENABLE_DEBUG_INFO = NO; 424 | OTHER_LDFLAGS = ""; 425 | OTHER_LIBTOOLFLAGS = ""; 426 | PRIVATE_HEADERS_FOLDER_PATH = ""; 427 | PRODUCT_NAME = "$(TARGET_NAME)"; 428 | PUBLIC_HEADERS_FOLDER_PATH = ""; 429 | SDKROOT = iphoneos; 430 | SKIP_INSTALL = YES; 431 | SWIFT_VERSION = 3.0; 432 | }; 433 | name = Release; 434 | }; 435 | 8470DDAEBEA5D7C4ED54618076D07630 /* Debug */ = { 436 | isa = XCBuildConfiguration; 437 | baseConfigurationReference = C5DCC3FAD7AE88CFD2439DBB5E46277D /* IrregularCollectionUIKit.xcconfig */; 438 | buildSettings = { 439 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 440 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 441 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 442 | DEBUG_INFORMATION_FORMAT = dwarf; 443 | ENABLE_STRICT_OBJC_MSGSEND = YES; 444 | GCC_NO_COMMON_BLOCKS = YES; 445 | GCC_PREFIX_HEADER = "Target Support Files/IrregularCollectionUIKit/IrregularCollectionUIKit-prefix.pch"; 446 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 447 | MTL_ENABLE_DEBUG_INFO = YES; 448 | OTHER_LDFLAGS = ""; 449 | OTHER_LIBTOOLFLAGS = ""; 450 | PRIVATE_HEADERS_FOLDER_PATH = ""; 451 | PRODUCT_NAME = "$(TARGET_NAME)"; 452 | PUBLIC_HEADERS_FOLDER_PATH = ""; 453 | SDKROOT = iphoneos; 454 | SKIP_INSTALL = YES; 455 | SWIFT_VERSION = 3.0; 456 | }; 457 | name = Debug; 458 | }; 459 | C104F7F091290C3D1E248192F07FE689 /* Debug */ = { 460 | isa = XCBuildConfiguration; 461 | buildSettings = { 462 | ALWAYS_SEARCH_USER_PATHS = NO; 463 | CLANG_ANALYZER_NONNULL = YES; 464 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 465 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 466 | CLANG_CXX_LIBRARY = "libc++"; 467 | CLANG_ENABLE_MODULES = YES; 468 | CLANG_ENABLE_OBJC_ARC = YES; 469 | CLANG_WARN_BOOL_CONVERSION = YES; 470 | CLANG_WARN_CONSTANT_CONVERSION = YES; 471 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 472 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 473 | CLANG_WARN_EMPTY_BODY = YES; 474 | CLANG_WARN_ENUM_CONVERSION = YES; 475 | CLANG_WARN_INFINITE_RECURSION = YES; 476 | CLANG_WARN_INT_CONVERSION = YES; 477 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 478 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 479 | CLANG_WARN_UNREACHABLE_CODE = YES; 480 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 481 | CODE_SIGNING_REQUIRED = NO; 482 | COPY_PHASE_STRIP = NO; 483 | ENABLE_TESTABILITY = YES; 484 | GCC_C_LANGUAGE_STANDARD = gnu99; 485 | GCC_DYNAMIC_NO_PIC = NO; 486 | GCC_OPTIMIZATION_LEVEL = 0; 487 | GCC_PREPROCESSOR_DEFINITIONS = ( 488 | "POD_CONFIGURATION_DEBUG=1", 489 | "DEBUG=1", 490 | "$(inherited)", 491 | ); 492 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 493 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 494 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 495 | GCC_WARN_UNDECLARED_SELECTOR = YES; 496 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 497 | GCC_WARN_UNUSED_FUNCTION = YES; 498 | GCC_WARN_UNUSED_VARIABLE = YES; 499 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 500 | ONLY_ACTIVE_ARCH = YES; 501 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 502 | STRIP_INSTALLED_PRODUCT = NO; 503 | SYMROOT = "${SRCROOT}/../build"; 504 | }; 505 | name = Debug; 506 | }; 507 | C3FDD4EB28E8574454AF832FB7707EC3 /* Debug */ = { 508 | isa = XCBuildConfiguration; 509 | baseConfigurationReference = 26BD2E4112FC345DA97C0B57E5C87A5E /* Pods-IrregularCollectionUIKit_Tests.debug.xcconfig */; 510 | buildSettings = { 511 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 512 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 513 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 514 | DEBUG_INFORMATION_FORMAT = dwarf; 515 | ENABLE_STRICT_OBJC_MSGSEND = YES; 516 | GCC_NO_COMMON_BLOCKS = YES; 517 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 518 | MACH_O_TYPE = staticlib; 519 | MTL_ENABLE_DEBUG_INFO = YES; 520 | OTHER_LDFLAGS = ""; 521 | OTHER_LIBTOOLFLAGS = ""; 522 | PODS_ROOT = "$(SRCROOT)"; 523 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 524 | PRODUCT_NAME = "$(TARGET_NAME)"; 525 | SDKROOT = iphoneos; 526 | SKIP_INSTALL = YES; 527 | }; 528 | name = Debug; 529 | }; 530 | C9E579011A5CC5DE7AD239E4517417C1 /* Debug */ = { 531 | isa = XCBuildConfiguration; 532 | baseConfigurationReference = 803BE624DAD9F60D32FE069EDFCB7CA4 /* Pods-IrregularCollectionUIKit_Example.debug.xcconfig */; 533 | buildSettings = { 534 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 535 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 536 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 537 | DEBUG_INFORMATION_FORMAT = dwarf; 538 | ENABLE_STRICT_OBJC_MSGSEND = YES; 539 | GCC_NO_COMMON_BLOCKS = YES; 540 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 541 | MACH_O_TYPE = staticlib; 542 | MTL_ENABLE_DEBUG_INFO = YES; 543 | OTHER_LDFLAGS = ""; 544 | OTHER_LIBTOOLFLAGS = ""; 545 | PODS_ROOT = "$(SRCROOT)"; 546 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 547 | PRODUCT_NAME = "$(TARGET_NAME)"; 548 | SDKROOT = iphoneos; 549 | SKIP_INSTALL = YES; 550 | }; 551 | name = Debug; 552 | }; 553 | CF8C36C3ABD936F319B367AA9F702B31 /* Release */ = { 554 | isa = XCBuildConfiguration; 555 | baseConfigurationReference = 4ECE28F86C5AD17210D161F310A92069 /* Pods-IrregularCollectionUIKit_Example.release.xcconfig */; 556 | buildSettings = { 557 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 558 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 559 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 560 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 561 | ENABLE_STRICT_OBJC_MSGSEND = YES; 562 | GCC_NO_COMMON_BLOCKS = YES; 563 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 564 | MACH_O_TYPE = staticlib; 565 | MTL_ENABLE_DEBUG_INFO = NO; 566 | OTHER_LDFLAGS = ""; 567 | OTHER_LIBTOOLFLAGS = ""; 568 | PODS_ROOT = "$(SRCROOT)"; 569 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 570 | PRODUCT_NAME = "$(TARGET_NAME)"; 571 | SDKROOT = iphoneos; 572 | SKIP_INSTALL = YES; 573 | }; 574 | name = Release; 575 | }; 576 | F19B1EB06F633E898C798E17AE93C9BA /* Release */ = { 577 | isa = XCBuildConfiguration; 578 | baseConfigurationReference = BF151AEA0713F5C551CE6E274533EE88 /* Pods-IrregularCollectionUIKit_Tests.release.xcconfig */; 579 | buildSettings = { 580 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 581 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 582 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 583 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 584 | ENABLE_STRICT_OBJC_MSGSEND = YES; 585 | GCC_NO_COMMON_BLOCKS = YES; 586 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 587 | MACH_O_TYPE = staticlib; 588 | MTL_ENABLE_DEBUG_INFO = NO; 589 | OTHER_LDFLAGS = ""; 590 | OTHER_LIBTOOLFLAGS = ""; 591 | PODS_ROOT = "$(SRCROOT)"; 592 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 593 | PRODUCT_NAME = "$(TARGET_NAME)"; 594 | SDKROOT = iphoneos; 595 | SKIP_INSTALL = YES; 596 | }; 597 | name = Release; 598 | }; 599 | /* End XCBuildConfiguration section */ 600 | 601 | /* Begin XCConfigurationList section */ 602 | 0E44CA90B198214FB2CA108C401CCE66 /* Build configuration list for PBXNativeTarget "Pods-IrregularCollectionUIKit_Tests" */ = { 603 | isa = XCConfigurationList; 604 | buildConfigurations = ( 605 | C3FDD4EB28E8574454AF832FB7707EC3 /* Debug */, 606 | F19B1EB06F633E898C798E17AE93C9BA /* Release */, 607 | ); 608 | defaultConfigurationIsVisible = 0; 609 | defaultConfigurationName = Release; 610 | }; 611 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 612 | isa = XCConfigurationList; 613 | buildConfigurations = ( 614 | C104F7F091290C3D1E248192F07FE689 /* Debug */, 615 | 34FE9531DA9AF2820790339988D5FF41 /* Release */, 616 | ); 617 | defaultConfigurationIsVisible = 0; 618 | defaultConfigurationName = Release; 619 | }; 620 | B3C6578C9D4AB748AC81DE345F3BDE85 /* Build configuration list for PBXNativeTarget "IrregularCollectionUIKit" */ = { 621 | isa = XCConfigurationList; 622 | buildConfigurations = ( 623 | 8470DDAEBEA5D7C4ED54618076D07630 /* Debug */, 624 | 47DF05A1A07455BBBC935FB456578417 /* Release */, 625 | ); 626 | defaultConfigurationIsVisible = 0; 627 | defaultConfigurationName = Release; 628 | }; 629 | CA2EA52A088DC0DE2C9C4524068DF0B6 /* Build configuration list for PBXNativeTarget "Pods-IrregularCollectionUIKit_Example" */ = { 630 | isa = XCConfigurationList; 631 | buildConfigurations = ( 632 | C9E579011A5CC5DE7AD239E4517417C1 /* Debug */, 633 | CF8C36C3ABD936F319B367AA9F702B31 /* Release */, 634 | ); 635 | defaultConfigurationIsVisible = 0; 636 | defaultConfigurationName = Release; 637 | }; 638 | /* End XCConfigurationList section */ 639 | }; 640 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 641 | } 642 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/IrregularCollectionUIKit/IrregularCollectionUIKit-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_IrregularCollectionUIKit : NSObject 3 | @end 4 | @implementation PodsDummy_IrregularCollectionUIKit 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/IrregularCollectionUIKit/IrregularCollectionUIKit-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/IrregularCollectionUIKit/IrregularCollectionUIKit.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/IrregularCollectionUIKit 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/IrregularCollectionUIKit" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/IrregularCollectionUIKit" 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## IrregularCollectionUIKit 5 | 6 | Copyright (c) 2016-2017 Steve Kim 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-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_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) 2016-2017 Steve Kim <pisces@retrica.co> 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 | IrregularCollectionUIKit 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-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_IrregularCollectionUIKit_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_IrregularCollectionUIKit_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_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 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 91 | wait 92 | fi 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_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 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/IrregularCollectionUIKit" 3 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/IrregularCollectionUIKit" 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/IrregularCollectionUIKit" 5 | OTHER_LDFLAGS = $(inherited) -ObjC -l"IrregularCollectionUIKit" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Example/Pods-IrregularCollectionUIKit_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/IrregularCollectionUIKit" 3 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/IrregularCollectionUIKit" 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/IrregularCollectionUIKit" 5 | OTHER_LDFLAGS = $(inherited) -ObjC -l"IrregularCollectionUIKit" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_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-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_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-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_IrregularCollectionUIKit_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_IrregularCollectionUIKit_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_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 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 91 | wait 92 | fi 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_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 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/IrregularCollectionUIKit" 3 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/IrregularCollectionUIKit" 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/IrregularCollectionUIKit" 5 | OTHER_LDFLAGS = $(inherited) -ObjC 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-IrregularCollectionUIKit_Tests/Pods-IrregularCollectionUIKit_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/IrregularCollectionUIKit" 3 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/IrregularCollectionUIKit" 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/IrregularCollectionUIKit" 5 | OTHER_LDFLAGS = $(inherited) -ObjC 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Tests/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 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // IrregularCollectionUIKitTests.m 3 | // IrregularCollectionUIKitTests 4 | // 5 | // Created by Steve Kim on 09/17/2016. 6 | // Copyright (c) 2016-2017 Steve Kim. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint IrregularCollectionUIKit.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 = 'IrregularCollectionUIKit' 11 | s.version = '2.0.1' 12 | s.summary = 'Irregular Collection View Layout and Controller.' 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 = 'Irregular Collection View Layout and Controller' 21 | s.homepage = 'https://github.com/pisces/IrregularCollectionUIKit' 22 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 23 | s.license = { :type => 'MIT', :file => 'LICENSE' } 24 | s.author = { 'Steve Kim' => 'hh963103@gmail.com' } 25 | s.source = { :git => 'https://github.com/pisces/IrregularCollectionUIKit.git', :tag => s.version.to_s } 26 | # s.social_media_url = 'https://twitter.com/' 27 | 28 | s.ios.deployment_target = '7.0' 29 | 30 | s.source_files = 'IrregularCollectionUIKit/Classes/**/*' 31 | 32 | end 33 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 23F40AF71F7E8F0A000C605B /* IrregularCollectionUIKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 23F40AEE1F7E8F0A000C605B /* IrregularCollectionUIKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 23F40AF81F7E8F0A000C605B /* IrregularCollectionViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 23F40AEF1F7E8F0A000C605B /* IrregularCollectionViewController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 23F40AF91F7E8F0A000C605B /* IrregularCollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 23F40AF01F7E8F0A000C605B /* IrregularCollectionViewController.m */; }; 13 | 23F40AFA1F7E8F0A000C605B /* IrregularCollectionViewLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 23F40AF11F7E8F0A000C605B /* IrregularCollectionViewLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 23F40AFB1F7E8F0A000C605B /* IrregularCollectionViewLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 23F40AF21F7E8F0A000C605B /* IrregularCollectionViewLayout.m */; }; 15 | 23F40AFC1F7E8F0A000C605B /* IrregularLayoutAttributesManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 23F40AF31F7E8F0A000C605B /* IrregularLayoutAttributesManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | 23F40AFD1F7E8F0A000C605B /* IrregularLayoutAttributesManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 23F40AF41F7E8F0A000C605B /* IrregularLayoutAttributesManager.m */; }; 17 | 23F40AFE1F7E8F0A000C605B /* PropertyManagedViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 23F40AF51F7E8F0A000C605B /* PropertyManagedViewController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | 23F40AFF1F7E8F0A000C605B /* PropertyManagedViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 23F40AF61F7E8F0A000C605B /* PropertyManagedViewController.m */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | 23F40AD41F7E8E34000C605B /* IrregularCollectionUIKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = IrregularCollectionUIKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 23F40AD81F7E8E34000C605B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 24 | 23F40AEE1F7E8F0A000C605B /* IrregularCollectionUIKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IrregularCollectionUIKit.h; path = Classes/IrregularCollectionUIKit.h; sourceTree = ""; }; 25 | 23F40AEF1F7E8F0A000C605B /* IrregularCollectionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IrregularCollectionViewController.h; path = Classes/IrregularCollectionViewController.h; sourceTree = ""; }; 26 | 23F40AF01F7E8F0A000C605B /* IrregularCollectionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = IrregularCollectionViewController.m; path = Classes/IrregularCollectionViewController.m; sourceTree = ""; }; 27 | 23F40AF11F7E8F0A000C605B /* IrregularCollectionViewLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IrregularCollectionViewLayout.h; path = Classes/IrregularCollectionViewLayout.h; sourceTree = ""; }; 28 | 23F40AF21F7E8F0A000C605B /* IrregularCollectionViewLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = IrregularCollectionViewLayout.m; path = Classes/IrregularCollectionViewLayout.m; sourceTree = ""; }; 29 | 23F40AF31F7E8F0A000C605B /* IrregularLayoutAttributesManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IrregularLayoutAttributesManager.h; path = Classes/IrregularLayoutAttributesManager.h; sourceTree = ""; }; 30 | 23F40AF41F7E8F0A000C605B /* IrregularLayoutAttributesManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = IrregularLayoutAttributesManager.m; path = Classes/IrregularLayoutAttributesManager.m; sourceTree = ""; }; 31 | 23F40AF51F7E8F0A000C605B /* PropertyManagedViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PropertyManagedViewController.h; path = Classes/PropertyManagedViewController.h; sourceTree = ""; }; 32 | 23F40AF61F7E8F0A000C605B /* PropertyManagedViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PropertyManagedViewController.m; path = Classes/PropertyManagedViewController.m; sourceTree = ""; }; 33 | /* End PBXFileReference section */ 34 | 35 | /* Begin PBXFrameworksBuildPhase section */ 36 | 23F40AD01F7E8E34000C605B /* Frameworks */ = { 37 | isa = PBXFrameworksBuildPhase; 38 | buildActionMask = 2147483647; 39 | files = ( 40 | ); 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | /* End PBXFrameworksBuildPhase section */ 44 | 45 | /* Begin PBXGroup section */ 46 | 23F40ACA1F7E8E34000C605B = { 47 | isa = PBXGroup; 48 | children = ( 49 | 23F40AD61F7E8E34000C605B /* IrregularCollectionUIKit */, 50 | 23F40AD51F7E8E34000C605B /* Products */, 51 | ); 52 | sourceTree = ""; 53 | }; 54 | 23F40AD51F7E8E34000C605B /* Products */ = { 55 | isa = PBXGroup; 56 | children = ( 57 | 23F40AD41F7E8E34000C605B /* IrregularCollectionUIKit.framework */, 58 | ); 59 | name = Products; 60 | sourceTree = ""; 61 | }; 62 | 23F40AD61F7E8E34000C605B /* IrregularCollectionUIKit */ = { 63 | isa = PBXGroup; 64 | children = ( 65 | 23F40AEE1F7E8F0A000C605B /* IrregularCollectionUIKit.h */, 66 | 23F40AEF1F7E8F0A000C605B /* IrregularCollectionViewController.h */, 67 | 23F40AF01F7E8F0A000C605B /* IrregularCollectionViewController.m */, 68 | 23F40AF11F7E8F0A000C605B /* IrregularCollectionViewLayout.h */, 69 | 23F40AF21F7E8F0A000C605B /* IrregularCollectionViewLayout.m */, 70 | 23F40AF31F7E8F0A000C605B /* IrregularLayoutAttributesManager.h */, 71 | 23F40AF41F7E8F0A000C605B /* IrregularLayoutAttributesManager.m */, 72 | 23F40AF51F7E8F0A000C605B /* PropertyManagedViewController.h */, 73 | 23F40AF61F7E8F0A000C605B /* PropertyManagedViewController.m */, 74 | 23F40AD81F7E8E34000C605B /* Info.plist */, 75 | ); 76 | path = IrregularCollectionUIKit; 77 | sourceTree = ""; 78 | }; 79 | /* End PBXGroup section */ 80 | 81 | /* Begin PBXHeadersBuildPhase section */ 82 | 23F40AD11F7E8E34000C605B /* Headers */ = { 83 | isa = PBXHeadersBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | 23F40AFA1F7E8F0A000C605B /* IrregularCollectionViewLayout.h in Headers */, 87 | 23F40AFC1F7E8F0A000C605B /* IrregularLayoutAttributesManager.h in Headers */, 88 | 23F40AFE1F7E8F0A000C605B /* PropertyManagedViewController.h in Headers */, 89 | 23F40AF71F7E8F0A000C605B /* IrregularCollectionUIKit.h in Headers */, 90 | 23F40AF81F7E8F0A000C605B /* IrregularCollectionViewController.h in Headers */, 91 | ); 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | /* End PBXHeadersBuildPhase section */ 95 | 96 | /* Begin PBXNativeTarget section */ 97 | 23F40AD31F7E8E34000C605B /* IrregularCollectionUIKit */ = { 98 | isa = PBXNativeTarget; 99 | buildConfigurationList = 23F40AE81F7E8E34000C605B /* Build configuration list for PBXNativeTarget "IrregularCollectionUIKit" */; 100 | buildPhases = ( 101 | 23F40ACF1F7E8E34000C605B /* Sources */, 102 | 23F40AD01F7E8E34000C605B /* Frameworks */, 103 | 23F40AD11F7E8E34000C605B /* Headers */, 104 | 23F40AD21F7E8E34000C605B /* Resources */, 105 | ); 106 | buildRules = ( 107 | ); 108 | dependencies = ( 109 | ); 110 | name = IrregularCollectionUIKit; 111 | productName = IrregularCollectionUIKit; 112 | productReference = 23F40AD41F7E8E34000C605B /* IrregularCollectionUIKit.framework */; 113 | productType = "com.apple.product-type.framework"; 114 | }; 115 | /* End PBXNativeTarget section */ 116 | 117 | /* Begin PBXProject section */ 118 | 23F40ACB1F7E8E34000C605B /* Project object */ = { 119 | isa = PBXProject; 120 | attributes = { 121 | LastUpgradeCheck = 0830; 122 | ORGANIZATIONNAME = pisces; 123 | TargetAttributes = { 124 | 23F40AD31F7E8E34000C605B = { 125 | CreatedOnToolsVersion = 8.3.2; 126 | DevelopmentTeam = Z2MHWT9TNN; 127 | ProvisioningStyle = Automatic; 128 | }; 129 | }; 130 | }; 131 | buildConfigurationList = 23F40ACE1F7E8E34000C605B /* Build configuration list for PBXProject "IrregularCollectionUIKit" */; 132 | compatibilityVersion = "Xcode 3.2"; 133 | developmentRegion = English; 134 | hasScannedForEncodings = 0; 135 | knownRegions = ( 136 | en, 137 | ); 138 | mainGroup = 23F40ACA1F7E8E34000C605B; 139 | productRefGroup = 23F40AD51F7E8E34000C605B /* Products */; 140 | projectDirPath = ""; 141 | projectRoot = ""; 142 | targets = ( 143 | 23F40AD31F7E8E34000C605B /* IrregularCollectionUIKit */, 144 | ); 145 | }; 146 | /* End PBXProject section */ 147 | 148 | /* Begin PBXResourcesBuildPhase section */ 149 | 23F40AD21F7E8E34000C605B /* Resources */ = { 150 | isa = PBXResourcesBuildPhase; 151 | buildActionMask = 2147483647; 152 | files = ( 153 | ); 154 | runOnlyForDeploymentPostprocessing = 0; 155 | }; 156 | /* End PBXResourcesBuildPhase section */ 157 | 158 | /* Begin PBXSourcesBuildPhase section */ 159 | 23F40ACF1F7E8E34000C605B /* Sources */ = { 160 | isa = PBXSourcesBuildPhase; 161 | buildActionMask = 2147483647; 162 | files = ( 163 | 23F40AFD1F7E8F0A000C605B /* IrregularLayoutAttributesManager.m in Sources */, 164 | 23F40AFB1F7E8F0A000C605B /* IrregularCollectionViewLayout.m in Sources */, 165 | 23F40AF91F7E8F0A000C605B /* IrregularCollectionViewController.m in Sources */, 166 | 23F40AFF1F7E8F0A000C605B /* PropertyManagedViewController.m in Sources */, 167 | ); 168 | runOnlyForDeploymentPostprocessing = 0; 169 | }; 170 | /* End PBXSourcesBuildPhase section */ 171 | 172 | /* Begin XCBuildConfiguration section */ 173 | 23F40AE61F7E8E34000C605B /* Debug */ = { 174 | isa = XCBuildConfiguration; 175 | buildSettings = { 176 | ALWAYS_SEARCH_USER_PATHS = NO; 177 | CLANG_ANALYZER_NONNULL = YES; 178 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 179 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 180 | CLANG_CXX_LIBRARY = "libc++"; 181 | CLANG_ENABLE_MODULES = YES; 182 | CLANG_ENABLE_OBJC_ARC = YES; 183 | CLANG_WARN_BOOL_CONVERSION = YES; 184 | CLANG_WARN_CONSTANT_CONVERSION = YES; 185 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 186 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 187 | CLANG_WARN_EMPTY_BODY = YES; 188 | CLANG_WARN_ENUM_CONVERSION = YES; 189 | CLANG_WARN_INFINITE_RECURSION = YES; 190 | CLANG_WARN_INT_CONVERSION = YES; 191 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 192 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 193 | CLANG_WARN_UNREACHABLE_CODE = YES; 194 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 195 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 196 | COPY_PHASE_STRIP = NO; 197 | CURRENT_PROJECT_VERSION = 1; 198 | DEBUG_INFORMATION_FORMAT = dwarf; 199 | ENABLE_STRICT_OBJC_MSGSEND = YES; 200 | ENABLE_TESTABILITY = YES; 201 | GCC_C_LANGUAGE_STANDARD = gnu99; 202 | GCC_DYNAMIC_NO_PIC = NO; 203 | GCC_NO_COMMON_BLOCKS = YES; 204 | GCC_OPTIMIZATION_LEVEL = 0; 205 | GCC_PREPROCESSOR_DEFINITIONS = ( 206 | "DEBUG=1", 207 | "$(inherited)", 208 | ); 209 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 210 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 211 | GCC_WARN_UNDECLARED_SELECTOR = YES; 212 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 213 | GCC_WARN_UNUSED_FUNCTION = YES; 214 | GCC_WARN_UNUSED_VARIABLE = YES; 215 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 216 | MTL_ENABLE_DEBUG_INFO = YES; 217 | ONLY_ACTIVE_ARCH = YES; 218 | SDKROOT = iphoneos; 219 | TARGETED_DEVICE_FAMILY = "1,2"; 220 | VERSIONING_SYSTEM = "apple-generic"; 221 | VERSION_INFO_PREFIX = ""; 222 | }; 223 | name = Debug; 224 | }; 225 | 23F40AE71F7E8E34000C605B /* Release */ = { 226 | isa = XCBuildConfiguration; 227 | buildSettings = { 228 | ALWAYS_SEARCH_USER_PATHS = NO; 229 | CLANG_ANALYZER_NONNULL = YES; 230 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 231 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 232 | CLANG_CXX_LIBRARY = "libc++"; 233 | CLANG_ENABLE_MODULES = YES; 234 | CLANG_ENABLE_OBJC_ARC = YES; 235 | CLANG_WARN_BOOL_CONVERSION = YES; 236 | CLANG_WARN_CONSTANT_CONVERSION = YES; 237 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 238 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 239 | CLANG_WARN_EMPTY_BODY = YES; 240 | CLANG_WARN_ENUM_CONVERSION = YES; 241 | CLANG_WARN_INFINITE_RECURSION = YES; 242 | CLANG_WARN_INT_CONVERSION = YES; 243 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 244 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 245 | CLANG_WARN_UNREACHABLE_CODE = YES; 246 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 247 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 248 | COPY_PHASE_STRIP = NO; 249 | CURRENT_PROJECT_VERSION = 1; 250 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 251 | ENABLE_NS_ASSERTIONS = NO; 252 | ENABLE_STRICT_OBJC_MSGSEND = YES; 253 | GCC_C_LANGUAGE_STANDARD = gnu99; 254 | GCC_NO_COMMON_BLOCKS = YES; 255 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 256 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 257 | GCC_WARN_UNDECLARED_SELECTOR = YES; 258 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 259 | GCC_WARN_UNUSED_FUNCTION = YES; 260 | GCC_WARN_UNUSED_VARIABLE = YES; 261 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 262 | MTL_ENABLE_DEBUG_INFO = NO; 263 | SDKROOT = iphoneos; 264 | TARGETED_DEVICE_FAMILY = "1,2"; 265 | VALIDATE_PRODUCT = YES; 266 | VERSIONING_SYSTEM = "apple-generic"; 267 | VERSION_INFO_PREFIX = ""; 268 | }; 269 | name = Release; 270 | }; 271 | 23F40AE91F7E8E34000C605B /* Debug */ = { 272 | isa = XCBuildConfiguration; 273 | buildSettings = { 274 | CODE_SIGN_IDENTITY = ""; 275 | DEFINES_MODULE = YES; 276 | DEVELOPMENT_TEAM = Z2MHWT9TNN; 277 | DYLIB_COMPATIBILITY_VERSION = 1; 278 | DYLIB_CURRENT_VERSION = 1; 279 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 280 | INFOPLIST_FILE = IrregularCollectionUIKit/Info.plist; 281 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 282 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 283 | PRODUCT_BUNDLE_IDENTIFIER = pisces.lib.IrregularCollectionUIKit; 284 | PRODUCT_NAME = "$(TARGET_NAME)"; 285 | SKIP_INSTALL = YES; 286 | }; 287 | name = Debug; 288 | }; 289 | 23F40AEA1F7E8E34000C605B /* Release */ = { 290 | isa = XCBuildConfiguration; 291 | buildSettings = { 292 | CODE_SIGN_IDENTITY = ""; 293 | DEFINES_MODULE = YES; 294 | DEVELOPMENT_TEAM = Z2MHWT9TNN; 295 | DYLIB_COMPATIBILITY_VERSION = 1; 296 | DYLIB_CURRENT_VERSION = 1; 297 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 298 | INFOPLIST_FILE = IrregularCollectionUIKit/Info.plist; 299 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 300 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 301 | PRODUCT_BUNDLE_IDENTIFIER = pisces.lib.IrregularCollectionUIKit; 302 | PRODUCT_NAME = "$(TARGET_NAME)"; 303 | SKIP_INSTALL = YES; 304 | }; 305 | name = Release; 306 | }; 307 | /* End XCBuildConfiguration section */ 308 | 309 | /* Begin XCConfigurationList section */ 310 | 23F40ACE1F7E8E34000C605B /* Build configuration list for PBXProject "IrregularCollectionUIKit" */ = { 311 | isa = XCConfigurationList; 312 | buildConfigurations = ( 313 | 23F40AE61F7E8E34000C605B /* Debug */, 314 | 23F40AE71F7E8E34000C605B /* Release */, 315 | ); 316 | defaultConfigurationIsVisible = 0; 317 | defaultConfigurationName = Release; 318 | }; 319 | 23F40AE81F7E8E34000C605B /* Build configuration list for PBXNativeTarget "IrregularCollectionUIKit" */ = { 320 | isa = XCConfigurationList; 321 | buildConfigurations = ( 322 | 23F40AE91F7E8E34000C605B /* Debug */, 323 | 23F40AEA1F7E8E34000C605B /* Release */, 324 | ); 325 | defaultConfigurationIsVisible = 0; 326 | defaultConfigurationName = Release; 327 | }; 328 | /* End XCConfigurationList section */ 329 | }; 330 | rootObject = 23F40ACB1F7E8E34000C605B /* Project object */; 331 | } 332 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit.xcodeproj/xcshareddata/xcschemes/IrregularCollectionUIKit.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 65 | 71 | 72 | 73 | 74 | 75 | 76 | 82 | 83 | 89 | 90 | 91 | 92 | 94 | 95 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/IrregularCollectionUIKit/Assets/.gitkeep -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/IrregularCollectionUIKit/Classes/.gitkeep -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/IrregularCollectionUIKit.h: -------------------------------------------------------------------------------- 1 | // 2 | // IrregularCollectionUIKit.h 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/17/16. 6 | // 7 | // 8 | 9 | #ifndef IrregularCollectionUIKit_h 10 | #define IrregularCollectionUIKit_h 11 | 12 | #import "IrregularCollectionViewController.h" 13 | #import "IrregularCollectionViewLayout.h" 14 | #import "IrregularLayoutAttributesManager.h" 15 | 16 | #endif /* IrregularCollectionUIKit_h */ 17 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/IrregularCollectionViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // IrregularCollectionViewController.h 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/20/16. 6 | // 7 | // 8 | 9 | #import 10 | #import "IrregularCollectionViewLayout.h" 11 | #import "PropertyManagedViewController.h" 12 | 13 | @interface IrregularCollectionViewController : PropertyManagedViewController 14 | @property (nonnull, nonatomic, readonly) IrregularCollectionViewLayout *collectionViewLayout; 15 | @property (nonnull, nonatomic) IBOutlet UICollectionView *collectionView; 16 | @end 17 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/IrregularCollectionViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // IrregularCollectionViewController.m 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/20/16. 6 | // 7 | // 8 | 9 | #import "IrregularCollectionViewController.h" 10 | 11 | @implementation IrregularCollectionViewController 12 | 13 | #pragma mark - Overridden: PropertyManagedViewController 14 | 15 | - (void)dealloc { 16 | _collectionView.dataSource = nil; 17 | _collectionView.delegate = nil; 18 | } 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | 23 | IrregularCollectionViewLayout *layout = [IrregularCollectionViewLayout new]; 24 | layout.delegate = self; 25 | 26 | _collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout]; 27 | _collectionView.dataSource = self; 28 | _collectionView.delegate = self; 29 | self.view = _collectionView; 30 | } 31 | 32 | #pragma mark - UICollectionView data source 33 | 34 | - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView { 35 | return 0; 36 | } 37 | 38 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section { 39 | return 0; 40 | } 41 | 42 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { 43 | return nil; 44 | } 45 | 46 | #pragma mark - IrregularCollectionViewLayout delegate 47 | 48 | - (CGSize)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout originalItemSizeAtIndexPath:(NSIndexPath * _Nonnull)indexPath { 49 | return CGSizeZero; 50 | } 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/IrregularCollectionViewLayout.h: -------------------------------------------------------------------------------- 1 | // 2 | // IrregularCollectionViewLayout.h 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/18/16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @class IrregularLayoutAttributesManager; 12 | @protocol IrregularCollectionViewLayoutDelegate; 13 | 14 | @interface IrregularCollectionViewLayout : UICollectionViewLayout 15 | @property (nullable, nonatomic, weak) id delegate; 16 | @property (nonatomic) NSInteger numberOfColumns; 17 | @property (nonatomic) CGFloat columnSpacing; 18 | @property (nonatomic) CGFloat headerHeight; 19 | @property (nonatomic) CGFloat footerHeight; 20 | @property (nonatomic) UIEdgeInsets interItemSpacing; 21 | @property (nonatomic) UIEdgeInsets sectionInset; 22 | @property (nonnull, readonly) IrregularLayoutAttributesManager *attributesManager; 23 | - (instancetype _Nonnull)initWithDelegate:(id _Nonnull)delegate; 24 | - (IrregularLayoutAttributesManager * _Nonnull)createAttributesManager; 25 | - (CGFloat)columnWidthForSection:(NSUInteger)section; 26 | - (CGSize)headerSizeForSection:(NSInteger)section; 27 | - (CGSize)footerSizeForSection:(NSInteger)section; 28 | - (CGSize)itemSizeAtIndexPath:(NSIndexPath * _Nonnull)indexPath; 29 | - (void)prepareLayout; 30 | - (CGFloat)widthForSection:(NSUInteger)section; 31 | @end 32 | 33 | @protocol IrregularCollectionViewLayoutDelegate 34 | - (CGSize)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout originalItemSizeAtIndexPath:(NSIndexPath * _Nonnull)indexPath; 35 | @end 36 | 37 | @protocol IrregularSizeObject 38 | @property (nonatomic) NSInteger height; 39 | @property (nonatomic) NSInteger width; 40 | @end 41 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/IrregularCollectionViewLayout.m: -------------------------------------------------------------------------------- 1 | // 2 | // IrregularCollectionViewLayout.m 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/18/16. 6 | // 7 | // 8 | 9 | #import "IrregularCollectionViewLayout.h" 10 | #import "IrregularLayoutAttributesManager.h" 11 | 12 | @implementation IrregularCollectionViewLayout 13 | 14 | #pragma mark - Constructor 15 | 16 | - (instancetype _Nonnull)init { 17 | self = [super init]; 18 | if (self) { 19 | _columnSpacing = 1; 20 | _numberOfColumns = 3; 21 | _headerHeight = 0; 22 | _footerHeight = 0; 23 | _sectionInset = UIEdgeInsetsZero; 24 | _attributesManager = [self createAttributesManager]; 25 | } 26 | return self; 27 | } 28 | 29 | - (instancetype _Nonnull)initWithDelegate:(id)delegate { 30 | self = [self init]; 31 | if (self) { 32 | _delegate = delegate; 33 | } 34 | return self; 35 | } 36 | 37 | #pragma mark - Overridden: UICollectionViewLayout 38 | 39 | - (CGSize)collectionViewContentSize { 40 | return CGSizeMake(self.collectionView.bounds.size.width, _attributesManager.columnHeights.lastObject.floatValue); 41 | } 42 | 43 | - (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect { 44 | NSMutableArray *includedAttributes = [NSMutableArray array]; 45 | for (UICollectionViewLayoutAttributes *attributes in _attributesManager.allItemAttributes) { 46 | if (CGRectIntersectsRect(attributes.frame, rect)) { 47 | [includedAttributes addObject:attributes]; 48 | } 49 | } 50 | return includedAttributes; 51 | } 52 | 53 | - (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath { 54 | if (indexPath.section >= _attributesManager.sectionItemAttributes.count || 55 | indexPath.item >= _attributesManager.sectionItemAttributes[indexPath.section].count) { 56 | return nil; 57 | } 58 | return _attributesManager.sectionItemAttributes[indexPath.section][indexPath.item]; 59 | } 60 | 61 | - (UICollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath { 62 | if ([elementKind isEqualToString:UICollectionElementKindSectionHeader] && 63 | indexPath.section < _attributesManager.headersAttributes.count) { 64 | return _attributesManager.headersAttributes[indexPath.section]; 65 | } 66 | if ([elementKind isEqualToString:UICollectionElementKindSectionFooter] && 67 | indexPath.section < _attributesManager.footersAttributes.count) { 68 | return _attributesManager.footersAttributes[indexPath.section]; 69 | } 70 | return nil; 71 | } 72 | 73 | - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds { 74 | return !CGSizeEqualToSize(self.collectionView.bounds.size, newBounds.size); 75 | } 76 | 77 | #pragma mark - Public methods 78 | 79 | - (IrregularLayoutAttributesManager *)createAttributesManager { 80 | return [[IrregularLayoutAttributesManager alloc] initWithLayout:self]; 81 | } 82 | 83 | - (CGFloat)columnWidthForSection:(NSUInteger)section { 84 | return ([self widthForSection:section] - ((_numberOfColumns - 1) * _columnSpacing)) / _numberOfColumns; 85 | } 86 | 87 | - (CGSize)headerSizeForSection:(NSInteger)section { 88 | return CGSizeMake([self widthForSection:section], _headerHeight); 89 | } 90 | 91 | - (CGSize)footerSizeForSection:(NSInteger)section { 92 | return CGSizeMake([self widthForSection:section], _footerHeight); 93 | } 94 | 95 | - (CGSize)itemSizeAtIndexPath:(NSIndexPath *)indexPath { 96 | if (indexPath.section >= _attributesManager.sectionItemFrames.count || 97 | indexPath.item >= _attributesManager.sectionItemFrames[indexPath.section].count) { 98 | return CGSizeZero; 99 | } 100 | return _attributesManager.sectionItemFrames[indexPath.section][indexPath.item].CGRectValue.size; 101 | } 102 | 103 | - (void)prepareLayout { 104 | [self.attributesManager prepareAttributes]; 105 | [self.attributesManager prepareFrames]; 106 | } 107 | 108 | - (CGFloat)widthForSection:(NSUInteger)section { 109 | return self.collectionView.bounds.size.width - _sectionInset.left - _sectionInset.right; 110 | } 111 | 112 | @end 113 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/IrregularLayoutAttributesManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // IrregularLayoutAttributesManager.h 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/18/16. 6 | // 7 | // 8 | 9 | #import "IrregularCollectionViewLayout.h" 10 | 11 | @interface IrregularLayoutAttributesManager : NSObject 12 | { 13 | @protected 14 | __weak IrregularCollectionViewLayout *layout; 15 | } 16 | @property (nonatomic, readonly) NSInteger numberOfSections; 17 | @property (nonatomic, readonly) NSMutableArray *columnHeights; 18 | @property (nonatomic, readonly) NSMutableArray *allItemAttributes; 19 | @property (nonatomic, readonly) NSMutableArray *headersAttributes; 20 | @property (nonatomic, readonly) NSMutableArray *footersAttributes; 21 | @property (nonatomic, readonly) NSMutableArray *> *sectionItemAttributes; 22 | @property (nonatomic, readonly) NSMutableArray *> *sectionItemFrames; 23 | - (instancetype)initWithLayout:(IrregularCollectionViewLayout *)layout; 24 | - (NSInteger)numberOfItemsInSection:(NSInteger)section; 25 | - (void)prepareAttributes; 26 | - (void)prepareFrames; 27 | @end 28 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/IrregularLayoutAttributesManager.m: -------------------------------------------------------------------------------- 1 | // 2 | // IrregularLayoutAttributesManager.m 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/18/16. 6 | // 7 | // 8 | 9 | #import "IrregularLayoutAttributesManager.h" 10 | 11 | @implementation IrregularLayoutAttributesManager 12 | 13 | #pragma mark - Properties 14 | 15 | - (NSInteger)numberOfSections { 16 | return [layout.collectionView.dataSource numberOfSectionsInCollectionView:layout.collectionView]; 17 | } 18 | 19 | #pragma mark - Constructor 20 | 21 | - (instancetype)initWithLayout:(IrregularCollectionViewLayout *)_layout { 22 | self = [super init]; 23 | if (self) { 24 | layout = _layout; 25 | _allItemAttributes = [NSMutableArray array]; 26 | _columnHeights = [NSMutableArray array]; 27 | _headersAttributes = [NSMutableArray array]; 28 | _footersAttributes = [NSMutableArray array]; 29 | _sectionItemAttributes = [NSMutableArray array]; 30 | _sectionItemFrames = [NSMutableArray array]; 31 | } 32 | return self; 33 | } 34 | 35 | #pragma mark - Public methods 36 | 37 | - (NSInteger)numberOfItemsInSection:(NSInteger)section { 38 | return [layout.collectionView.dataSource collectionView:layout.collectionView numberOfItemsInSection:section]; 39 | } 40 | 41 | - (void)prepareAttributes { 42 | NSInteger numberOfSections = layout.collectionView.numberOfSections; 43 | if (numberOfSections > 0) { 44 | [self clear]; 45 | 46 | for (NSInteger section=0; section 0) { 49 | CGFloat yOffset = _columnHeights.lastObject.floatValue; 50 | CGSize headerSize = [layout headerSizeForSection:section]; 51 | UICollectionViewLayoutAttributes *attributes = [UICollectionViewLayoutAttributes 52 | layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionHeader 53 | withIndexPath:[NSIndexPath indexPathForItem:0 inSection:section]]; 54 | attributes.frame = CGRectMake(layout.sectionInset.left, yOffset, headerSize.width, headerSize.height); 55 | [_headersAttributes addObject:attributes]; 56 | [_allItemAttributes addObject:attributes]; 57 | [_columnHeights addObject:@(CGRectGetMaxY(attributes.frame))]; 58 | } 59 | 60 | // items 61 | NSMutableArray *itemAttributes = [NSMutableArray array]; 62 | NSMutableArray *itemFrames = [NSMutableArray array]; 63 | 64 | [self columnsWithSection:section itemCount:^NSInteger { 65 | return [layout.collectionView numberOfItemsInSection:section]; 66 | } map:^(NSIndexPath *indexPath, BOOL heightChanged, CGRect frame) { 67 | UICollectionViewLayoutAttributes *attributes = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:indexPath]; 68 | attributes.frame = frame; 69 | 70 | [itemAttributes addObject:attributes]; 71 | [itemFrames addObject:[NSValue valueWithCGRect:frame]]; 72 | [_allItemAttributes addObject:attributes]; 73 | 74 | if (heightChanged) { 75 | [_columnHeights addObject:@(CGRectGetMaxY(frame))]; 76 | } 77 | }]; 78 | 79 | [_sectionItemAttributes addObject:itemAttributes]; 80 | [_sectionItemFrames addObject:itemFrames]; 81 | 82 | // footer 83 | if (layout.footerHeight > 0) { 84 | CGFloat yOffset = _columnHeights.lastObject.floatValue; 85 | CGSize footerSize = [layout footerSizeForSection:section]; 86 | UICollectionViewLayoutAttributes *attributes = [UICollectionViewLayoutAttributes 87 | layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionFooter 88 | withIndexPath:[NSIndexPath indexPathForItem:0 inSection:section]]; 89 | attributes.frame = CGRectMake(layout.sectionInset.left, yOffset, footerSize.width, footerSize.height); 90 | [_footersAttributes addObject:attributes]; 91 | [_allItemAttributes addObject:attributes]; 92 | [_columnHeights addObject:@(CGRectGetMaxY(attributes.frame))]; 93 | } 94 | } 95 | } 96 | } 97 | 98 | - (void)prepareFrames { 99 | NSInteger numberOfSections = self.numberOfSections; 100 | 101 | if (numberOfSections > 0) { 102 | [_sectionItemFrames removeAllObjects]; 103 | 104 | for (NSInteger section=0; section *itemFrames = [NSMutableArray array]; 106 | 107 | [self columnsWithSection:section itemCount:^NSInteger{ 108 | return [self numberOfItemsInSection:section]; 109 | } map:^(NSIndexPath *indexPath, BOOL heightChanged, CGRect frame) { 110 | [itemFrames addObject:[NSValue valueWithCGRect:frame]]; 111 | }]; 112 | 113 | [_sectionItemFrames addObject:itemFrames]; 114 | } 115 | } 116 | } 117 | 118 | #pragma mark - Private methods 119 | 120 | - (void)clear { 121 | [_allItemAttributes removeAllObjects]; 122 | [_columnHeights removeAllObjects]; 123 | [_headersAttributes removeAllObjects]; 124 | [_footersAttributes removeAllObjects]; 125 | [_sectionItemAttributes removeAllObjects]; 126 | } 127 | 128 | - (void)columnsWithSection:(NSInteger)section itemCount:(NSInteger (^)(void))itemCount map:(void (^)(NSIndexPath *, BOOL, CGRect))map { 129 | BOOL wasFullWidth = NO; 130 | NSInteger numberOfItems = itemCount(); 131 | CGFloat itemWidthSum = 0; 132 | CGFloat columnHeight = 0; 133 | CGFloat viewWidth = 0; 134 | CGFloat xOffset = layout.sectionInset.left; 135 | CGFloat yOffset = _columnHeights.lastObject.floatValue; 136 | CGFloat width = [layout widthForSection:section]; 137 | CGSize standardItemSize; 138 | 139 | __block NSInteger columnIndex = 0; 140 | __block CGRect frame; 141 | 142 | void (^setFrame)(CGRect, NSIndexPath *, NSInteger, BOOL) = ^void (CGRect rect, NSIndexPath *indexPath, NSInteger columnIndexIncrease, BOOL heightChanged) { 143 | frame = rect; 144 | map(indexPath, heightChanged, rect); 145 | columnIndex += columnIndexIncrease; 146 | }; 147 | 148 | CGSize (^adjustedItemSize)(CGSize) = ^CGSize (CGSize size) { 149 | if (size.width/size.height > 4.0/3.0) { 150 | return CGSizeMake(4.0 * size.height / 3.0, size.height); 151 | } 152 | return size; 153 | }; 154 | 155 | for (NSInteger i=0; i= 1.2) { 163 | wasFullWidth = YES; 164 | viewWidth = width; 165 | columnHeight = ceilf(viewWidth * currentItemSize.height / currentItemSize.width); 166 | setFrame(CGRectMake(xOffset, yOffset, viewWidth, columnHeight), currentIndexPath, layout.numberOfColumns, YES); 167 | } else { 168 | wasFullWidth = NO; 169 | viewWidth = i >= numberOfItems - 1 ? width : width - ((layout.numberOfColumns - 1) * layout.columnSpacing); 170 | currentItemSize = adjustedItemSize(currentItemSize); 171 | standardItemSize = currentItemSize; 172 | itemWidthSum = currentItemSize.width; 173 | 174 | for (NSInteger j=1; j layout.numberOfColumns - 1 ? 0 : columnIndex; 210 | xOffset = columnIndex == 0 ? layout.sectionInset.left : CGRectGetMaxX(frame) + layout.columnSpacing; 211 | 212 | if (columnIndex == 0) { 213 | yOffset += columnHeight + layout.columnSpacing; 214 | } 215 | } 216 | } 217 | 218 | @end 219 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/PropertyManagedViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // PropertyManagedViewController.h 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/20/16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface PropertyManagedViewController : UIViewController 12 | @property (nonatomic, readonly) BOOL isFirstViewAppearence; 13 | @property (nonatomic, readonly) BOOL isViewAppeared; 14 | - (void)commitProperties; 15 | - (void)initProperties; 16 | - (void)invalidateProperties; 17 | @end 18 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/Classes/PropertyManagedViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // PropertyManagedViewController.m 3 | // IrregularCollectionUIKit 4 | // 5 | // Created by pisces on 9/20/16. 6 | // 7 | // 8 | 9 | #import "PropertyManagedViewController.h" 10 | 11 | @interface PropertyManagedViewController () 12 | 13 | @end 14 | 15 | @implementation PropertyManagedViewController 16 | 17 | #pragma mark - Overridden: UIViewController 18 | 19 | - (id)initWithCoder:(NSCoder *)aDecoder { 20 | self = [super initWithCoder:aDecoder]; 21 | if (self) { 22 | [self initProperties]; 23 | } 24 | return self; 25 | } 26 | 27 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { 28 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 29 | if (self) { 30 | [self initProperties]; 31 | } 32 | return self; 33 | } 34 | 35 | - (void)viewWillAppear:(BOOL)animated { 36 | [super viewWillAppear:animated]; 37 | } 38 | 39 | - (void)viewDidAppear:(BOOL)animated { 40 | [super viewDidAppear:animated]; 41 | 42 | _isViewAppeared = YES; 43 | 44 | [self invalidateProperties]; 45 | } 46 | 47 | - (void)viewDidDisappear:(BOOL)animated { 48 | [super viewDidDisappear:animated]; 49 | 50 | _isFirstViewAppearence = NO; 51 | _isViewAppeared = NO; 52 | } 53 | 54 | #pragma mark - Public methods 55 | 56 | - (void)commitProperties { 57 | } 58 | 59 | - (void)initProperties { 60 | _isFirstViewAppearence = YES; 61 | } 62 | 63 | - (void)invalidateProperties { 64 | if (self.isViewLoaded) { 65 | [self commitProperties]; 66 | } 67 | } 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /IrregularCollectionUIKit/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 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016-2017 Steve Kim 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 | # IrregularCollectionUIKit 2 | 3 | ![Swift](https://img.shields.io/badge/Swift-3-orange.svg) 4 | ![Objective-C](https://img.shields.io/badge/Objective-C-orange.svg) 5 | [![CI Status](http://img.shields.io/travis/pisces/IrregularCollectionUIKit.svg?style=flat)](https://travis-ci.org/pisces/IrregularCollectionUIKit) 6 | [![Version](https://img.shields.io/cocoapods/v/IrregularCollectionUIKit.svg?style=flat)](http://cocoapods.org/pods/IrregularCollectionUIKit) 7 | [![License](https://img.shields.io/cocoapods/l/IrregularCollectionUIKit.svg?style=flat)](http://cocoapods.org/pods/IrregularCollectionUIKit) 8 | [![Platform](https://img.shields.io/cocoapods/p/IrregularCollectionUIKit.svg?style=flat)](http://cocoapods.org/pods/IrregularCollectionUIKit) 9 | [![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 10 | 11 | ## Example 12 | 13 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 14 | 15 | ## You can implement layout of collection view like this screenshot :) 16 |

17 | 18 | 19 |

20 | 21 | ### Implementation for collection view with the class IrregularCollectionViewController using UIKit 22 | ```Swift 23 | class DemoViewController: IrregularCollectionViewController { 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | 27 | collectionViewLayout.columnSpacing = 1 28 | collectionViewLayout.numberOfColumns = 3 29 | collectionViewLayout.sectionInset = UIEdgeInsetsMake(1, 1, 1, 1) 30 | collectionView.register(SampleViewCell.self, forCellWithReuseIdentifier: "SampleViewCell") 31 | } 32 | override func numberOfSections(in collectionView: UICollectionView) -> Int { 33 | return 1 34 | } 35 | override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 36 | return contents.count 37 | } 38 | override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 39 | return collectionView.dequeueReusableCell(withReuseIdentifier: "SampleViewCell", for: indexPath) 40 | } 41 | override func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) { 42 | (cell as? SampleViewCell)?.content = contents[indexPath.item] 43 | } 44 | override func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, originalItemSizeAt indexPath: IndexPath) -> CGSize { 45 | let content = contents[indexPath.item] 46 | return CGSize(width: CGFloat(content.width), height: CGFloat(content.height)) 47 | } 48 | } 49 | ``` 50 | ### Implementation for collection view with IrregularCollectionViewLayout 51 | ```Swift 52 | let layout = IrregularCollectionViewLayout() 53 | layout.delegate = self 54 | layout.columnSpacing = 1 55 | layout.numberOfColumns = 3 56 | layout.sectionInset = UIEdgeInsetsMake(1, 1, 1, 1) 57 | 58 | let collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: layout) 59 | ``` 60 | 61 | ## Requirements 62 | 63 | iOS Deployment Target 7.0 higher 64 | 65 | ## Installation 66 | 67 | IrregularCollectionUIKit is available through [CocoaPods](http://cocoapods.org). To install 68 | it, simply add the following line to your Podfile: 69 | 70 | ```ruby 71 | pod "IrregularCollectionUIKit" 72 | ``` 73 | 74 | ### Carthage 75 | 76 | [Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. 77 | 78 | You can install Carthage with [Homebrew](http://brew.sh/) using the following command: 79 | 80 | ```bash 81 | $ brew update 82 | $ brew install carthage 83 | ``` 84 | 85 | To integrate Alamofire into your Xcode project using Carthage, specify it in your `Cartfile`: 86 | 87 | ```ogdl 88 | github "pisces/IrregularCollectionUIKit" ~> 2.0.1 89 | ``` 90 | 91 | Run `carthage update` to build the framework and drag the built `IrregularCollectionUIKit.framework` into your Xcode project. 92 | 93 | ## Author 94 | 95 | Steve Kim, hh963103@gmail.com 96 | 97 | ## License 98 | 99 | IrregularCollectionUIKit is available under the MIT license. See the LICENSE file for more info. 100 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /screenshots/sh_001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/screenshots/sh_001.png -------------------------------------------------------------------------------- /screenshots/sh_002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/screenshots/sh_002.png -------------------------------------------------------------------------------- /screenshots/sh_003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pisces/IrregularCollectionUIKit/edd0d5e015a39c09815b38f2dd386e48d04d619b/screenshots/sh_003.png --------------------------------------------------------------------------------