Latest 1.0.1
Homepage https://github.com/healmax/VCBarHeightAnimator
License MIT
Platforms ios 11.0
Frameworks UIKit
Authors

VCBarHeightAnimator

Platform
Language
License

VCBarHeightAnimator is simple component that show hide the navigation bar and tab bar for iOS (Obj-C)

VCBarHeightAnimator demo1

VCBarHeightAnimator

VCBarHeightAnimator demo2

VCBarHeightAnimator


Installation with CocoaPods

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

$ gem install cocoapods

Podfile

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

platform :ios, '11.0'

target 'TargetName' do
pod 'VCBarHeightAnimator'
end

Usage

ViewController.m
@interface DemoPresentScrollViewController ()<UICollectionViewDelegateFlowLayout, UICollectionViewDataSource, VCBarHeightAnimating, VCBarHeightAnimatorDelegate>

@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (nonatomic, strong) VCBarHeightAnimator *barHeightAnimator;

@end
#pragma mark - life cycle

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.barHeightAnimator showBarWithAnimated:NO];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [self.barHeightAnimator showBarWithAnimated:NO];
}

#pragma mark - accessor

- (VCBarHeightAnimator *)barHeightAnimator {
    if (!_barHeightAnimator) {
        _barHeightAnimator = [[VCBarHeightAnimator alloc] initWithBarHeightAnimatingWithViewController:self scrollView:self.collectionView];
    }

    return _barHeightAnimator;
}

Feature

  • Easy to use, just pass your view contoller and scrolView
  • Available for all size (iPhone / iPad)
  • Support to setting navigation translucent

License

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

Latest podspec

{
    "name": "VCBarHeightAnimator",
    "version": "1.0.1",
    "summary": "VCBarHeightAnimator can show hide navigation bar",
    "description": "VCBarHeightAnimator can easy to help you hide navigation bar with animation.",
    "homepage": "https://github.com/healmax/VCBarHeightAnimator",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Vincent": "[email protected]"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source": {
        "git": "https://github.com/healmax/VCBarHeightAnimator.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "VCBarHeightAnimator",
        "VCBarHeightAnimator/**/*.{h,m}"
    ],
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This