├── LICENSE ├── README.md ├── StickyCollectionView.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── bogdanmatveev.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── bogdanmatveev.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── StickyCollectionView.xcscheme │ └── xcschememanagement.plist └── StickyCollectionView ├── App └── AppDelegate.swift ├── Demo ├── Helpers │ └── UIColor+Hex.swift ├── ViewControllers │ ├── Cells │ │ ├── CornerCollectionViewCell.swift │ │ └── PrimerCollectionViewCell.swift │ ├── CornerViewController.swift │ ├── PrimerViewController.swift │ └── WelcomeViewController.swift └── Views │ └── CustomizableButton.swift ├── Info.plist ├── Source └── StickyCollectionViewFlowLayout.swift └── Supporting Files ├── Assets.xcassets ├── AppIcon.appiconset │ └── Contents.json ├── Contents.json ├── arrow_down.imageset │ ├── Contents.json │ └── arrow_down@2x.png ├── primer_cell_logo.imageset │ ├── Contents.json │ └── primer_cell_logo@2x.png └── welcome_background.imageset │ ├── Contents.json │ └── Dark-Forest-iphone-5-wallpaper-ilikewallpaper_com.jpg └── Base.lproj ├── LaunchScreen.storyboard └── Main.storyboard /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Bogdan Matveev 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. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## StickyCollectionView 2 | UICollectionView layout for presenting of the overlapping cells. [Objective-C version here](https://github.com/matbeich/StickyCollectionView) 3 | 4 | [Checkout demo](https://appetize.io/app/63y1wgk56p6c4h9zr5n6efy9wm?device=iphone5s&scale=75&orientation=portrait&osVersion=9.2) 5 | ## Overview 6 | ![Corner Collection View](https://cloud.githubusercontent.com/assets/5644547/11768922/90c8ddb2-a1ec-11e5-9476-bff461e214c2.gif) 7 | ![Primer Collection View](https://cloud.githubusercontent.com/assets/5644547/12595806/6f3bcfdc-c48e-11e5-91e0-1c4b724bf154.gif) 8 | ## Installation 9 | 10 | ### Manually 11 | Drag the files from the Source folder into your project. 12 | 13 | ### Usage 14 | Just use StickCollectionViewFlowLayout as a layout of your collection view. 15 | 16 | ## Requirements 17 | - Swift 18 | - Xcode 7 19 | 20 | ## License 21 | Released under the MIT license. See the LICENSE file for more info. 22 | -------------------------------------------------------------------------------- /StickyCollectionView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | B218E2EC1C613CFE00025DF4 /* UIColor+Hex.swift in Sources */ = {isa = PBXBuildFile; fileRef = B218E2EB1C613CFE00025DF4 /* UIColor+Hex.swift */; }; 11 | B287CDF51C61017300B0ED82 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B287CDF31C61017300B0ED82 /* Main.storyboard */; }; 12 | B287CDF71C61017300B0ED82 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B287CDF61C61017300B0ED82 /* Assets.xcassets */; }; 13 | B287CDFA1C61017300B0ED82 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B287CDF81C61017300B0ED82 /* LaunchScreen.storyboard */; }; 14 | B287CE061C61038D00B0ED82 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B287CE051C61038D00B0ED82 /* AppDelegate.swift */; }; 15 | B287CE101C61042B00B0ED82 /* CornerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B287CE0F1C61042B00B0ED82 /* CornerViewController.swift */; }; 16 | B287CE121C61043100B0ED82 /* PrimerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B287CE111C61043100B0ED82 /* PrimerViewController.swift */; }; 17 | B287CE141C61043700B0ED82 /* WelcomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B287CE131C61043700B0ED82 /* WelcomeViewController.swift */; }; 18 | B287CE161C6104AC00B0ED82 /* CornerCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = B287CE151C6104AC00B0ED82 /* CornerCollectionViewCell.swift */; }; 19 | B287CE181C6104B200B0ED82 /* PrimerCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = B287CE171C6104B200B0ED82 /* PrimerCollectionViewCell.swift */; }; 20 | B287CE1A1C6104D400B0ED82 /* CustomizableButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = B287CE191C6104D400B0ED82 /* CustomizableButton.swift */; }; 21 | B287CE1C1C61192A00B0ED82 /* StickyCollectionViewFlowLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = B287CE1B1C61192A00B0ED82 /* StickyCollectionViewFlowLayout.swift */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXFileReference section */ 25 | B218E2EB1C613CFE00025DF4 /* UIColor+Hex.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIColor+Hex.swift"; sourceTree = ""; }; 26 | B287CDEC1C61017300B0ED82 /* StickyCollectionView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StickyCollectionView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | B287CDF41C61017300B0ED82 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 28 | B287CDF61C61017300B0ED82 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 29 | B287CDF91C61017300B0ED82 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 30 | B287CDFB1C61017300B0ED82 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = ../Info.plist; sourceTree = ""; }; 31 | B287CE051C61038D00B0ED82 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 32 | B287CE0F1C61042B00B0ED82 /* CornerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CornerViewController.swift; sourceTree = ""; }; 33 | B287CE111C61043100B0ED82 /* PrimerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrimerViewController.swift; sourceTree = ""; }; 34 | B287CE131C61043700B0ED82 /* WelcomeViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WelcomeViewController.swift; sourceTree = ""; }; 35 | B287CE151C6104AC00B0ED82 /* CornerCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CornerCollectionViewCell.swift; sourceTree = ""; }; 36 | B287CE171C6104B200B0ED82 /* PrimerCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrimerCollectionViewCell.swift; sourceTree = ""; }; 37 | B287CE191C6104D400B0ED82 /* CustomizableButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomizableButton.swift; sourceTree = ""; }; 38 | B287CE1B1C61192A00B0ED82 /* StickyCollectionViewFlowLayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StickyCollectionViewFlowLayout.swift; sourceTree = ""; }; 39 | /* End PBXFileReference section */ 40 | 41 | /* Begin PBXFrameworksBuildPhase section */ 42 | B287CDE91C61017300B0ED82 /* Frameworks */ = { 43 | isa = PBXFrameworksBuildPhase; 44 | buildActionMask = 2147483647; 45 | files = ( 46 | ); 47 | runOnlyForDeploymentPostprocessing = 0; 48 | }; 49 | /* End PBXFrameworksBuildPhase section */ 50 | 51 | /* Begin PBXGroup section */ 52 | B287CDE31C61017300B0ED82 = { 53 | isa = PBXGroup; 54 | children = ( 55 | B287CDEE1C61017300B0ED82 /* StickyCollectionView */, 56 | B287CDED1C61017300B0ED82 /* Products */, 57 | ); 58 | sourceTree = ""; 59 | }; 60 | B287CDED1C61017300B0ED82 /* Products */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | B287CDEC1C61017300B0ED82 /* StickyCollectionView.app */, 64 | ); 65 | name = Products; 66 | sourceTree = ""; 67 | }; 68 | B287CDEE1C61017300B0ED82 /* StickyCollectionView */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | B287CE031C61024900B0ED82 /* Demo */, 72 | B287CE021C61024400B0ED82 /* Source */, 73 | B287CE011C61023500B0ED82 /* App */, 74 | B287CE041C61025100B0ED82 /* Supporting Files */, 75 | ); 76 | path = StickyCollectionView; 77 | sourceTree = ""; 78 | }; 79 | B287CE011C61023500B0ED82 /* App */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | B287CE051C61038D00B0ED82 /* AppDelegate.swift */, 83 | ); 84 | path = App; 85 | sourceTree = ""; 86 | }; 87 | B287CE021C61024400B0ED82 /* Source */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | B287CE1B1C61192A00B0ED82 /* StickyCollectionViewFlowLayout.swift */, 91 | ); 92 | path = Source; 93 | sourceTree = ""; 94 | }; 95 | B287CE031C61024900B0ED82 /* Demo */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | B287CE0B1C6103CC00B0ED82 /* Views */, 99 | B287CE0A1C6103C400B0ED82 /* ViewControllers */, 100 | B287CE091C6103BF00B0ED82 /* Helpers */, 101 | ); 102 | path = Demo; 103 | sourceTree = ""; 104 | }; 105 | B287CE041C61025100B0ED82 /* Supporting Files */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | B287CDFB1C61017300B0ED82 /* Info.plist */, 109 | B287CDF31C61017300B0ED82 /* Main.storyboard */, 110 | B287CDF61C61017300B0ED82 /* Assets.xcassets */, 111 | B287CDF81C61017300B0ED82 /* LaunchScreen.storyboard */, 112 | ); 113 | path = "Supporting Files"; 114 | sourceTree = ""; 115 | }; 116 | B287CE091C6103BF00B0ED82 /* Helpers */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | B218E2EB1C613CFE00025DF4 /* UIColor+Hex.swift */, 120 | ); 121 | path = Helpers; 122 | sourceTree = ""; 123 | }; 124 | B287CE0A1C6103C400B0ED82 /* ViewControllers */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | B287CE0E1C61041600B0ED82 /* Cells */, 128 | B287CE131C61043700B0ED82 /* WelcomeViewController.swift */, 129 | B287CE0F1C61042B00B0ED82 /* CornerViewController.swift */, 130 | B287CE111C61043100B0ED82 /* PrimerViewController.swift */, 131 | ); 132 | path = ViewControllers; 133 | sourceTree = ""; 134 | }; 135 | B287CE0B1C6103CC00B0ED82 /* Views */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | B287CE191C6104D400B0ED82 /* CustomizableButton.swift */, 139 | ); 140 | path = Views; 141 | sourceTree = ""; 142 | }; 143 | B287CE0E1C61041600B0ED82 /* Cells */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | B287CE151C6104AC00B0ED82 /* CornerCollectionViewCell.swift */, 147 | B287CE171C6104B200B0ED82 /* PrimerCollectionViewCell.swift */, 148 | ); 149 | path = Cells; 150 | sourceTree = ""; 151 | }; 152 | /* End PBXGroup section */ 153 | 154 | /* Begin PBXNativeTarget section */ 155 | B287CDEB1C61017300B0ED82 /* StickyCollectionView */ = { 156 | isa = PBXNativeTarget; 157 | buildConfigurationList = B287CDFE1C61017300B0ED82 /* Build configuration list for PBXNativeTarget "StickyCollectionView" */; 158 | buildPhases = ( 159 | B287CDE81C61017300B0ED82 /* Sources */, 160 | B287CDE91C61017300B0ED82 /* Frameworks */, 161 | B287CDEA1C61017300B0ED82 /* Resources */, 162 | ); 163 | buildRules = ( 164 | ); 165 | dependencies = ( 166 | ); 167 | name = StickyCollectionView; 168 | productName = StickyCollectionView; 169 | productReference = B287CDEC1C61017300B0ED82 /* StickyCollectionView.app */; 170 | productType = "com.apple.product-type.application"; 171 | }; 172 | /* End PBXNativeTarget section */ 173 | 174 | /* Begin PBXProject section */ 175 | B287CDE41C61017300B0ED82 /* Project object */ = { 176 | isa = PBXProject; 177 | attributes = { 178 | LastUpgradeCheck = 0820; 179 | ORGANIZATIONNAME = "Bogdan Matveev"; 180 | TargetAttributes = { 181 | B287CDEB1C61017300B0ED82 = { 182 | CreatedOnToolsVersion = 7.1; 183 | LastSwiftMigration = 0820; 184 | }; 185 | }; 186 | }; 187 | buildConfigurationList = B287CDE71C61017300B0ED82 /* Build configuration list for PBXProject "StickyCollectionView" */; 188 | compatibilityVersion = "Xcode 3.2"; 189 | developmentRegion = English; 190 | hasScannedForEncodings = 0; 191 | knownRegions = ( 192 | en, 193 | Base, 194 | ); 195 | mainGroup = B287CDE31C61017300B0ED82; 196 | productRefGroup = B287CDED1C61017300B0ED82 /* Products */; 197 | projectDirPath = ""; 198 | projectRoot = ""; 199 | targets = ( 200 | B287CDEB1C61017300B0ED82 /* StickyCollectionView */, 201 | ); 202 | }; 203 | /* End PBXProject section */ 204 | 205 | /* Begin PBXResourcesBuildPhase section */ 206 | B287CDEA1C61017300B0ED82 /* Resources */ = { 207 | isa = PBXResourcesBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | B287CDFA1C61017300B0ED82 /* LaunchScreen.storyboard in Resources */, 211 | B287CDF71C61017300B0ED82 /* Assets.xcassets in Resources */, 212 | B287CDF51C61017300B0ED82 /* Main.storyboard in Resources */, 213 | ); 214 | runOnlyForDeploymentPostprocessing = 0; 215 | }; 216 | /* End PBXResourcesBuildPhase section */ 217 | 218 | /* Begin PBXSourcesBuildPhase section */ 219 | B287CDE81C61017300B0ED82 /* Sources */ = { 220 | isa = PBXSourcesBuildPhase; 221 | buildActionMask = 2147483647; 222 | files = ( 223 | B287CE1A1C6104D400B0ED82 /* CustomizableButton.swift in Sources */, 224 | B287CE061C61038D00B0ED82 /* AppDelegate.swift in Sources */, 225 | B287CE141C61043700B0ED82 /* WelcomeViewController.swift in Sources */, 226 | B287CE1C1C61192A00B0ED82 /* StickyCollectionViewFlowLayout.swift in Sources */, 227 | B218E2EC1C613CFE00025DF4 /* UIColor+Hex.swift in Sources */, 228 | B287CE161C6104AC00B0ED82 /* CornerCollectionViewCell.swift in Sources */, 229 | B287CE181C6104B200B0ED82 /* PrimerCollectionViewCell.swift in Sources */, 230 | B287CE101C61042B00B0ED82 /* CornerViewController.swift in Sources */, 231 | B287CE121C61043100B0ED82 /* PrimerViewController.swift in Sources */, 232 | ); 233 | runOnlyForDeploymentPostprocessing = 0; 234 | }; 235 | /* End PBXSourcesBuildPhase section */ 236 | 237 | /* Begin PBXVariantGroup section */ 238 | B287CDF31C61017300B0ED82 /* Main.storyboard */ = { 239 | isa = PBXVariantGroup; 240 | children = ( 241 | B287CDF41C61017300B0ED82 /* Base */, 242 | ); 243 | name = Main.storyboard; 244 | sourceTree = ""; 245 | }; 246 | B287CDF81C61017300B0ED82 /* LaunchScreen.storyboard */ = { 247 | isa = PBXVariantGroup; 248 | children = ( 249 | B287CDF91C61017300B0ED82 /* Base */, 250 | ); 251 | name = LaunchScreen.storyboard; 252 | sourceTree = ""; 253 | }; 254 | /* End PBXVariantGroup section */ 255 | 256 | /* Begin XCBuildConfiguration section */ 257 | B287CDFC1C61017300B0ED82 /* Debug */ = { 258 | isa = XCBuildConfiguration; 259 | buildSettings = { 260 | ALWAYS_SEARCH_USER_PATHS = NO; 261 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 262 | CLANG_CXX_LIBRARY = "libc++"; 263 | CLANG_ENABLE_MODULES = YES; 264 | CLANG_ENABLE_OBJC_ARC = YES; 265 | CLANG_WARN_BOOL_CONVERSION = YES; 266 | CLANG_WARN_CONSTANT_CONVERSION = YES; 267 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 268 | CLANG_WARN_EMPTY_BODY = YES; 269 | CLANG_WARN_ENUM_CONVERSION = YES; 270 | CLANG_WARN_INFINITE_RECURSION = YES; 271 | CLANG_WARN_INT_CONVERSION = YES; 272 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 273 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 274 | CLANG_WARN_UNREACHABLE_CODE = YES; 275 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 276 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 277 | COPY_PHASE_STRIP = NO; 278 | DEBUG_INFORMATION_FORMAT = dwarf; 279 | ENABLE_STRICT_OBJC_MSGSEND = YES; 280 | ENABLE_TESTABILITY = YES; 281 | GCC_C_LANGUAGE_STANDARD = gnu99; 282 | GCC_DYNAMIC_NO_PIC = NO; 283 | GCC_NO_COMMON_BLOCKS = YES; 284 | GCC_OPTIMIZATION_LEVEL = 0; 285 | GCC_PREPROCESSOR_DEFINITIONS = ( 286 | "DEBUG=1", 287 | "$(inherited)", 288 | ); 289 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 290 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 291 | GCC_WARN_UNDECLARED_SELECTOR = YES; 292 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 293 | GCC_WARN_UNUSED_FUNCTION = YES; 294 | GCC_WARN_UNUSED_VARIABLE = YES; 295 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 296 | MTL_ENABLE_DEBUG_INFO = YES; 297 | ONLY_ACTIVE_ARCH = YES; 298 | SDKROOT = iphoneos; 299 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 300 | }; 301 | name = Debug; 302 | }; 303 | B287CDFD1C61017300B0ED82 /* Release */ = { 304 | isa = XCBuildConfiguration; 305 | buildSettings = { 306 | ALWAYS_SEARCH_USER_PATHS = NO; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BOOL_CONVERSION = YES; 312 | CLANG_WARN_CONSTANT_CONVERSION = YES; 313 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 314 | CLANG_WARN_EMPTY_BODY = YES; 315 | CLANG_WARN_ENUM_CONVERSION = YES; 316 | CLANG_WARN_INFINITE_RECURSION = YES; 317 | CLANG_WARN_INT_CONVERSION = YES; 318 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 319 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 320 | CLANG_WARN_UNREACHABLE_CODE = YES; 321 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 322 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 323 | COPY_PHASE_STRIP = NO; 324 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 325 | ENABLE_NS_ASSERTIONS = NO; 326 | ENABLE_STRICT_OBJC_MSGSEND = YES; 327 | GCC_C_LANGUAGE_STANDARD = gnu99; 328 | GCC_NO_COMMON_BLOCKS = YES; 329 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 330 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 331 | GCC_WARN_UNDECLARED_SELECTOR = YES; 332 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 333 | GCC_WARN_UNUSED_FUNCTION = YES; 334 | GCC_WARN_UNUSED_VARIABLE = YES; 335 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 336 | MTL_ENABLE_DEBUG_INFO = NO; 337 | SDKROOT = iphoneos; 338 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 339 | VALIDATE_PRODUCT = YES; 340 | }; 341 | name = Release; 342 | }; 343 | B287CDFF1C61017300B0ED82 /* Debug */ = { 344 | isa = XCBuildConfiguration; 345 | buildSettings = { 346 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 347 | INFOPLIST_FILE = StickyCollectionView/Info.plist; 348 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 349 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 350 | PRODUCT_BUNDLE_IDENTIFIER = iTunec.StickyCollectionView; 351 | PRODUCT_NAME = "$(TARGET_NAME)"; 352 | SWIFT_VERSION = 3.0; 353 | }; 354 | name = Debug; 355 | }; 356 | B287CE001C61017300B0ED82 /* Release */ = { 357 | isa = XCBuildConfiguration; 358 | buildSettings = { 359 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 360 | INFOPLIST_FILE = StickyCollectionView/Info.plist; 361 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 362 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 363 | PRODUCT_BUNDLE_IDENTIFIER = iTunec.StickyCollectionView; 364 | PRODUCT_NAME = "$(TARGET_NAME)"; 365 | SWIFT_VERSION = 3.0; 366 | }; 367 | name = Release; 368 | }; 369 | /* End XCBuildConfiguration section */ 370 | 371 | /* Begin XCConfigurationList section */ 372 | B287CDE71C61017300B0ED82 /* Build configuration list for PBXProject "StickyCollectionView" */ = { 373 | isa = XCConfigurationList; 374 | buildConfigurations = ( 375 | B287CDFC1C61017300B0ED82 /* Debug */, 376 | B287CDFD1C61017300B0ED82 /* Release */, 377 | ); 378 | defaultConfigurationIsVisible = 0; 379 | defaultConfigurationName = Release; 380 | }; 381 | B287CDFE1C61017300B0ED82 /* Build configuration list for PBXNativeTarget "StickyCollectionView" */ = { 382 | isa = XCConfigurationList; 383 | buildConfigurations = ( 384 | B287CDFF1C61017300B0ED82 /* Debug */, 385 | B287CE001C61017300B0ED82 /* Release */, 386 | ); 387 | defaultConfigurationIsVisible = 0; 388 | defaultConfigurationName = Release; 389 | }; 390 | /* End XCConfigurationList section */ 391 | }; 392 | rootObject = B287CDE41C61017300B0ED82 /* Project object */; 393 | } 394 | -------------------------------------------------------------------------------- /StickyCollectionView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /StickyCollectionView.xcodeproj/project.xcworkspace/xcuserdata/bogdanmatveev.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matbeich/StickyCollectionView-Swift/d8554aafbfb2cb1b8d6b48de8f5dfde3f6cdfdf3/StickyCollectionView.xcodeproj/project.xcworkspace/xcuserdata/bogdanmatveev.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /StickyCollectionView.xcodeproj/xcuserdata/bogdanmatveev.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /StickyCollectionView.xcodeproj/xcuserdata/bogdanmatveev.xcuserdatad/xcschemes/StickyCollectionView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /StickyCollectionView.xcodeproj/xcuserdata/bogdanmatveev.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | StickyCollectionView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | B287CDEB1C61017300B0ED82 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /StickyCollectionView/App/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // StickyCollectionView 4 | // 5 | // Created by Bogdan Matveev on 02/02/16. 6 | // Copyright © 2016 Bogdan Matveev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 17 | return true 18 | } 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /StickyCollectionView/Demo/Helpers/UIColor+Hex.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor.swift 3 | // StickyCollectionView 4 | // 5 | // Created by Bogdan Matveev on 02.02.16. 6 | // Copyright © 2016 Bogdan Matveev. All rights reserved. 7 | // 8 | import UIKit 9 | 10 | extension UIColor { 11 | public class func colorFromHexString(_ hexString: String) -> UIColor { 12 | let colorString = hexString.replacingOccurrences(of: "#", with: "").uppercased() as NSString 13 | let alpha, red, blue, green: Float 14 | alpha = 1.0 15 | red = self.colorComponentsFrom(colorString, start: 0, length: 2) 16 | green = self.colorComponentsFrom(colorString, start: 2, length: 2) 17 | blue = self.colorComponentsFrom(colorString, start: 4, length: 2) 18 | return UIColor(colorLiteralRed: red, green: green, blue: blue, alpha: alpha) 19 | } 20 | 21 | fileprivate class func colorComponentsFrom(_ string: NSString, start: Int, length: Int) -> Float { 22 | NSMakeRange(start, length) 23 | let subString = string.substring(with: NSMakeRange(start, length)) 24 | var hexValue: UInt32 = 0 25 | Scanner(string: subString).scanHexInt32(&hexValue) 26 | return Float(hexValue) / 255.0 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /StickyCollectionView/Demo/ViewControllers/Cells/CornerCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CornerCollectionViewCell.swift 3 | // StickyCollectionView 4 | // 5 | // Created by Bogdan Matveev on 02/02/16. 6 | // Copyright © 2016 Bogdan Matveev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CornerCollectionViewCell: UICollectionViewCell { 12 | 13 | @IBOutlet weak var cityLabel: UILabel! 14 | @IBOutlet weak var backingView: UIView! 15 | 16 | var city: String? { 17 | didSet { 18 | cityLabel.text = city 19 | } 20 | } 21 | 22 | var color: UIColor? { 23 | didSet { 24 | backingView.backgroundColor = color 25 | } 26 | } 27 | 28 | override func awakeFromNib() { 29 | backingView.layer.cornerRadius = 12 30 | backingView.layer.masksToBounds = true 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /StickyCollectionView/Demo/ViewControllers/Cells/PrimerCollectionViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PrimerCollectionViewCell.swift 3 | // StickyCollectionView 4 | // 5 | // Created by Bogdan Matveev on 02/02/16. 6 | // Copyright © 2016 Bogdan Matveev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class PrimerCollectionViewCell: UICollectionViewCell { 12 | @IBOutlet weak var lessonLabel: UILabel! 13 | 14 | var lesson: String? { 15 | didSet { 16 | lessonLabel.text = lesson 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /StickyCollectionView/Demo/ViewControllers/CornerViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CornerViewController.swift 3 | // StickyCollectionView 4 | // 5 | // Created by Bogdan Matveev on 02/02/16. 6 | // Copyright © 2016 Bogdan Matveev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CornerViewController: UIViewController { 12 | 13 | let kCellHeight: CGFloat = 120.0 14 | let kItemSpace: CGFloat = -20.0 15 | let kDemoCell = "cornerCell" 16 | 17 | let citiesArray = ["Bangkok", "Barcelona", "Beijing", "Istanbul", "Kiev", "Kyoto", "London", "Madrid", "Moscow", "New York", "Paris", "Prague", "Rio", "Rome", "St.Petersburg", "Tokyo", "Venice", "Vienna"] 18 | let colorsArray = ["EE5464", "DC4352", "FD6D50", "EA583F", "F6BC43", "8DC253", "4FC2E9", "3CAFDB", "5D9CEE", "4B89DD", "AD93EE", "977BDD", "EE87C0", "D971AE", "903FB1", "9D56B9", "227FBD", "2E97DE"] 19 | 20 | @IBAction func actionClose(_ sender: AnyObject) { 21 | dismiss(animated: true, completion: nil) 22 | } 23 | } 24 | 25 | extension CornerViewController: UICollectionViewDataSource { 26 | 27 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 28 | return citiesArray.count 29 | } 30 | 31 | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 32 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: kDemoCell, for: indexPath) as! CornerCollectionViewCell 33 | 34 | let city: String = citiesArray[indexPath.row] 35 | let hexString = colorsArray[indexPath.row] 36 | let color = UIColor.colorFromHexString(hexString) 37 | 38 | cell.city = city 39 | cell.color = color 40 | return cell 41 | } 42 | } 43 | 44 | extension CornerViewController: UICollectionViewDelegateFlowLayout { 45 | 46 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { 47 | return CGSize(width: view.bounds.width, height: kCellHeight) 48 | } 49 | 50 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: NSInteger) -> CGFloat { 51 | return kItemSpace 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /StickyCollectionView/Demo/ViewControllers/PrimerViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PrimerViewController.swift 3 | // StickyCollectionView 4 | // 5 | // Created by Bogdan Matveev on 02/02/16. 6 | // Copyright © 2016 Bogdan Matveev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class PrimerViewController: UIViewController { 12 | 13 | @IBOutlet weak var collectionView: UICollectionView! 14 | 15 | let kDemoCell = "primerCell" 16 | let kCellSizeCoef: CGFloat = 0.8 17 | let kFirstItemTransform: CGFloat = 0.05 18 | 19 | let lessonsArray = ["Create a Hight Quality, High Ranking Search Ad", 20 | "Evolve Your Ad Campaigns with Programmatic Buying", 21 | "How Remarketing Keeps Customers Coming Back", 22 | "Surviving and Thriving on Social Media", 23 | "Keep Mobile Users Engaged In and Out of Your App", 24 | "Appeal to Searchers and Search Engines with Seo", 25 | "Build Your Business Fast with Growth Hacking", 26 | "Track Your Acquisitions with Digital Metricks"] 27 | 28 | override func viewDidLoad() { 29 | super.viewDidLoad() 30 | let stickyLayout = collectionView.collectionViewLayout as! StickyCollectionViewFlowLayout 31 | stickyLayout.firstItemTransform = kFirstItemTransform 32 | } 33 | 34 | @IBAction func actionClose(_ sender: AnyObject) { 35 | dismiss(animated: true, completion: nil) 36 | } 37 | } 38 | 39 | extension PrimerViewController: UICollectionViewDataSource { 40 | 41 | func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 42 | return lessonsArray.count 43 | } 44 | 45 | func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 46 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: kDemoCell, for: indexPath) as! PrimerCollectionViewCell 47 | let lesson = lessonsArray[indexPath.row] 48 | cell.lesson = lesson 49 | return cell 50 | } 51 | } 52 | 53 | extension PrimerViewController: UICollectionViewDelegateFlowLayout { 54 | 55 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { 56 | return CGSize(width: view.bounds.width, height: collectionView.bounds.height * kCellSizeCoef) 57 | } 58 | 59 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: NSInteger) -> CGFloat { 60 | return 0 61 | } 62 | } 63 | 64 | 65 | -------------------------------------------------------------------------------- /StickyCollectionView/Demo/ViewControllers/WelcomeViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WelcomeViewController.swift 3 | // StickyCollectionView 4 | // 5 | // Created by Bogdan Matveev on 02/02/16. 6 | // Copyright © 2016 Bogdan Matveev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class WelcomeViewController: UIViewController { 12 | 13 | @IBOutlet weak var backgroundImageView: UIImageView! 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | 18 | let blurEffect = UIBlurEffect(style: .dark) 19 | let visualEffectView = UIVisualEffectView(effect: blurEffect) 20 | visualEffectView.frame = backgroundImageView.bounds 21 | backgroundImageView.addSubview(visualEffectView) 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /StickyCollectionView/Demo/Views/CustomizableButton.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CustomizableButton.swift 3 | // StickyCollectionView 4 | // 5 | // Created by Bogdan Matveev on 02/02/16. 6 | // Copyright © 2016 Bogdan Matveev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CustomizableButton: UIButton { 12 | @IBInspectable var cornerRadius: CGFloat = 0 13 | @IBInspectable var borderWidth: CGFloat = 0 14 | @IBInspectable var horizontalPadding: CGFloat = 0 15 | @IBInspectable var borderColor: UIColor? 16 | 17 | override func layoutSubviews() { 18 | super.layoutSubviews() 19 | layer.masksToBounds = true; 20 | layer.borderWidth = borderWidth 21 | layer.cornerRadius = cornerRadius 22 | 23 | if let color = borderColor { 24 | layer.borderColor = color.cgColor 25 | } 26 | } 27 | 28 | override var intrinsicContentSize : CGSize { 29 | var contentSize = super.intrinsicContentSize 30 | contentSize.width += horizontalPadding * 2 31 | return contentSize 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /StickyCollectionView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIStatusBarHidden 6 | 7 | UIViewControllerBasedStatusBarAppearance 8 | 9 | UIStatusBarStyle 10 | UIStatusBarStyleLightContent 11 | CFBundleDevelopmentRegion 12 | en 13 | CFBundleExecutable 14 | $(EXECUTABLE_NAME) 15 | CFBundleIdentifier 16 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 29 | LSRequiresIPhoneOS 30 | 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | UIMainStoryboardFile 34 | Main 35 | UIRequiredDeviceCapabilities 36 | 37 | armv7 38 | 39 | UISupportedInterfaceOrientations 40 | 41 | UIInterfaceOrientationPortrait 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /StickyCollectionView/Source/StickyCollectionViewFlowLayout.swift: -------------------------------------------------------------------------------- 1 | // 2 | // StickyCollectionViewFlowLayout.swift 3 | // StickyCollectionView 4 | // 5 | // Created by Bogdan Matveev on 02/02/16. 6 | // Copyright © 2016 Bogdan Matveev. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class StickyCollectionViewFlowLayout: UICollectionViewFlowLayout { 12 | 13 | var firstItemTransform: CGFloat? 14 | 15 | override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { 16 | let items = NSArray (array: super.layoutAttributesForElements(in: rect)!, copyItems: true) 17 | var headerAttributes: UICollectionViewLayoutAttributes? 18 | 19 | items.enumerateObjects(using: { (object, idex, stop) -> Void in 20 | let attributes = object as! UICollectionViewLayoutAttributes 21 | 22 | if attributes.representedElementKind == UICollectionElementKindSectionHeader { 23 | headerAttributes = attributes 24 | } 25 | else { 26 | self.updateCellAttributes(attributes, headerAttributes: headerAttributes) 27 | } 28 | }) 29 | return items as? [UICollectionViewLayoutAttributes] 30 | } 31 | 32 | func updateCellAttributes(_ attributes: UICollectionViewLayoutAttributes, headerAttributes: UICollectionViewLayoutAttributes?) { 33 | let minY = collectionView!.bounds.minY + collectionView!.contentInset.top 34 | var maxY = attributes.frame.origin.y 35 | 36 | if let headerAttributes = headerAttributes { 37 | maxY -= headerAttributes.bounds.height 38 | } 39 | 40 | let finalY = max(minY, maxY) 41 | var origin = attributes.frame.origin 42 | let deltaY = (finalY - origin.y) / attributes.frame.height 43 | 44 | if let itemTransform = firstItemTransform { 45 | let scale = 1 - deltaY * itemTransform 46 | attributes.transform = CGAffineTransform(scaleX: scale, y: scale) 47 | } 48 | 49 | origin.y = finalY 50 | attributes.frame = CGRect(origin: origin, size: attributes.frame.size) 51 | attributes.zIndex = attributes.indexPath.row 52 | } 53 | 54 | override func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool { 55 | return true 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Assets.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" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Assets.xcassets/arrow_down.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "arrow_down@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Assets.xcassets/arrow_down.imageset/arrow_down@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matbeich/StickyCollectionView-Swift/d8554aafbfb2cb1b8d6b48de8f5dfde3f6cdfdf3/StickyCollectionView/Supporting Files/Assets.xcassets/arrow_down.imageset/arrow_down@2x.png -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Assets.xcassets/primer_cell_logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "primer_cell_logo@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Assets.xcassets/primer_cell_logo.imageset/primer_cell_logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matbeich/StickyCollectionView-Swift/d8554aafbfb2cb1b8d6b48de8f5dfde3f6cdfdf3/StickyCollectionView/Supporting Files/Assets.xcassets/primer_cell_logo.imageset/primer_cell_logo@2x.png -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Assets.xcassets/welcome_background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Dark-Forest-iphone-5-wallpaper-ilikewallpaper_com.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Assets.xcassets/welcome_background.imageset/Dark-Forest-iphone-5-wallpaper-ilikewallpaper_com.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matbeich/StickyCollectionView-Swift/d8554aafbfb2cb1b8d6b48de8f5dfde3f6cdfdf3/StickyCollectionView/Supporting Files/Assets.xcassets/welcome_background.imageset/Dark-Forest-iphone-5-wallpaper-ilikewallpaper_com.jpg -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Base.lproj/LaunchScreen.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 | -------------------------------------------------------------------------------- /StickyCollectionView/Supporting Files/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 27 | 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 | 78 | 85 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 197 | 204 | 211 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 350 | 357 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | --------------------------------------------------------------------------------