scr

ScrollTab

Scrolling Tab for iOS

Showing:

Popularity

Downloads/wk

0

GitHub Stars

271

Maintenance

Last Commit

4yrs ago

Contributors

4

Package

Dependencies

0

License

MIT

Categories

Readme

ScrollTab

A scroll tab alternative to UISegmentedControl.

Install

CocoaPods

pod 'ScrollTab'

Manual

Add the files in the ScrollTab folder to your project.

Usage

#import "ScrollTab.h"

  // ...

  ScrollTabConfig *config = [[ScrollTabConfig alloc] init];
  config.items = @[@"zero", @"one", @"two", @"three", @"four"];

  ScrollTab *tab = [[ScrollTab alloc] init];
  tab.config = config;  
  tab.selected = ^(NSString *noop, NSInteger index) {
      NSLog(@"selected tab with index %@", @(index));
  };

  // Layout
  [self.view addSubview:tab];
  
  // ...

Customize

Change the control's layout, item font/colors and more using ScrollTabConfig.

Demo

ScrollTab includes a sample project.

Compatibility

This project was tested with iOS 10, see the 1.x tags for older versions.

Contact

License

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100