Latest 1.0.0
Homepage https://github.com/lukegeiger/LGSublimationView
License MIT
Platforms ios 7.0, requires ARC
Authors

Version
License
Platform

LukeGeigerSublimer

Introduction

The LGSublimationView is a view that has a cool paging animation on its UIScrollView. The effect it gives off is that there are views behind the scroll view that don’t scroll with the scroll view. Rather, when the scroll view pages, they cross dissolve into one another.

  • This view has the ability to also add titles, and descriptions to each of the views a part of its scroll view.
  • Super lightweight, and customizable. All fonts, colors, etc are editable.

Usage

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

    //This is an example.
    LGSublimationView *lgSublimer = [[LGSublimationView alloc]initWithFrame:self.view.bounds];

    //Optional protocol methods
    lgSublimer.delegate = self;

    //This is just for the purposes of the demo. You probably wouldn't do this.
    NSMutableArray*views = [NSMutableArray new];
    for (int i  = 1; i<=4; i++) {
        UIImageView *view = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
        view.image = [UIImage imageNamed:[NSString stringWithFormat:@"%i.jpg",i]];
        view.contentMode = UIViewContentModeScaleAspectFill;
        [views addObject:view];
    }

    //Based on how many views are in this array, will determine how many times you can scroll the scroll view which applies the sublime effect.
    lgSublimer.viewsToSublime = views;

    lgSublimer.titleLabelTextColor = [UIColor whiteColor];
    lgSublimer.descriptionLabelTextColor = [UIColor whiteColor];
    lgSublimer.titleLabelFont = [UIFont fontWithName:@"HelveticaNeue-Light" size:20];
    lgSublimer.descriptionLabelFont = [UIFont fontWithName:@"HelveticaNeue-UltraLight" size:20];

    //Titles are optional
    lgSublimer.titleStrings = @[@"This is title one",
                                @"This is title two",
                                @"This is title three",
                                @"This is title four"];

    //Descriptions are optional
    lgSublimer.descriptionStrings = @[@"This is a description of one",
                                      @"This is description two and also happens to be multi line, which is sweet"
                                      ,@"This is description three",
                                      @"follow luke on twitter @lukejgeiger"];

    // An optional assign property on the LGSublimer. You can use this if your views are images. It helps make the text appear more readable if there is a slight black tint over the view.
    UIView* shadeView = [[UIView alloc]initWithFrame:lgSublimer.frame];
    shadeView.backgroundColor = [UIColor blackColor];
    shadeView.alpha = .5;
    lgSublimer.inbetweenView = shadeView;

    [self.view addSubview:lgSublimer];

Installation

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

pod "LGSublimationView"

Author

Luke Geiger, [email protected]

License

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

Latest podspec

{
    "name": "LGSublimationView",
    "version": "1.0.0",
    "summary": "The LGSublimationView is an alternative to the way a UIScrollView looks when paging.",
    "description": "The LGSublimationView is an alternative to the way a standard UIScrollView looks when paging. Instead of scrolling the background views of its content view, it just scrolls labels, and the background views 'sublime' from one to another.n",
    "homepage": "https://github.com/lukegeiger/LGSublimationView",
    "license": "MIT",
    "authors": {
        "Luke Geiger": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lukegeiger/LGSublimationView.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "LGSublimationView": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This