Latest 0.3.0
Homepage https://github.com/abouzek/ABSlidingWebImageViewController
License MIT
Platforms ios 7.1, requires ARC
Dependencies SDWebImage, ASMediaFocusManager
Authors

Version
License
Platform

Description

A scrolling image collection view with asynchronous photo loading and single image focusing built in. Meant to be used with an item size and height to constrain the collection view to a single line. It leverages SDWebImage and ASMediaFocusManager.

Example

alt tag

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

An instance of ABSegmentedViewController should be created using the designated initializer:

-(instancetype)initWithThumbnailImageUrls:(NSArray *)thumbnailImageUrls
                            fullImageUrls:(NSArray *)fullImageUrls
                             showGradient:(BOOL)showGradient;
  • The thumbnailImageUrls and fullImageUrls arrays should contain URLs in the form of NSStrings pointing to the images to be loaded in the collection view. They should have the same size. If no fullImageUrls exist, the thumbnailImageUrls will be used to load the full size images.

  • The showGradient BOOL determines whether a white gradient on the left and right of the collection view will be shown.

  • The instance should be added as a child view controller and the frame should be manually set. The view is intended to be constrained to a single line.

The item size can be changed with the ABSegmentedViewController selector:

-(void)setItemSize:(CGSize)itemSize;

Installation

ABSlidingWebImageViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ABSlidingWebImageViewController"

Author

Alan Bouzek, github: abouzek, [email protected]
Credit to SDWebImage and ASMediaFocusManager, as this pod depends on them for core functionality.

License

ABSlidingWebImageViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ABSlidingWebImageViewController",
    "version": "0.3.0",
    "summary": "A scrolling image collection view with asynchronous photo loading and single image focusing built in.",
    "description": "A scrolling image collection view with asynchronous photo loading and single image focusing built in. Meant to be used with an item size and height to constrain the collection view to a single line",
    "homepage": "https://github.com/abouzek/ABSlidingWebImageViewController",
    "license": "MIT",
    "authors": {
        "abouzek": "[email protected]"
    },
    "source": {
        "git": "https://github.com/abouzek/ABSlidingWebImageViewController.git",
        "tag": "0.3.0"
    },
    "social_media_url": "https://twitter.com/alanbouzek",
    "platforms": {
        "ios": "7.1"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resources": [
        "Pod/Assets/*.xib"
    ],
    "resource_bundles": {
        "ABSlidingWebImageViewController": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "SDWebImage": [
            "~>3.6"
        ],
        "ASMediaFocusManager": []
    }
}

Pin It on Pinterest

Share This