├── AWCollectionViewDialLayoutDemo.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── AWCollectionViewDialLayoutDemo.xccheckout │ └── xcuserdata │ │ └── antoine.xcuserdatad │ │ ├── UserInterfaceState.xcuserstate │ │ └── WorkspaceSettings.xcsettings └── xcuserdata │ └── antoine.xcuserdatad │ └── xcschemes │ ├── AWCollectionViewDialLayoutDemo.xcscheme │ └── xcschememanagement.plist ├── AWCollectionViewDialLayoutDemo ├── AWCollectionViewDialLayout.h ├── AWCollectionViewDialLayout.m ├── AWCollectionViewDialLayoutDemo-Info.plist ├── AWCollectionViewDialLayoutDemo-Prefix.pch ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── Main_iPad.storyboard │ └── Main_iPhone.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── appicon-29@2x-1.png │ │ ├── appicon-29@2x.png │ │ ├── appicon-40.png │ │ ├── appicon-40@2x-1.png │ │ ├── appicon-40@2x.png │ │ ├── appicon-60@2x.png │ │ ├── appicon-60@3x.png │ │ ├── appicon-76.png │ │ └── appicon-76@2x.png │ └── LaunchImage.launchimage │ │ └── Contents.json ├── ViewController.h ├── ViewController.m ├── australia.jpg ├── awcollectionviewdiallayout_1.jpg ├── awcollectionviewdiallayout_2.jpg ├── beach.jpg ├── building.jpg ├── dialCell.xib ├── dialCell2.xib ├── en.lproj │ └── InfoPlist.strings ├── hands.jpg ├── indonesia.jpg ├── iphone_settings_view.xib ├── logo.png ├── main.m ├── montain.jpg ├── nyc.jpg ├── photos.json ├── rotterdam.jpg ├── seattle.jpg └── splash.xib ├── AWCollectionViewDialLayoutDemoTests ├── AWCollectionViewDialLayoutDemoTests-Info.plist ├── AWCollectionViewDialLayoutDemoTests.m └── en.lproj │ └── InfoPlist.strings ├── LICENSE └── README.md /AWCollectionViewDialLayoutDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 716026501B302A750066AFA8 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7160264F1B302A750066AFA8 /* Images.xcassets */; }; 11 | 716026521B302B240066AFA8 /* splash.xib in Resources */ = {isa = PBXBuildFile; fileRef = 716026511B302B240066AFA8 /* splash.xib */; }; 12 | 716026541B302B4B0066AFA8 /* logo.png in Resources */ = {isa = PBXBuildFile; fileRef = 716026531B302B4B0066AFA8 /* logo.png */; }; 13 | 71D04A0818D3068F0077B38B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71D04A0718D3068F0077B38B /* Foundation.framework */; }; 14 | 71D04A0A18D3068F0077B38B /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71D04A0918D3068F0077B38B /* CoreGraphics.framework */; }; 15 | 71D04A0C18D3068F0077B38B /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71D04A0B18D3068F0077B38B /* UIKit.framework */; }; 16 | 71D04A1218D3068F0077B38B /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 71D04A1018D3068F0077B38B /* InfoPlist.strings */; }; 17 | 71D04A1418D3068F0077B38B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 71D04A1318D3068F0077B38B /* main.m */; }; 18 | 71D04A1818D3068F0077B38B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 71D04A1718D3068F0077B38B /* AppDelegate.m */; }; 19 | 71D04A1B18D3068F0077B38B /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71D04A1918D3068F0077B38B /* Main_iPhone.storyboard */; }; 20 | 71D04A1E18D3068F0077B38B /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71D04A1C18D3068F0077B38B /* Main_iPad.storyboard */; }; 21 | 71D04A2118D3068F0077B38B /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 71D04A2018D3068F0077B38B /* ViewController.m */; }; 22 | 71D04A2A18D3068F0077B38B /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71D04A2918D3068F0077B38B /* XCTest.framework */; }; 23 | 71D04A2B18D3068F0077B38B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71D04A0718D3068F0077B38B /* Foundation.framework */; }; 24 | 71D04A2C18D3068F0077B38B /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71D04A0B18D3068F0077B38B /* UIKit.framework */; }; 25 | 71D04A3418D3068F0077B38B /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 71D04A3218D3068F0077B38B /* InfoPlist.strings */; }; 26 | 71D04A3618D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 71D04A3518D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests.m */; }; 27 | 71D04A4218D306A30077B38B /* AWCollectionViewDialLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 71D04A4118D306A30077B38B /* AWCollectionViewDialLayout.m */; }; 28 | 71D04A4418D309C40077B38B /* dialCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 71D04A4318D309C40077B38B /* dialCell.xib */; }; 29 | 71D04A4618D311190077B38B /* photos.json in Resources */ = {isa = PBXBuildFile; fileRef = 71D04A4518D311190077B38B /* photos.json */; }; 30 | 71DD0C6418D3540400152D0C /* iphone_settings_view.xib in Resources */ = {isa = PBXBuildFile; fileRef = 71DD0C6318D3540400152D0C /* iphone_settings_view.xib */; }; 31 | 71DD223918D879A1005450FA /* dialCell2.xib in Resources */ = {isa = PBXBuildFile; fileRef = 71DD223818D879A1005450FA /* dialCell2.xib */; }; 32 | 71DD223C18D885F3005450FA /* awcollectionviewdiallayout_1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 71DD223A18D885F3005450FA /* awcollectionviewdiallayout_1.jpg */; }; 33 | 71DD223D18D885F3005450FA /* awcollectionviewdiallayout_2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 71DD223B18D885F3005450FA /* awcollectionviewdiallayout_2.jpg */; }; 34 | E90944031CF83BD200049594 /* beach.jpg in Resources */ = {isa = PBXBuildFile; fileRef = E90943FB1CF83BD200049594 /* beach.jpg */; }; 35 | E90944041CF83BD200049594 /* building.jpg in Resources */ = {isa = PBXBuildFile; fileRef = E90943FC1CF83BD200049594 /* building.jpg */; }; 36 | E90944051CF83BD200049594 /* hands.jpg in Resources */ = {isa = PBXBuildFile; fileRef = E90943FD1CF83BD200049594 /* hands.jpg */; }; 37 | E90944061CF83BD200049594 /* indonesia.jpg in Resources */ = {isa = PBXBuildFile; fileRef = E90943FE1CF83BD200049594 /* indonesia.jpg */; }; 38 | E90944071CF83BD200049594 /* montain.jpg in Resources */ = {isa = PBXBuildFile; fileRef = E90943FF1CF83BD200049594 /* montain.jpg */; }; 39 | E90944081CF83BD200049594 /* nyc.jpg in Resources */ = {isa = PBXBuildFile; fileRef = E90944001CF83BD200049594 /* nyc.jpg */; }; 40 | E90944091CF83BD200049594 /* rotterdam.jpg in Resources */ = {isa = PBXBuildFile; fileRef = E90944011CF83BD200049594 /* rotterdam.jpg */; }; 41 | E909440A1CF83BD200049594 /* seattle.jpg in Resources */ = {isa = PBXBuildFile; fileRef = E90944021CF83BD200049594 /* seattle.jpg */; }; 42 | E909440C1CF83C2B00049594 /* australia.jpg in Resources */ = {isa = PBXBuildFile; fileRef = E909440B1CF83C2B00049594 /* australia.jpg */; }; 43 | /* End PBXBuildFile section */ 44 | 45 | /* Begin PBXContainerItemProxy section */ 46 | 71D04A2D18D3068F0077B38B /* PBXContainerItemProxy */ = { 47 | isa = PBXContainerItemProxy; 48 | containerPortal = 71D049FC18D3068F0077B38B /* Project object */; 49 | proxyType = 1; 50 | remoteGlobalIDString = 71D04A0318D3068F0077B38B; 51 | remoteInfo = AWCollectionViewDialLayoutDemo; 52 | }; 53 | /* End PBXContainerItemProxy section */ 54 | 55 | /* Begin PBXFileReference section */ 56 | 7160264F1B302A750066AFA8 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 57 | 716026511B302B240066AFA8 /* splash.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = splash.xib; sourceTree = ""; }; 58 | 716026531B302B4B0066AFA8 /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo.png; sourceTree = ""; }; 59 | 71D04A0418D3068F0077B38B /* AWCollectionViewDialLayoutDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AWCollectionViewDialLayoutDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 71D04A0718D3068F0077B38B /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 61 | 71D04A0918D3068F0077B38B /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 62 | 71D04A0B18D3068F0077B38B /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 63 | 71D04A0F18D3068F0077B38B /* AWCollectionViewDialLayoutDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "AWCollectionViewDialLayoutDemo-Info.plist"; sourceTree = ""; }; 64 | 71D04A1118D3068F0077B38B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 65 | 71D04A1318D3068F0077B38B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 66 | 71D04A1518D3068F0077B38B /* AWCollectionViewDialLayoutDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AWCollectionViewDialLayoutDemo-Prefix.pch"; sourceTree = ""; }; 67 | 71D04A1618D3068F0077B38B /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 68 | 71D04A1718D3068F0077B38B /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 69 | 71D04A1A18D3068F0077B38B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = ""; }; 70 | 71D04A1D18D3068F0077B38B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = ""; }; 71 | 71D04A1F18D3068F0077B38B /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 72 | 71D04A2018D3068F0077B38B /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 73 | 71D04A2818D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AWCollectionViewDialLayoutDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | 71D04A2918D3068F0077B38B /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 75 | 71D04A3118D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "AWCollectionViewDialLayoutDemoTests-Info.plist"; sourceTree = ""; }; 76 | 71D04A3318D3068F0077B38B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 77 | 71D04A3518D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AWCollectionViewDialLayoutDemoTests.m; sourceTree = ""; }; 78 | 71D04A4018D306A30077B38B /* AWCollectionViewDialLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AWCollectionViewDialLayout.h; sourceTree = ""; }; 79 | 71D04A4118D306A30077B38B /* AWCollectionViewDialLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AWCollectionViewDialLayout.m; sourceTree = ""; }; 80 | 71D04A4318D309C40077B38B /* dialCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = dialCell.xib; sourceTree = ""; }; 81 | 71D04A4518D311190077B38B /* photos.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = photos.json; sourceTree = ""; }; 82 | 71DD0C6318D3540400152D0C /* iphone_settings_view.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = iphone_settings_view.xib; sourceTree = ""; }; 83 | 71DD223818D879A1005450FA /* dialCell2.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = dialCell2.xib; sourceTree = ""; }; 84 | 71DD223A18D885F3005450FA /* awcollectionviewdiallayout_1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = awcollectionviewdiallayout_1.jpg; sourceTree = ""; }; 85 | 71DD223B18D885F3005450FA /* awcollectionviewdiallayout_2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = awcollectionviewdiallayout_2.jpg; sourceTree = ""; }; 86 | E90943FB1CF83BD200049594 /* beach.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = beach.jpg; sourceTree = ""; }; 87 | E90943FC1CF83BD200049594 /* building.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = building.jpg; sourceTree = ""; }; 88 | E90943FD1CF83BD200049594 /* hands.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = hands.jpg; sourceTree = ""; }; 89 | E90943FE1CF83BD200049594 /* indonesia.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = indonesia.jpg; sourceTree = ""; }; 90 | E90943FF1CF83BD200049594 /* montain.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = montain.jpg; sourceTree = ""; }; 91 | E90944001CF83BD200049594 /* nyc.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = nyc.jpg; sourceTree = ""; }; 92 | E90944011CF83BD200049594 /* rotterdam.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = rotterdam.jpg; sourceTree = ""; }; 93 | E90944021CF83BD200049594 /* seattle.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = seattle.jpg; sourceTree = ""; }; 94 | E909440B1CF83C2B00049594 /* australia.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = australia.jpg; sourceTree = ""; }; 95 | /* End PBXFileReference section */ 96 | 97 | /* Begin PBXFrameworksBuildPhase section */ 98 | 71D04A0118D3068F0077B38B /* Frameworks */ = { 99 | isa = PBXFrameworksBuildPhase; 100 | buildActionMask = 2147483647; 101 | files = ( 102 | 71D04A0A18D3068F0077B38B /* CoreGraphics.framework in Frameworks */, 103 | 71D04A0C18D3068F0077B38B /* UIKit.framework in Frameworks */, 104 | 71D04A0818D3068F0077B38B /* Foundation.framework in Frameworks */, 105 | ); 106 | runOnlyForDeploymentPostprocessing = 0; 107 | }; 108 | 71D04A2518D3068F0077B38B /* Frameworks */ = { 109 | isa = PBXFrameworksBuildPhase; 110 | buildActionMask = 2147483647; 111 | files = ( 112 | 71D04A2A18D3068F0077B38B /* XCTest.framework in Frameworks */, 113 | 71D04A2C18D3068F0077B38B /* UIKit.framework in Frameworks */, 114 | 71D04A2B18D3068F0077B38B /* Foundation.framework in Frameworks */, 115 | ); 116 | runOnlyForDeploymentPostprocessing = 0; 117 | }; 118 | /* End PBXFrameworksBuildPhase section */ 119 | 120 | /* Begin PBXGroup section */ 121 | 71D049FB18D3068F0077B38B = { 122 | isa = PBXGroup; 123 | children = ( 124 | 71D04A0D18D3068F0077B38B /* AWCollectionViewDialLayoutDemo */, 125 | 71D04A2F18D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests */, 126 | 71D04A0618D3068F0077B38B /* Frameworks */, 127 | 71D04A0518D3068F0077B38B /* Products */, 128 | ); 129 | sourceTree = ""; 130 | }; 131 | 71D04A0518D3068F0077B38B /* Products */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 71D04A0418D3068F0077B38B /* AWCollectionViewDialLayoutDemo.app */, 135 | 71D04A2818D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests.xctest */, 136 | ); 137 | name = Products; 138 | sourceTree = ""; 139 | }; 140 | 71D04A0618D3068F0077B38B /* Frameworks */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 71D04A0718D3068F0077B38B /* Foundation.framework */, 144 | 71D04A0918D3068F0077B38B /* CoreGraphics.framework */, 145 | 71D04A0B18D3068F0077B38B /* UIKit.framework */, 146 | 71D04A2918D3068F0077B38B /* XCTest.framework */, 147 | ); 148 | name = Frameworks; 149 | sourceTree = ""; 150 | }; 151 | 71D04A0D18D3068F0077B38B /* AWCollectionViewDialLayoutDemo */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 71D04A4718D311340077B38B /* Assets */, 155 | 71D04A3F18D306930077B38B /* Classes */, 156 | 71D04A1618D3068F0077B38B /* AppDelegate.h */, 157 | 71D04A1718D3068F0077B38B /* AppDelegate.m */, 158 | 71D04A1918D3068F0077B38B /* Main_iPhone.storyboard */, 159 | 71D04A1C18D3068F0077B38B /* Main_iPad.storyboard */, 160 | 71D04A1F18D3068F0077B38B /* ViewController.h */, 161 | 71D04A2018D3068F0077B38B /* ViewController.m */, 162 | 71D04A4318D309C40077B38B /* dialCell.xib */, 163 | 71DD223818D879A1005450FA /* dialCell2.xib */, 164 | 71D04A4518D311190077B38B /* photos.json */, 165 | 71D04A0E18D3068F0077B38B /* Supporting Files */, 166 | 71DD0C6318D3540400152D0C /* iphone_settings_view.xib */, 167 | 7160264F1B302A750066AFA8 /* Images.xcassets */, 168 | ); 169 | path = AWCollectionViewDialLayoutDemo; 170 | sourceTree = ""; 171 | }; 172 | 71D04A0E18D3068F0077B38B /* Supporting Files */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | 71D04A0F18D3068F0077B38B /* AWCollectionViewDialLayoutDemo-Info.plist */, 176 | 71D04A1018D3068F0077B38B /* InfoPlist.strings */, 177 | 71D04A1318D3068F0077B38B /* main.m */, 178 | 71D04A1518D3068F0077B38B /* AWCollectionViewDialLayoutDemo-Prefix.pch */, 179 | 716026511B302B240066AFA8 /* splash.xib */, 180 | ); 181 | name = "Supporting Files"; 182 | sourceTree = ""; 183 | }; 184 | 71D04A2F18D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests */ = { 185 | isa = PBXGroup; 186 | children = ( 187 | 71D04A3518D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests.m */, 188 | 71D04A3018D3068F0077B38B /* Supporting Files */, 189 | ); 190 | path = AWCollectionViewDialLayoutDemoTests; 191 | sourceTree = ""; 192 | }; 193 | 71D04A3018D3068F0077B38B /* Supporting Files */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | 71D04A3118D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests-Info.plist */, 197 | 71D04A3218D3068F0077B38B /* InfoPlist.strings */, 198 | ); 199 | name = "Supporting Files"; 200 | sourceTree = ""; 201 | }; 202 | 71D04A3F18D306930077B38B /* Classes */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | 71D04A4018D306A30077B38B /* AWCollectionViewDialLayout.h */, 206 | 71D04A4118D306A30077B38B /* AWCollectionViewDialLayout.m */, 207 | ); 208 | name = Classes; 209 | sourceTree = ""; 210 | }; 211 | 71D04A4718D311340077B38B /* Assets */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | 71DD223A18D885F3005450FA /* awcollectionviewdiallayout_1.jpg */, 215 | 71DD223B18D885F3005450FA /* awcollectionviewdiallayout_2.jpg */, 216 | E909440B1CF83C2B00049594 /* australia.jpg */, 217 | E90943FB1CF83BD200049594 /* beach.jpg */, 218 | E90943FC1CF83BD200049594 /* building.jpg */, 219 | E90943FD1CF83BD200049594 /* hands.jpg */, 220 | E90943FE1CF83BD200049594 /* indonesia.jpg */, 221 | E90943FF1CF83BD200049594 /* montain.jpg */, 222 | E90944001CF83BD200049594 /* nyc.jpg */, 223 | E90944011CF83BD200049594 /* rotterdam.jpg */, 224 | E90944021CF83BD200049594 /* seattle.jpg */, 225 | 716026531B302B4B0066AFA8 /* logo.png */, 226 | ); 227 | name = Assets; 228 | sourceTree = ""; 229 | }; 230 | /* End PBXGroup section */ 231 | 232 | /* Begin PBXNativeTarget section */ 233 | 71D04A0318D3068F0077B38B /* AWCollectionViewDialLayoutDemo */ = { 234 | isa = PBXNativeTarget; 235 | buildConfigurationList = 71D04A3918D3068F0077B38B /* Build configuration list for PBXNativeTarget "AWCollectionViewDialLayoutDemo" */; 236 | buildPhases = ( 237 | 71D04A0018D3068F0077B38B /* Sources */, 238 | 71D04A0118D3068F0077B38B /* Frameworks */, 239 | 71D04A0218D3068F0077B38B /* Resources */, 240 | ); 241 | buildRules = ( 242 | ); 243 | dependencies = ( 244 | ); 245 | name = AWCollectionViewDialLayoutDemo; 246 | productName = AWCollectionViewDialLayoutDemo; 247 | productReference = 71D04A0418D3068F0077B38B /* AWCollectionViewDialLayoutDemo.app */; 248 | productType = "com.apple.product-type.application"; 249 | }; 250 | 71D04A2718D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests */ = { 251 | isa = PBXNativeTarget; 252 | buildConfigurationList = 71D04A3C18D3068F0077B38B /* Build configuration list for PBXNativeTarget "AWCollectionViewDialLayoutDemoTests" */; 253 | buildPhases = ( 254 | 71D04A2418D3068F0077B38B /* Sources */, 255 | 71D04A2518D3068F0077B38B /* Frameworks */, 256 | 71D04A2618D3068F0077B38B /* Resources */, 257 | ); 258 | buildRules = ( 259 | ); 260 | dependencies = ( 261 | 71D04A2E18D3068F0077B38B /* PBXTargetDependency */, 262 | ); 263 | name = AWCollectionViewDialLayoutDemoTests; 264 | productName = AWCollectionViewDialLayoutDemoTests; 265 | productReference = 71D04A2818D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests.xctest */; 266 | productType = "com.apple.product-type.bundle.unit-test"; 267 | }; 268 | /* End PBXNativeTarget section */ 269 | 270 | /* Begin PBXProject section */ 271 | 71D049FC18D3068F0077B38B /* Project object */ = { 272 | isa = PBXProject; 273 | attributes = { 274 | LastUpgradeCheck = 0510; 275 | ORGANIZATIONNAME = "Antoine Wette"; 276 | TargetAttributes = { 277 | 71D04A0318D3068F0077B38B = { 278 | DevelopmentTeam = XVUW2WS7ME; 279 | }; 280 | 71D04A2718D3068F0077B38B = { 281 | TestTargetID = 71D04A0318D3068F0077B38B; 282 | }; 283 | }; 284 | }; 285 | buildConfigurationList = 71D049FF18D3068F0077B38B /* Build configuration list for PBXProject "AWCollectionViewDialLayoutDemo" */; 286 | compatibilityVersion = "Xcode 3.2"; 287 | developmentRegion = English; 288 | hasScannedForEncodings = 0; 289 | knownRegions = ( 290 | en, 291 | Base, 292 | ); 293 | mainGroup = 71D049FB18D3068F0077B38B; 294 | productRefGroup = 71D04A0518D3068F0077B38B /* Products */; 295 | projectDirPath = ""; 296 | projectRoot = ""; 297 | targets = ( 298 | 71D04A0318D3068F0077B38B /* AWCollectionViewDialLayoutDemo */, 299 | 71D04A2718D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests */, 300 | ); 301 | }; 302 | /* End PBXProject section */ 303 | 304 | /* Begin PBXResourcesBuildPhase section */ 305 | 71D04A0218D3068F0077B38B /* Resources */ = { 306 | isa = PBXResourcesBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | E90944031CF83BD200049594 /* beach.jpg in Resources */, 310 | 71DD223D18D885F3005450FA /* awcollectionviewdiallayout_2.jpg in Resources */, 311 | 71D04A1E18D3068F0077B38B /* Main_iPad.storyboard in Resources */, 312 | E90944041CF83BD200049594 /* building.jpg in Resources */, 313 | 71DD0C6418D3540400152D0C /* iphone_settings_view.xib in Resources */, 314 | E90944071CF83BD200049594 /* montain.jpg in Resources */, 315 | E90944051CF83BD200049594 /* hands.jpg in Resources */, 316 | E909440C1CF83C2B00049594 /* australia.jpg in Resources */, 317 | E90944061CF83BD200049594 /* indonesia.jpg in Resources */, 318 | 716026521B302B240066AFA8 /* splash.xib in Resources */, 319 | 71D04A4418D309C40077B38B /* dialCell.xib in Resources */, 320 | 71D04A4618D311190077B38B /* photos.json in Resources */, 321 | 716026541B302B4B0066AFA8 /* logo.png in Resources */, 322 | E90944091CF83BD200049594 /* rotterdam.jpg in Resources */, 323 | E90944081CF83BD200049594 /* nyc.jpg in Resources */, 324 | 716026501B302A750066AFA8 /* Images.xcassets in Resources */, 325 | 71DD223918D879A1005450FA /* dialCell2.xib in Resources */, 326 | E909440A1CF83BD200049594 /* seattle.jpg in Resources */, 327 | 71DD223C18D885F3005450FA /* awcollectionviewdiallayout_1.jpg in Resources */, 328 | 71D04A1B18D3068F0077B38B /* Main_iPhone.storyboard in Resources */, 329 | 71D04A1218D3068F0077B38B /* InfoPlist.strings in Resources */, 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | 71D04A2618D3068F0077B38B /* Resources */ = { 334 | isa = PBXResourcesBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | 71D04A3418D3068F0077B38B /* InfoPlist.strings in Resources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | /* End PBXResourcesBuildPhase section */ 342 | 343 | /* Begin PBXSourcesBuildPhase section */ 344 | 71D04A0018D3068F0077B38B /* Sources */ = { 345 | isa = PBXSourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 71D04A2118D3068F0077B38B /* ViewController.m in Sources */, 349 | 71D04A1818D3068F0077B38B /* AppDelegate.m in Sources */, 350 | 71D04A1418D3068F0077B38B /* main.m in Sources */, 351 | 71D04A4218D306A30077B38B /* AWCollectionViewDialLayout.m in Sources */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | 71D04A2418D3068F0077B38B /* Sources */ = { 356 | isa = PBXSourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | 71D04A3618D3068F0077B38B /* AWCollectionViewDialLayoutDemoTests.m in Sources */, 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | /* End PBXSourcesBuildPhase section */ 364 | 365 | /* Begin PBXTargetDependency section */ 366 | 71D04A2E18D3068F0077B38B /* PBXTargetDependency */ = { 367 | isa = PBXTargetDependency; 368 | target = 71D04A0318D3068F0077B38B /* AWCollectionViewDialLayoutDemo */; 369 | targetProxy = 71D04A2D18D3068F0077B38B /* PBXContainerItemProxy */; 370 | }; 371 | /* End PBXTargetDependency section */ 372 | 373 | /* Begin PBXVariantGroup section */ 374 | 71D04A1018D3068F0077B38B /* InfoPlist.strings */ = { 375 | isa = PBXVariantGroup; 376 | children = ( 377 | 71D04A1118D3068F0077B38B /* en */, 378 | ); 379 | name = InfoPlist.strings; 380 | sourceTree = ""; 381 | }; 382 | 71D04A1918D3068F0077B38B /* Main_iPhone.storyboard */ = { 383 | isa = PBXVariantGroup; 384 | children = ( 385 | 71D04A1A18D3068F0077B38B /* Base */, 386 | ); 387 | name = Main_iPhone.storyboard; 388 | sourceTree = ""; 389 | }; 390 | 71D04A1C18D3068F0077B38B /* Main_iPad.storyboard */ = { 391 | isa = PBXVariantGroup; 392 | children = ( 393 | 71D04A1D18D3068F0077B38B /* Base */, 394 | ); 395 | name = Main_iPad.storyboard; 396 | sourceTree = ""; 397 | }; 398 | 71D04A3218D3068F0077B38B /* InfoPlist.strings */ = { 399 | isa = PBXVariantGroup; 400 | children = ( 401 | 71D04A3318D3068F0077B38B /* en */, 402 | ); 403 | name = InfoPlist.strings; 404 | sourceTree = ""; 405 | }; 406 | /* End PBXVariantGroup section */ 407 | 408 | /* Begin XCBuildConfiguration section */ 409 | 71D04A3718D3068F0077B38B /* Debug */ = { 410 | isa = XCBuildConfiguration; 411 | buildSettings = { 412 | ALWAYS_SEARCH_USER_PATHS = NO; 413 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 414 | CLANG_CXX_LIBRARY = "libc++"; 415 | CLANG_ENABLE_MODULES = YES; 416 | CLANG_ENABLE_OBJC_ARC = YES; 417 | CLANG_WARN_BOOL_CONVERSION = YES; 418 | CLANG_WARN_CONSTANT_CONVERSION = YES; 419 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 420 | CLANG_WARN_EMPTY_BODY = YES; 421 | CLANG_WARN_ENUM_CONVERSION = YES; 422 | CLANG_WARN_INT_CONVERSION = YES; 423 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 424 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 425 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 426 | COPY_PHASE_STRIP = NO; 427 | GCC_C_LANGUAGE_STANDARD = gnu99; 428 | GCC_DYNAMIC_NO_PIC = NO; 429 | GCC_OPTIMIZATION_LEVEL = 0; 430 | GCC_PREPROCESSOR_DEFINITIONS = ( 431 | "DEBUG=1", 432 | "$(inherited)", 433 | ); 434 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 435 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 436 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 437 | GCC_WARN_UNDECLARED_SELECTOR = YES; 438 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 439 | GCC_WARN_UNUSED_FUNCTION = YES; 440 | GCC_WARN_UNUSED_VARIABLE = YES; 441 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 442 | ONLY_ACTIVE_ARCH = YES; 443 | SDKROOT = iphoneos; 444 | TARGETED_DEVICE_FAMILY = "1,2"; 445 | }; 446 | name = Debug; 447 | }; 448 | 71D04A3818D3068F0077B38B /* Release */ = { 449 | isa = XCBuildConfiguration; 450 | buildSettings = { 451 | ALWAYS_SEARCH_USER_PATHS = NO; 452 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 453 | CLANG_CXX_LIBRARY = "libc++"; 454 | CLANG_ENABLE_MODULES = YES; 455 | CLANG_ENABLE_OBJC_ARC = YES; 456 | CLANG_WARN_BOOL_CONVERSION = YES; 457 | CLANG_WARN_CONSTANT_CONVERSION = YES; 458 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 459 | CLANG_WARN_EMPTY_BODY = YES; 460 | CLANG_WARN_ENUM_CONVERSION = YES; 461 | CLANG_WARN_INT_CONVERSION = YES; 462 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 463 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 464 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 465 | COPY_PHASE_STRIP = YES; 466 | ENABLE_NS_ASSERTIONS = NO; 467 | GCC_C_LANGUAGE_STANDARD = gnu99; 468 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 469 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 470 | GCC_WARN_UNDECLARED_SELECTOR = YES; 471 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 472 | GCC_WARN_UNUSED_FUNCTION = YES; 473 | GCC_WARN_UNUSED_VARIABLE = YES; 474 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 475 | SDKROOT = iphoneos; 476 | TARGETED_DEVICE_FAMILY = "1,2"; 477 | VALIDATE_PRODUCT = YES; 478 | }; 479 | name = Release; 480 | }; 481 | 71D04A3A18D3068F0077B38B /* Debug */ = { 482 | isa = XCBuildConfiguration; 483 | buildSettings = { 484 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 485 | CODE_SIGN_IDENTITY = "iPhone Developer"; 486 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 487 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 488 | GCC_PREFIX_HEADER = "AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayoutDemo-Prefix.pch"; 489 | INFOPLIST_FILE = "AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayoutDemo-Info.plist"; 490 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 491 | PRODUCT_NAME = "$(TARGET_NAME)"; 492 | PROVISIONING_PROFILE = ""; 493 | TARGETED_DEVICE_FAMILY = "1,2"; 494 | WRAPPER_EXTENSION = app; 495 | }; 496 | name = Debug; 497 | }; 498 | 71D04A3B18D3068F0077B38B /* Release */ = { 499 | isa = XCBuildConfiguration; 500 | buildSettings = { 501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 502 | CODE_SIGN_IDENTITY = "iPhone Developer"; 503 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 504 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 505 | GCC_PREFIX_HEADER = "AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayoutDemo-Prefix.pch"; 506 | INFOPLIST_FILE = "AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayoutDemo-Info.plist"; 507 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 508 | PRODUCT_NAME = "$(TARGET_NAME)"; 509 | PROVISIONING_PROFILE = ""; 510 | TARGETED_DEVICE_FAMILY = "1,2"; 511 | WRAPPER_EXTENSION = app; 512 | }; 513 | name = Release; 514 | }; 515 | 71D04A3D18D3068F0077B38B /* Debug */ = { 516 | isa = XCBuildConfiguration; 517 | buildSettings = { 518 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/AWCollectionViewDialLayoutDemo.app/AWCollectionViewDialLayoutDemo"; 519 | FRAMEWORK_SEARCH_PATHS = ( 520 | "$(SDKROOT)/Developer/Library/Frameworks", 521 | "$(inherited)", 522 | "$(DEVELOPER_FRAMEWORKS_DIR)", 523 | ); 524 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 525 | GCC_PREFIX_HEADER = "AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayoutDemo-Prefix.pch"; 526 | GCC_PREPROCESSOR_DEFINITIONS = ( 527 | "DEBUG=1", 528 | "$(inherited)", 529 | ); 530 | INFOPLIST_FILE = "AWCollectionViewDialLayoutDemoTests/AWCollectionViewDialLayoutDemoTests-Info.plist"; 531 | PRODUCT_NAME = "$(TARGET_NAME)"; 532 | TEST_HOST = "$(BUNDLE_LOADER)"; 533 | WRAPPER_EXTENSION = xctest; 534 | }; 535 | name = Debug; 536 | }; 537 | 71D04A3E18D3068F0077B38B /* Release */ = { 538 | isa = XCBuildConfiguration; 539 | buildSettings = { 540 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/AWCollectionViewDialLayoutDemo.app/AWCollectionViewDialLayoutDemo"; 541 | FRAMEWORK_SEARCH_PATHS = ( 542 | "$(SDKROOT)/Developer/Library/Frameworks", 543 | "$(inherited)", 544 | "$(DEVELOPER_FRAMEWORKS_DIR)", 545 | ); 546 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 547 | GCC_PREFIX_HEADER = "AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayoutDemo-Prefix.pch"; 548 | INFOPLIST_FILE = "AWCollectionViewDialLayoutDemoTests/AWCollectionViewDialLayoutDemoTests-Info.plist"; 549 | PRODUCT_NAME = "$(TARGET_NAME)"; 550 | TEST_HOST = "$(BUNDLE_LOADER)"; 551 | WRAPPER_EXTENSION = xctest; 552 | }; 553 | name = Release; 554 | }; 555 | /* End XCBuildConfiguration section */ 556 | 557 | /* Begin XCConfigurationList section */ 558 | 71D049FF18D3068F0077B38B /* Build configuration list for PBXProject "AWCollectionViewDialLayoutDemo" */ = { 559 | isa = XCConfigurationList; 560 | buildConfigurations = ( 561 | 71D04A3718D3068F0077B38B /* Debug */, 562 | 71D04A3818D3068F0077B38B /* Release */, 563 | ); 564 | defaultConfigurationIsVisible = 0; 565 | defaultConfigurationName = Release; 566 | }; 567 | 71D04A3918D3068F0077B38B /* Build configuration list for PBXNativeTarget "AWCollectionViewDialLayoutDemo" */ = { 568 | isa = XCConfigurationList; 569 | buildConfigurations = ( 570 | 71D04A3A18D3068F0077B38B /* Debug */, 571 | 71D04A3B18D3068F0077B38B /* Release */, 572 | ); 573 | defaultConfigurationIsVisible = 0; 574 | defaultConfigurationName = Release; 575 | }; 576 | 71D04A3C18D3068F0077B38B /* Build configuration list for PBXNativeTarget "AWCollectionViewDialLayoutDemoTests" */ = { 577 | isa = XCConfigurationList; 578 | buildConfigurations = ( 579 | 71D04A3D18D3068F0077B38B /* Debug */, 580 | 71D04A3E18D3068F0077B38B /* Release */, 581 | ); 582 | defaultConfigurationIsVisible = 0; 583 | defaultConfigurationName = Release; 584 | }; 585 | /* End XCConfigurationList section */ 586 | }; 587 | rootObject = 71D049FC18D3068F0077B38B /* Project object */; 588 | } 589 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo.xcodeproj/project.xcworkspace/xcshareddata/AWCollectionViewDialLayoutDemo.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 147826D4-0280-42EB-8031-256580E73503 9 | IDESourceControlProjectName 10 | AWCollectionViewDialLayoutDemo 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 3A21AA790FFECCE0A76588E9ACD8EBE9BE990D0E 14 | https://github.com/awdigital/AWCollectionViewDialLayout.git 15 | 16 | IDESourceControlProjectPath 17 | AWCollectionViewDialLayoutDemo.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 3A21AA790FFECCE0A76588E9ACD8EBE9BE990D0E 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/awdigital/AWCollectionViewDialLayout.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | 3A21AA790FFECCE0A76588E9ACD8EBE9BE990D0E 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 3A21AA790FFECCE0A76588E9ACD8EBE9BE990D0E 36 | IDESourceControlWCCName 37 | AWCollectionViewDialLayout 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo.xcodeproj/project.xcworkspace/xcuserdata/antoine.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo.xcodeproj/project.xcworkspace/xcuserdata/antoine.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo.xcodeproj/project.xcworkspace/xcuserdata/antoine.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges 6 | 7 | SnapshotAutomaticallyBeforeSignificantChanges 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo.xcodeproj/xcuserdata/antoine.xcuserdatad/xcschemes/AWCollectionViewDialLayoutDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo.xcodeproj/xcuserdata/antoine.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AWCollectionViewDialLayoutDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 71D04A0318D3068F0077B38B 16 | 17 | primary 18 | 19 | 20 | 71D04A2718D3068F0077B38B 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayout.h: -------------------------------------------------------------------------------- 1 | // 2 | // AWCollectionViewDialLayout.h 3 | // 4 | // 5 | // Created by Antoine Wette on 30.10.13. 6 | // Copyright (c) 2013 Antoine Wette. All rights reserved. 7 | // 8 | // info@antoinewette.com 9 | // www.antoinewette.com 10 | // 11 | 12 | #import 13 | 14 | @interface AWCollectionViewDialLayout : UICollectionViewFlowLayout 15 | 16 | typedef enum WheelAlignmentType : NSInteger WheelAlignmentType; 17 | enum WheelAlignmentType : NSInteger { 18 | WHEELALIGNMENTLEFT, 19 | WHEELALIGNMENTCENTER 20 | }; 21 | 22 | @property (readwrite, nonatomic, assign) int cellCount; 23 | @property (readwrite, nonatomic, assign) int wheelType; 24 | @property (readwrite, nonatomic, assign) CGPoint center; 25 | @property (readwrite, nonatomic, assign) CGFloat offset; 26 | @property (readwrite, nonatomic, assign) CGFloat itemHeight; 27 | @property (readwrite, nonatomic, assign) CGFloat xOffset; 28 | @property (readwrite, nonatomic, assign) CGSize cellSize; 29 | @property (readwrite, nonatomic, assign) CGFloat AngularSpacing; 30 | @property (readwrite, nonatomic, assign) CGFloat dialRadius; 31 | @property (readonly, nonatomic, strong) NSIndexPath *currentIndexPath; 32 | @property (readwrite, nonatomic, assign) int selectedItem; 33 | 34 | 35 | -(id)initWithRadius: (CGFloat) radius andAngularSpacing: (CGFloat) spacing andCellSize: (CGSize) cell andAlignment:(WheelAlignmentType)alignment andItemHeight:(CGFloat)height andXOffset: (CGFloat) xOffset; 36 | -(void)setShouldSnap:(BOOL)value; 37 | -(void)setShouldFlip:(BOOL)value; 38 | @end 39 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayout.m: -------------------------------------------------------------------------------- 1 | // 2 | // AWCollectionViewDialLayout.m 3 | // 4 | // 5 | // Created by Antoine Wette on 30.10.13. 6 | // Copyright (c) 2013 Antoine Wette. All rights reserved. 7 | // 8 | // info@antoinewette.com 9 | // www.antoinewette.com 10 | // 11 | 12 | #import "AWCollectionViewDialLayout.h" 13 | 14 | @implementation AWCollectionViewDialLayout{ 15 | BOOL shouldSnap; 16 | BOOL shouldFlip; 17 | CGPoint lastVelocity; 18 | } 19 | 20 | 21 | 22 | - (id)init 23 | { 24 | if ((self = [super init]) != NULL) 25 | { 26 | [self setup]; 27 | shouldSnap = NO; 28 | shouldFlip = NO; 29 | } 30 | return self; 31 | } 32 | 33 | -(id)initWithRadius: (CGFloat) radius andAngularSpacing: (CGFloat) spacing andCellSize: (CGSize) cell andAlignment:(WheelAlignmentType)alignment andItemHeight:(CGFloat)height andXOffset: (CGFloat) xOff{ 34 | if ((self = [super init]) != NULL) 35 | { 36 | shouldSnap = NO; 37 | shouldFlip = NO; 38 | 39 | self.dialRadius = radius; 40 | self.cellSize = cell; 41 | self.itemSize = cell; 42 | self.minimumInteritemSpacing = 0; 43 | self.minimumLineSpacing = 0; 44 | self.itemHeight = height; 45 | self.AngularSpacing = spacing; 46 | self.xOffset = xOff; 47 | self.wheelType = alignment; 48 | self.minimumInteritemSpacing = 0; 49 | self.minimumLineSpacing = 0; 50 | 51 | self.sectionInset = UIEdgeInsetsZero; 52 | self.scrollDirection = UICollectionViewScrollDirectionVertical; 53 | 54 | 55 | [self setup]; 56 | } 57 | return self; 58 | } 59 | 60 | -(void)setShouldSnap:(BOOL)value{ 61 | shouldSnap = value; 62 | } 63 | 64 | -(void)setShouldFlip:(BOOL)value{ 65 | shouldFlip = value; 66 | } 67 | 68 | - (void)setup 69 | { 70 | self.offset = 0.0f; 71 | } 72 | 73 | - (void)prepareLayout 74 | { 75 | [super prepareLayout]; 76 | self.cellCount = (self.collectionView.numberOfSections > 0)? (int)[self.collectionView numberOfItemsInSection:0] : 0; 77 | self.offset = -self.collectionView.contentOffset.y / self.itemHeight; 78 | } 79 | 80 | 81 | - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds 82 | { 83 | return YES; 84 | } 85 | 86 | 87 | 88 | 89 | - (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect 90 | { 91 | NSMutableArray *theLayoutAttributes = [[NSMutableArray alloc] init]; 92 | 93 | 94 | int maxVisiblesHalf = 180 / self.AngularSpacing; 95 | 96 | //float firstItem = fmax(0 , floorf(minY / self.itemHeight) - (90/self.AngularSpacing) ); 97 | //float lastItem = fmin( self.cellCount-1 , floorf(maxY / self.itemHeight) ); 98 | int lastIndex = -1; 99 | for( int i = 0; i < self.cellCount; i++ ){ 100 | CGRect itemFrame = [self getRectForItem:i]; 101 | if(CGRectIntersectsRect(rect, itemFrame) && i > (-1*self.offset - maxVisiblesHalf) && i < (-1*self.offset + maxVisiblesHalf)){ 102 | NSIndexPath *indexPath = [NSIndexPath indexPathForItem:i inSection:0]; 103 | UICollectionViewLayoutAttributes *theAttributes = [self layoutAttributesForItemAtIndexPath:indexPath]; 104 | [theLayoutAttributes addObject:theAttributes]; 105 | lastIndex = i; 106 | } 107 | } 108 | 109 | return theLayoutAttributes; 110 | } 111 | 112 | 113 | 114 | -(CGRect)getRectForItem:(int)item{ 115 | double newIndex = (item + self.offset); 116 | float scaleFactor = fmax(0.6, 1 - fabs( newIndex *0.25)); 117 | float deltaX = self.cellSize.width/2; 118 | float rX = cosf(self.AngularSpacing* newIndex *M_PI/180) * (self.dialRadius + (deltaX*scaleFactor)); 119 | float rY = sinf(self.AngularSpacing* newIndex *M_PI/180) * (self.dialRadius + (deltaX*scaleFactor)); 120 | float oX = -self.dialRadius + self.xOffset - (0.5 * self.cellSize.width); 121 | float oY = self.collectionView.bounds.size.height/2 + self.collectionView.contentOffset.y - (0.5 * self.cellSize.height); 122 | 123 | 124 | if(shouldFlip){ 125 | oX = self.collectionView.frame.size.width + self.dialRadius - self.xOffset - (0.5 * self.cellSize.width); 126 | rX *= -1; 127 | } 128 | 129 | CGRect itemFrame = CGRectMake(oX + rX, oY + rY, self.cellSize.width, self.cellSize.height); 130 | 131 | return itemFrame; 132 | } 133 | 134 | 135 | 136 | -(CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset withScrollingVelocity:(CGPoint)velocity{ 137 | if(shouldSnap){ 138 | int index =(int)floor(proposedContentOffset.y / self.itemHeight); 139 | int off = ((int)proposedContentOffset.y % (int)self.itemHeight); 140 | 141 | CGFloat targetY = (off > self.itemHeight * 0.5 && index <= self.cellCount)? (index+1) * self.itemHeight: index * self.itemHeight; 142 | return CGPointMake(proposedContentOffset.x, targetY ); 143 | }else{ 144 | return proposedContentOffset; 145 | } 146 | } 147 | 148 | -(NSIndexPath *)targetIndexPathForInteractivelyMovingItem:(NSIndexPath *)previousIndexPath withPosition:(CGPoint)position{ 149 | NSLog(@"targetIndexPathForInteractivelyMovingItem"); 150 | return [NSIndexPath indexPathForItem:0 inSection:0]; 151 | } 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | - (CGSize)collectionViewContentSize 161 | { 162 | 163 | const CGSize theSize = { 164 | .width = self.collectionView.bounds.size.width, 165 | .height = (self.cellCount-1) * self.itemHeight + self.collectionView.bounds.size.height, 166 | }; 167 | return(theSize); 168 | } 169 | 170 | - (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath 171 | { 172 | double newIndex = (indexPath.item + self.offset); 173 | 174 | UICollectionViewLayoutAttributes *theAttributes = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:indexPath]; 175 | 176 | theAttributes.size = self.cellSize; 177 | 178 | float scaleFactor; 179 | float deltaX; 180 | CGAffineTransform translationT; 181 | CGAffineTransform rotationT = CGAffineTransformMakeRotation(self.AngularSpacing* newIndex *M_PI/180); 182 | 183 | if(shouldFlip){ 184 | rotationT = CGAffineTransformMakeRotation(-self.AngularSpacing* newIndex *M_PI/180); 185 | } 186 | 187 | CGFloat minRange = -self.AngularSpacing / 2.0; 188 | CGFloat maxRange = self.AngularSpacing / 2.0; 189 | CGFloat currentAngle = self.AngularSpacing*newIndex; 190 | 191 | if ((currentAngle > minRange) && (currentAngle < maxRange)) { 192 | self.selectedItem = indexPath.item; 193 | } 194 | 195 | if( self.wheelType == WHEELALIGNMENTLEFT){ 196 | 197 | scaleFactor = fmax(0.6, 1 - fabs( newIndex *0.25)); 198 | CGRect newFrame = [self getRectForItem:(int)indexPath.item]; 199 | theAttributes.frame = CGRectMake(newFrame.origin.x , newFrame.origin.y, newFrame.size.width, newFrame.size.height); 200 | translationT =CGAffineTransformMakeTranslation(0 , 0); 201 | }else { 202 | scaleFactor = fmax(0.4, 1 - fabs( newIndex *0.50)); 203 | deltaX = self.collectionView.bounds.size.width/2; 204 | 205 | if(shouldFlip){ 206 | theAttributes.center = CGPointMake( self.collectionView.frame.size.width + self.dialRadius - self.xOffset , self.collectionView.bounds.size.height/2 + self.collectionView.contentOffset.y); 207 | translationT =CGAffineTransformMakeTranslation( -1 * (self.dialRadius + ((1 - scaleFactor) * -30)) , 0); 208 | NSLog(@"should Flip "); 209 | }else{ 210 | theAttributes.center = CGPointMake(-self.dialRadius + self.xOffset , self.collectionView.bounds.size.height/2 + self.collectionView.contentOffset.y); 211 | translationT =CGAffineTransformMakeTranslation(self.dialRadius + ((1 - scaleFactor) * -30) , 0); 212 | NSLog(@"should not Flip "); 213 | } 214 | } 215 | 216 | 217 | 218 | CGAffineTransform scaleT = CGAffineTransformMakeScale(scaleFactor, scaleFactor); 219 | theAttributes.alpha = scaleFactor; 220 | theAttributes.hidden = NO; 221 | 222 | theAttributes.transform = CGAffineTransformConcat(scaleT, CGAffineTransformConcat(translationT, rotationT)); 223 | 224 | return(theAttributes); 225 | } 226 | 227 | 228 | 229 | @end 230 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayoutDemo-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Dial Layout 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIcons 12 | 13 | CFBundleIcons~ipad 14 | 15 | CFBundleIdentifier 16 | com.bub.${PRODUCT_NAME:rfc1034identifier} 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | ${PRODUCT_NAME} 21 | CFBundlePackageType 22 | APPL 23 | CFBundleShortVersionString 24 | 1.0 25 | CFBundleSignature 26 | ???? 27 | CFBundleVersion 28 | 1.0 29 | LSRequiresIPhoneOS 30 | 31 | UILaunchStoryboardName 32 | splash 33 | UIMainStoryboardFile 34 | Main_iPhone 35 | UIMainStoryboardFile~ipad 36 | Main_iPad 37 | UIRequiredDeviceCapabilities 38 | 39 | armv7 40 | 41 | UISupportedInterfaceOrientations 42 | 43 | UIInterfaceOrientationPortrait 44 | 45 | UISupportedInterfaceOrientations~ipad 46 | 47 | UIInterfaceOrientationPortrait 48 | UIInterfaceOrientationPortraitUpsideDown 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/AWCollectionViewDialLayoutDemo-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 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // AWCollectionViewDialLayoutDemo 4 | // 5 | // Created by Antoine Wette on 14.03.14. 6 | // Copyright (c) 2014 Antoine Wette. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // AWCollectionViewDialLayoutDemo 4 | // 5 | // Created by Antoine Wette on 14.03.14. 6 | // Copyright (c) 2014 Antoine Wette. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @implementation AppDelegate 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 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Base.lproj/Main_iPad.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 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Base.lproj/Main_iPhone.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 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "appicon-29@2x-1.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "40x40", 11 | "idiom" : "iphone", 12 | "filename" : "appicon-40@2x-1.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "60x60", 17 | "idiom" : "iphone", 18 | "filename" : "appicon-60@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "60x60", 23 | "idiom" : "iphone", 24 | "filename" : "appicon-60@3x.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "ipad", 30 | "filename" : "appicon-29-1.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "29x29", 35 | "idiom" : "ipad", 36 | "filename" : "appicon-29@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "ipad", 42 | "filename" : "appicon-40.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "40x40", 47 | "idiom" : "ipad", 48 | "filename" : "appicon-40@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "76x76", 53 | "idiom" : "ipad", 54 | "filename" : "appicon-76.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "76x76", 59 | "idiom" : "ipad", 60 | "filename" : "appicon-76@2x.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-29@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-29@2x-1.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-29@2x.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-40.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-40@2x-1.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-40@2x.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-60@2x.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-60@3x.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-76.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/Images.xcassets/AppIcon.appiconset/appicon-76@2x.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "ipad", 6 | "minimum-system-version" : "7.0", 7 | "extent" : "full-screen", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "landscape", 12 | "idiom" : "ipad", 13 | "minimum-system-version" : "7.0", 14 | "extent" : "full-screen", 15 | "scale" : "1x" 16 | }, 17 | { 18 | "orientation" : "landscape", 19 | "idiom" : "ipad", 20 | "minimum-system-version" : "7.0", 21 | "extent" : "full-screen", 22 | "scale" : "2x" 23 | }, 24 | { 25 | "orientation" : "portrait", 26 | "idiom" : "iphone", 27 | "minimum-system-version" : "7.0", 28 | "scale" : "2x" 29 | }, 30 | { 31 | "orientation" : "portrait", 32 | "idiom" : "iphone", 33 | "minimum-system-version" : "7.0", 34 | "subtype" : "retina4", 35 | "scale" : "2x" 36 | }, 37 | { 38 | "orientation" : "portrait", 39 | "idiom" : "ipad", 40 | "minimum-system-version" : "7.0", 41 | "extent" : "full-screen", 42 | "scale" : "1x" 43 | } 44 | ], 45 | "info" : { 46 | "version" : 1, 47 | "author" : "xcode" 48 | } 49 | } -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // AWCollectionViewDialLayoutDemo 4 | // 5 | // Created by Antoine Wette on 14.03.14. 6 | // Copyright (c) 2014 Antoine Wette. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | @property (nonatomic, weak) IBOutlet UICollectionView *collectionView; 14 | @property (nonatomic, weak) IBOutlet UIBarButtonItem *editBtn; 15 | @property NSArray *items; 16 | @end 17 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // AWCollectionViewDialLayoutDemo 4 | // 5 | // Created by Antoine Wette on 14.03.14. 6 | // Copyright (c) 2014 Antoine Wette. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "AWCollectionViewDialLayout.h" 11 | 12 | @interface ViewController () 13 | 14 | @end 15 | 16 | static NSString *cellId = @"cellId"; 17 | static NSString *cellId2 = @"cellId2"; 18 | 19 | 20 | @implementation ViewController{ 21 | NSMutableDictionary *thumbnailCache; 22 | BOOL showingSettings; 23 | UIView *settingsView; 24 | 25 | UILabel *radiusLabel; 26 | UISlider *radiusSlider; 27 | UILabel *angularSpacingLabel; 28 | UISlider *angularSpacingSlider; 29 | UILabel *xOffsetLabel; 30 | UISlider *xOffsetSlider; 31 | UISegmentedControl *exampleSwitch; 32 | AWCollectionViewDialLayout *dialLayout; 33 | CGFloat cell_height; 34 | 35 | int type; 36 | } 37 | 38 | @synthesize collectionView, items, editBtn; 39 | - (void)viewDidLoad 40 | { 41 | [super viewDidLoad]; 42 | type = 0; 43 | showingSettings = NO; 44 | 45 | 46 | [collectionView registerNib:[UINib nibWithNibName:@"dialCell" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:cellId]; 47 | [collectionView registerNib:[UINib nibWithNibName:@"dialCell2" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:cellId2]; 48 | 49 | 50 | NSError *error; 51 | NSString *jsonPath = [[NSBundle mainBundle] pathForResource:@"photos" ofType:@"json"]; 52 | NSString *jsonString = [[NSString alloc] initWithContentsOfFile:jsonPath encoding:NSUTF8StringEncoding error:NULL]; 53 | NSLog(@"jsonString:%@",jsonString); 54 | items = [NSJSONSerialization JSONObjectWithData:[jsonString dataUsingEncoding:NSUTF8StringEncoding] options:kNilOptions error:&error]; 55 | 56 | settingsView = [[UIView alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height, self.view.frame.size.width, self.view.frame.size.height-44)]; 57 | [settingsView setBackgroundColor:[UIColor colorWithWhite:0.0 alpha:0.4]]; 58 | [self.view addSubview:settingsView]; 59 | [self buildSettings]; 60 | 61 | 62 | CGFloat radius = radiusSlider.value * 1000; 63 | CGFloat angularSpacing = angularSpacingSlider.value * 90; 64 | CGFloat xOffset = xOffsetSlider.value * 320; 65 | CGFloat cell_width = 240; 66 | cell_height = 100; 67 | [radiusLabel setText:[NSString stringWithFormat:@"Radius: %i", (int)radius]]; 68 | [angularSpacingLabel setText:[NSString stringWithFormat:@"Angular spacing: %i", (int)angularSpacing]]; 69 | [xOffsetLabel setText:[NSString stringWithFormat:@"X offset: %i", (int)xOffset]]; 70 | 71 | 72 | dialLayout = [[AWCollectionViewDialLayout alloc] initWithRadius:radius andAngularSpacing:angularSpacing andCellSize:CGSizeMake(cell_width, cell_height) andAlignment:WHEELALIGNMENTCENTER andItemHeight:cell_height andXOffset:xOffset]; 73 | [dialLayout setShouldSnap:YES]; 74 | [collectionView setCollectionViewLayout:dialLayout]; 75 | dialLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal; 76 | 77 | [editBtn setTarget:self]; 78 | [editBtn setAction:@selector(toggleSettingsView)]; 79 | 80 | [self switchExample]; 81 | 82 | } 83 | 84 | -(void)buildSettings{ 85 | NSArray *viewArr = [[NSBundle mainBundle] loadNibNamed:@"iphone_settings_view" owner:self options:nil]; 86 | UIView *innerView = [viewArr objectAtIndex:0]; 87 | CGRect frame = self.view.bounds; 88 | frame.origin.y = (self.view.frame.size.height/2 - frame.size.height/2)/2; 89 | innerView.frame = frame; 90 | [settingsView addSubview:innerView]; 91 | 92 | [innerView setNeedsLayout]; 93 | [innerView layoutIfNeeded]; 94 | 95 | radiusLabel = (UILabel*)[innerView viewWithTag:100]; 96 | radiusSlider = (UISlider*)[innerView viewWithTag:200]; 97 | [radiusSlider addTarget:self action:@selector(updateDialSettings) forControlEvents:UIControlEventValueChanged]; 98 | 99 | angularSpacingLabel = (UILabel*)[innerView viewWithTag:101]; 100 | angularSpacingSlider = (UISlider*)[innerView viewWithTag:201]; 101 | [angularSpacingSlider addTarget:self action:@selector(updateDialSettings) forControlEvents:UIControlEventValueChanged]; 102 | 103 | xOffsetLabel = (UILabel*)[innerView viewWithTag:102]; 104 | xOffsetSlider = (UISlider*)[innerView viewWithTag:202]; 105 | [xOffsetSlider addTarget:self action:@selector(updateDialSettings) forControlEvents:UIControlEventValueChanged]; 106 | 107 | exampleSwitch = (UISegmentedControl*)[innerView viewWithTag:203]; 108 | [exampleSwitch addTarget:self action:@selector(switchExample) forControlEvents:UIControlEventValueChanged]; 109 | } 110 | 111 | -(void)switchExample{ 112 | type = (int)exampleSwitch.selectedSegmentIndex; 113 | CGFloat radius = 0 ,angularSpacing = 0, xOffset = 0; 114 | 115 | if(type == 0){ 116 | [dialLayout setCellSize:CGSizeMake(340, 100)]; 117 | [dialLayout setWheelType:WHEELALIGNMENTLEFT]; 118 | [dialLayout setShouldFlip:NO]; 119 | 120 | radius = 300; 121 | angularSpacing = 18; 122 | xOffset = 70; 123 | }else if(type == 1){ 124 | [dialLayout setCellSize:CGSizeMake(260, 50)]; 125 | [dialLayout setWheelType:WHEELALIGNMENTCENTER]; 126 | [dialLayout setShouldFlip:YES]; 127 | 128 | radius = 320; 129 | angularSpacing = 5; 130 | xOffset = 124; 131 | 132 | 133 | 134 | } 135 | 136 | [radiusLabel setText:[NSString stringWithFormat:@"Radius: %i", (int)radius]]; 137 | radiusSlider.value = radius/1000; 138 | [dialLayout setDialRadius:radius]; 139 | 140 | [angularSpacingLabel setText:[NSString stringWithFormat:@"Angular spacing: %i", (int)angularSpacing]]; 141 | angularSpacingSlider.value = angularSpacing / 90; 142 | [dialLayout setAngularSpacing:angularSpacing]; 143 | 144 | [xOffsetLabel setText:[NSString stringWithFormat:@"X offset: %i", (int)xOffset]]; 145 | xOffsetSlider.value = xOffset/320; 146 | [dialLayout setXOffset:xOffset]; 147 | 148 | 149 | [collectionView reloadData]; 150 | 151 | } 152 | 153 | -(void)updateDialSettings{ 154 | CGFloat radius = radiusSlider.value * 1000; 155 | CGFloat angularSpacing = angularSpacingSlider.value * 90; 156 | CGFloat xOffset = xOffsetSlider.value * 320; 157 | 158 | [radiusLabel setText:[NSString stringWithFormat:@"Radius: %i", (int)radius]]; 159 | [dialLayout setDialRadius:radius]; 160 | 161 | [angularSpacingLabel setText:[NSString stringWithFormat:@"Angular spacing: %i", (int)angularSpacing]]; 162 | [dialLayout setAngularSpacing:angularSpacing]; 163 | 164 | [xOffsetLabel setText:[NSString stringWithFormat:@"X offset: %i", (int)xOffset]]; 165 | [dialLayout setXOffset:xOffset]; 166 | 167 | [dialLayout invalidateLayout]; 168 | //[collectionView reloadData]; 169 | NSLog(@"updateDialSettings"); 170 | } 171 | 172 | -(void)toggleSettingsView{ 173 | CGRect frame = settingsView.frame; 174 | if(showingSettings){ 175 | editBtn.title = @"Edit"; 176 | frame.origin.y = self.view.frame.size.height; 177 | }else{ 178 | editBtn.title = @"Close"; 179 | frame.origin.y = 44; 180 | } 181 | [UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{ 182 | settingsView.frame = frame; 183 | } completion:^(BOOL finished) { 184 | 185 | }]; 186 | 187 | showingSettings = !showingSettings; 188 | } 189 | 190 | -(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{ 191 | return self.items.count; 192 | } 193 | 194 | -(NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{ 195 | return 1; 196 | } 197 | 198 | -(BOOL)prefersStatusBarHidden{ 199 | return YES; 200 | } 201 | 202 | -(UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath:(NSIndexPath *)indexPath{ 203 | 204 | UICollectionViewCell *cell; 205 | if(type == 0){ 206 | cell = [cv dequeueReusableCellWithReuseIdentifier:cellId forIndexPath:indexPath]; 207 | }else{ 208 | cell = [cv dequeueReusableCellWithReuseIdentifier:cellId2 forIndexPath:indexPath]; 209 | } 210 | 211 | NSDictionary *item = [self.items objectAtIndex:indexPath.item]; 212 | 213 | NSString *playerName = [item valueForKey:@"name"]; 214 | UILabel *nameLabel = (UILabel*)[cell viewWithTag:101]; 215 | [nameLabel setText:playerName]; 216 | 217 | 218 | NSString *hexColor = [item valueForKey:@"color"]; 219 | 220 | 221 | if(type == 0){ 222 | NSString *imgURL = [item valueForKey:@"picture"]; 223 | UIImageView *imgView = (UIImageView*)[cell viewWithTag:100]; 224 | [imgView setImage:nil]; 225 | __block UIImage *imageProduct = [thumbnailCache objectForKey:imgURL]; 226 | if(imageProduct){ 227 | imgView.image = imageProduct; 228 | } 229 | else{ 230 | dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul); 231 | dispatch_async(queue, ^{ 232 | UIImage *image = [UIImage imageNamed:imgURL]; 233 | dispatch_async(dispatch_get_main_queue(), ^{ 234 | imgView.image = image; 235 | [thumbnailCache setValue:image forKey:imgURL]; 236 | }); 237 | }); 238 | } 239 | 240 | }else{ 241 | nameLabel.textColor = [self colorFromHex:hexColor]; 242 | } 243 | 244 | 245 | return cell; 246 | } 247 | 248 | 249 | 250 | -(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ 251 | NSDictionary *item = [self.items objectAtIndex:indexPath.item]; 252 | NSString *link = [item valueForKey:@"url"]; 253 | [[UIApplication sharedApplication] openURL:[NSURL URLWithString:link]]; 254 | } 255 | 256 | 257 | 258 | - (unsigned int)intFromHexString:(NSString *)hexStr 259 | { 260 | unsigned int hexInt = 0; 261 | // Create scanner 262 | NSScanner *scanner = [NSScanner scannerWithString:hexStr]; 263 | // Tell scanner to skip the # character 264 | [scanner setCharactersToBeSkipped:[NSCharacterSet characterSetWithCharactersInString:@"#"]]; 265 | // Scan hex value 266 | [scanner scanHexInt:&hexInt]; 267 | return hexInt; 268 | } 269 | 270 | -(UIColor*)colorFromHex:(NSString*)hexString{ 271 | unsigned int hexint = [self intFromHexString:hexString]; 272 | 273 | // Create color object, specifying alpha as well 274 | UIColor *color = 275 | [UIColor colorWithRed:((CGFloat) ((hexint & 0xFF0000) >> 16))/255 276 | green:((CGFloat) ((hexint & 0xFF00) >> 8))/255 277 | blue:((CGFloat) (hexint & 0xFF))/255 278 | alpha:1]; 279 | 280 | return color; 281 | } 282 | 283 | - (void)didReceiveMemoryWarning 284 | { 285 | [super didReceiveMemoryWarning]; 286 | // Dispose of any resources that can be recreated. 287 | } 288 | 289 | @end 290 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/australia.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/australia.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/awcollectionviewdiallayout_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/awcollectionviewdiallayout_1.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/awcollectionviewdiallayout_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/awcollectionviewdiallayout_2.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/beach.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/beach.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/building.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/building.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/dialCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 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 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/dialCell2.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/hands.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/hands.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/indonesia.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/indonesia.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/iphone_settings_view.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/logo.png -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // AWCollectionViewDialLayoutDemo 4 | // 5 | // Created by Antoine Wette on 14.03.14. 6 | // Copyright (c) 2014 Antoine Wette. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/montain.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/montain.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/nyc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/nyc.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/photos.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "New York, United States", 4 | "picture": "building.jpg", 5 | "url": "https://unsplash.com/photos/TZCehSn-T-o", 6 | "color": "#c39b77" 7 | }, 8 | { 9 | "name": "Yuriria, Mexico", 10 | "picture": "hands.jpg", 11 | "url": "https://unsplash.com/photos/zFnk_bTLApo", 12 | "color": "#36cca7" 13 | }, 14 | { 15 | "name": "Big Sur, United States", 16 | "picture": "beach.jpg", 17 | "url": "https://unsplash.com/photos/sYegwYtIqJg", 18 | "color": "#30b4da" 19 | }, 20 | { 21 | "name": "Penrith, United Kingdom", 22 | "picture": "montain.jpg", 23 | "url": "https://unsplash.com/photos/v1bP6olgtx0", 24 | "color": "#bbbac2" 25 | } , 26 | { 27 | "name": "New York, USA", 28 | "picture": "nyc.jpg", 29 | "url": "https://unsplash.com/photos/bITjK6W2Alw", 30 | "color": "#c1a78c" 31 | }, 32 | { 33 | "name": "Indonesia", 34 | "picture": "indonesia.jpg", 35 | "url": "https://unsplash.com/photos/fwsvUxNgLRs", 36 | "color": "#abc1d9" 37 | }, 38 | { 39 | "name": "Wye River, Australia", 40 | "picture": "australia.jpg", 41 | "url": "https://unsplash.com/photos/5Qwz2KyfIBE", 42 | "color": "#e6b421" 43 | }, 44 | { 45 | "name": "Rotterdam, Netherlands", 46 | "picture": "rotterdam.jpg", 47 | "url": "https://unsplash.com/photos/sai-x7brics", 48 | "color": "#7fb774" 49 | }, 50 | { 51 | "name": "Seattle, United States", 52 | "picture": "seattle.jpg", 53 | "url": "https://unsplash.com/photos/bIQiMWxX_WU", 54 | "color": "#aa8d6b" 55 | }, 56 | { 57 | "name": "New York, United States", 58 | "picture": "building.jpg", 59 | "url": "https://unsplash.com/photos/TZCehSn-T-o", 60 | "color": "#c39b77" 61 | }, 62 | { 63 | "name": "Yuriria, Mexico", 64 | "picture": "hands.jpg", 65 | "url": "https://unsplash.com/photos/zFnk_bTLApo", 66 | "color": "#36cca7" 67 | }, 68 | { 69 | "name": "Big Sur, United States", 70 | "picture": "beach.jpg", 71 | "url": "https://unsplash.com/photos/sYegwYtIqJg", 72 | "color": "#30b4da" 73 | }, 74 | { 75 | "name": "Penrith, United Kingdom", 76 | "picture": "montain.jpg", 77 | "url": "https://unsplash.com/photos/v1bP6olgtx0", 78 | "color": "#bbbac2" 79 | } , 80 | { 81 | "name": "New York, USA", 82 | "picture": "nyc.jpg", 83 | "url": "https://unsplash.com/photos/bITjK6W2Alw", 84 | "color": "#c1a78c" 85 | }, 86 | { 87 | "name": "Indonesia", 88 | "picture": "indonesia.jpg", 89 | "url": "https://unsplash.com/photos/fwsvUxNgLRs", 90 | "color": "#abc1d9" 91 | }, 92 | { 93 | "name": "Wye River, Australia", 94 | "picture": "australia.jpg", 95 | "url": "https://unsplash.com/photos/5Qwz2KyfIBE", 96 | "color": "#e6b421" 97 | }, 98 | { 99 | "name": "Rotterdam, Netherlands", 100 | "picture": "rotterdam.jpg", 101 | "url": "https://unsplash.com/photos/sai-x7brics", 102 | "color": "#7fb774" 103 | }, 104 | { 105 | "name": "Seattle, United States", 106 | "picture": "seattle.jpg", 107 | "url": "https://unsplash.com/photos/bIQiMWxX_WU", 108 | "color": "#aa8d6b" 109 | }, 110 | { 111 | "name": "New York, United States", 112 | "picture": "building.jpg", 113 | "url": "https://unsplash.com/photos/TZCehSn-T-o", 114 | "color": "#c39b77" 115 | }, 116 | { 117 | "name": "Yuriria, Mexico", 118 | "picture": "hands.jpg", 119 | "url": "https://unsplash.com/photos/zFnk_bTLApo", 120 | "color": "#36cca7" 121 | }, 122 | { 123 | "name": "Big Sur, United States", 124 | "picture": "beach.jpg", 125 | "url": "https://unsplash.com/photos/sYegwYtIqJg", 126 | "color": "#30b4da" 127 | }, 128 | { 129 | "name": "Penrith, United Kingdom", 130 | "picture": "montain.jpg", 131 | "url": "https://unsplash.com/photos/v1bP6olgtx0", 132 | "color": "#bbbac2" 133 | } , 134 | { 135 | "name": "New York, USA", 136 | "picture": "nyc.jpg", 137 | "url": "https://unsplash.com/photos/bITjK6W2Alw", 138 | "color": "#c1a78c" 139 | }, 140 | { 141 | "name": "Indonesia", 142 | "picture": "indonesia.jpg", 143 | "url": "https://unsplash.com/photos/fwsvUxNgLRs", 144 | "color": "#abc1d9" 145 | }, 146 | { 147 | "name": "Wye River, Australia", 148 | "picture": "australia.jpg", 149 | "url": "https://unsplash.com/photos/5Qwz2KyfIBE", 150 | "color": "#e6b421" 151 | }, 152 | { 153 | "name": "Rotterdam, Netherlands", 154 | "picture": "rotterdam.jpg", 155 | "url": "https://unsplash.com/photos/sai-x7brics", 156 | "color": "#7fb774" 157 | }, 158 | { 159 | "name": "Seattle, United States", 160 | "picture": "seattle.jpg", 161 | "url": "https://unsplash.com/photos/bIQiMWxX_WU", 162 | "color": "#aa8d6b" 163 | } 164 | ] -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/rotterdam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/rotterdam.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/seattle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awdigital/AWCollectionViewDialLayout/b794fa5e45de9c6ef7255eec4f7038d8e5e953e9/AWCollectionViewDialLayoutDemo/seattle.jpg -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemo/splash.xib: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemoTests/AWCollectionViewDialLayoutDemoTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.aw.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemoTests/AWCollectionViewDialLayoutDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // AWCollectionViewDialLayoutDemoTests.m 3 | // AWCollectionViewDialLayoutDemoTests 4 | // 5 | // Created by Antoine Wette on 14.03.14. 6 | // Copyright (c) 2014 Antoine Wette. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AWCollectionViewDialLayoutDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation AWCollectionViewDialLayoutDemoTests 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 | -------------------------------------------------------------------------------- /AWCollectionViewDialLayoutDemoTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Antoine Wette 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | AWCollectionViewDialLayout 2 | ========================== 3 | 4 | UICollectionViewLayout for displaying cells in a semi-circle with a nice fish eye effect. 5 | 6 | Very handy for quickly browsing items with your left thumb without having some of the content hidden behind your finger while you scroll. 7 | 8 | ![Demo Gif](http://www.antoinewette.com/github/awdiallayout.gif) 9 | 10 | 11 | * * * 12 | ####Initialize Layout 13 | 14 | ```Objective-C 15 | // Radius : The radius of your circle 16 | // Angular spacing: Angle between items (deg) 17 | // Cell Size: Size of your cell 18 | // Alignment: Supports 2 Types: WHEELALIGNMENTLEFT and WHEELALIGNMENTCENTER 19 | // X-Offset: To translate the circle along the x-axis 20 | 21 | AWCollectionViewDialLayout *dialLayout = [[AWCollectionViewDialLayout alloc] initWithRadius:300.0 andAngularSpacing:18.0 andCellSize:CGSizeMake(240, 100) andAlignment:WHEELALIGNMENTCENTER andItemHeight:100 andXOffset:70]; 22 | ``` 23 | 24 | * * * 25 | ####Enable Snap Mode 26 | 27 | ```Objective-C 28 | [dialLayout setShouldSnap:YES]; 29 | ``` 30 | 31 | * * * 32 | ####Programmatically scroll to item at index 33 | 34 | Use the **cell_height** variable you used to initialize the CollectionViewLayout and multiply it by the IndexPath.item 35 | ```Objective-C 36 | // Scroll to item at indexPath (0,2) 37 | [self.collectionView setContentOffset:CGPointMake(0, cell_height * 2) animated:YES]; 38 | ``` 39 | * * * 40 | #### Flip Horizontally 41 | 42 | You can set the flip option to YES if you want to display your items on the right side of the CollectionView. 43 | 44 | ```Objective-C 45 | [dialLayout setShouldFlip:YES]; 46 | ``` 47 | 48 | * * * 49 | --------------------------------------------------------------------------------