Twaha Mukammel

2pods

InfiniteScrollCollectionView

Create a infinitely scrolling horizontal collection view. Limitations: 1. Total number of items in the collection view should sum to a width greater than or equal to width of collection view. 2. There will be repeating (one less than number of elements occupy the collection view bounds.width ) elements on both ends of data source array. To the begning N elements will be added from the end and at the end N elements will be added from the begning. So in identifying the elements please use some mechanism. How To: 1. Add InfiniteScrollCollectionView in Storyboard or initWithFrame. 2. Set 'infiniteScrollDelegate'. 3. Call 'prepareDataSourceForInfiniteScroll' with data array. 4. Call 'setInitialOffset' on viewDidAppear. 5. Implement 'uniformItemSizeInCollectionView' of InfiniteScrollCollectionViewDelegatge. 6. Call 'infiniteScrollViewDidScroll' from 'scrollViewDidScroll' of this collectionView's delegate.

Thats it. Enjoy!

License: MIT

  • Swift

iOSKickStart

A beautiful project template to kick start any iOS project. The target is to avoid recoding for features like UIView rounded rect designables or a simple scrolling form. Please contribute to this project to fill up with a standard set of features frequently needed.

Current Features: 1. Crossdissolve and reverse push pop navigation. 2. UIColor init with hex value. 3. UIView corner-radius and colored-border IBInspectables. 4. Text localization with key string from interface builder. 5. Define once use everywhere global constants. 6. Navigationbar set solid color and line shadow visibility on/off. 7. Scrollview actAsInputForm.. 8. Dismiss keyboard on tap with enabling UIView extension var endEditingOnTap. 9. Default keyboard config enum in interfacebuilder to choose easily and avoid keyboard config mistakes. 10. UITextField left/right padding. 11. UIButton adoptive font size. 12. Code input TextField. 13. UILabel bounds.height to font size ratio. 14. UIViewController titleImage IBDesignable.

Limitations: 1. You have to extend or use sub classes declared here against Apple's base classes.

This is just a basic work. Please contribute, expand and Enjoy...

License: MIT

  • Swift