Skip to content

Repository files navigation

VCScrollTabBar

Platform Language License

VCScrollTabBar is simple ScrollTabBar component for iOS (Obj-C)

VCScrollTabBar with center indicator


VCScrollTabBar with bottom indicator

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like VCScrollTabBar in your projects.

$ gem install cocoapods

Podfile

To integrate VCScrollTabBar into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '9.0'

target 'TargetName' do
pod 'VCScrollTabBar'
end

Usage

Bottom Indicator
VCScrollTabBarConfig *config = [VCScrollTabBarConfig defaultConfig];
    
VCScrollTabBarConfig *scrollTabBar = [[VCScrollTabBar alloc] init];
[scrollTabBar configureTitleInfos:self.titleInfos config:config scrollView:self.scrollView tarBarDelegate:self];
Center Indicator
VCScrollTabBarConfig *config = [VCScrollTabBarConfig defaultConfig];
config.showCenterIndicatorView = YES;
config.showBottomIndicatorView = NO;
    
VCScrollTabBarConfig *scrollTabBar = [[VCScrollTabBar alloc] init];
[scrollTabBar configureTitleInfos:self.titleInfos config:config scrollView:self.scrollView tarBarDelegate:self];
VCScrollTabBarConfig
// You can adjust the config to change scrollTabBar style.

VCScrollTabBarConfig *config = [VCScrollTabBarConfig defaultConfig];

//Center indicator view color
config.centerIndicatorViewColor

//Show hide the center indicator view
config.showCenterIndicatorView;

//BottomIndicatorView color.
config.bottomIndicatorViewColor;

//Selected tabBar button title font size.
config.buttonTitleMaxFont

...

Feature

  • Easy to use, just call configureTitleInfos:config:scrollView:tarBarDelegate:
  • Available for all size (iPhone / iPad)
  • Support multiple style Indicator

License

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

About

No description, website, or topics provided.

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages