Giter Club home page Giter Club logo

arcollectionviewmasonrylayout's Introduction

Photo of a trail of stars, which has been colourized to resemble a rainbow

Hello! My name is Ash Furrow. I'm a compassionate software developer from New Brunswick, Canada. I sing and play guitar. I run. I even like to cook.

The first ten years of my career as a software developer are publicly documented (part one, part two). The tl;dr is:

Currently, I'm reflected on what I'd like out of my career next. The best is yet to come!

arcollectionviewmasonrylayout's People

Contributors

alloy avatar ashfurrow avatar dblock avatar dkhamsing avatar orta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

arcollectionviewmasonrylayout's Issues

Make Demo project easier to run

Currently requires bundler and cocoapods, neither of which is specified in the readme. Checking in the Pods directory would probably be the easiest thing.

Support floating headers

Something that would sit under the header, but then will scroll until it's at the top.
Could also provide a callback for when the view is 'stuck'.

Fixed header/footer views support

The docs in the README appear to be out of date. I can't seem to find any references to the method - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(ARCollectionViewMasonryLayout *)collectionViewLayout dimensionForHeaderAtIndexPath:(NSIndexPath *)indexPath anywhere in the current version of the code.

Is there no longer support for header/footer views, or is there now a different way to add them?

NSInternalInconsistencyException: could not dequeue a decoration view of kind: UICollectionElementKindSectionFooter

XCode6/iOS8 only, scrolling all the way down in the demo project:

2014-06-10 14:19:47.275 Demo[16513:901601] *** Assertion failure in -[ARCollectionViewMasonryLayout _decorationViewForLayoutAttributes:], /SourceCache/UIKit_Sim/UIKit-3185.20/UICollectionViewLayout.m:1302
2014-06-10 14:19:47.278 Demo[16513:901601] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'could not dequeue a decoration view of kind: UICollectionElementKindSectionFooter - must register as a class or nib or connect a prototype in a storyboard'
*** First throw call stack:
(
    0   CoreFoundation                      0x01bb6916 __exceptionPreprocess + 182
    1   libobjc.A.dylib                     0x018548d9 objc_exception_throw + 44
    2   CoreFoundation                      0x01bb67aa +[NSException raise:format:arguments:] + 138
    3   Foundation                          0x014d567c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118
    4   UIKit                               0x007c74ee -[UICollectionViewLayout _decorationViewForLayoutAttributes:] + 974
    5   UIKit                               0x007a4aae -[UICollectionView _createPreparedSupplementaryViewForElementOfKind:atIndexPath:withLayoutAttributes:applyAttributes:] + 469
    6   UIKit                               0x007a62e2 -[UICollectionView _updateVisibleCellsNow:] + 4928
    7   UIKit                               0x007aa36f -[UICollectionView layoutSubviews] + 263
    8   UIKit                               0x00122223 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 601
    9   libobjc.A.dylib                     0x01867763 -[NSObject performSelector:withObject:] + 70
    10  QuartzCore                          0x032b1b87 -[CALayer layoutSublayers] + 152
    11  QuartzCore                          0x032a59e9 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 397
    12  QuartzCore                          0x032a5844 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
    13  QuartzCore                          0x03206b1e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 284
    14  QuartzCore                          0x03207ee4 _ZN2CA11Transaction6commitEv + 392
    15  QuartzCore                          0x032da222 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 470
    16  QuartzCore                          0x032da65f _ZN2CA7Display16TimerDisplayLink8callbackEP16__CFRunLoopTimerPv + 123
    17  CoreFoundation                      0x01b125d6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
    18  CoreFoundation                      0x01b11f5d __CFRunLoopDoTimer + 1309
    19  CoreFoundation                      0x01acf66a __CFRunLoopRun + 2090
    20  CoreFoundation                      0x01aceb7b CFRunLoopRunSpecific + 443
    21  CoreFoundation                      0x01ace9ab CFRunLoopRunInMode + 123
    22  GraphicsServices                    0x02de8500 GSEventRunModal + 192
    23  GraphicsServices                    0x02de833d GSEventRun + 104
    24  UIKit                               0x0009ddee UIApplicationMain + 3727
    25  Demo                                0x0000268d main + 141
    26  libdyld.dylib                       0x064a7ac5 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Demo not working

Opening and running Demo.xcodeproj returns the following error.

image

Layout is asking for ARCollectionElementKindSectionStickyHeader??

Why the layout is asking for a reusable view for kind ARCollectionElementKindSectionStickyHeader if I never registered it to my collection or implemented the - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForStickyHeaderInSection:(NSInteger)section; method?

Copyright should be Ash + Artsy

Since this code was taken out of the Artsy codebase and originally written by @orta, lets make copyright Ash Furrow, Orta Therox and Artsy. There's at least the mention in the LICENSE file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.