//
//  UIScrollView+BXAddition.h
//  BXToolKit_Example
//
//  Created by Hmily on 2019/3/20.
//  Copyright © 2019 xudusheng. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIScrollView (BXAddition)

/**
 Scroll content to top with animation.
 */
- (void)scrollToTop;

/**
 Scroll content to bottom with animation.
 */
- (void)scrollToBottom;

/**
 Scroll content to left with animation.
 */
- (void)scrollToLeft;

/**
 Scroll content to right with animation.
 */
- (void)scrollToRight;

/**
 Scroll content to top.
 
 @param animated  Use animation.
 */
- (void)scrollToTopAnimated:(BOOL)animated;

/**
 Scroll content to bottom.
 
 @param animated  Use animation.
 */
- (void)scrollToBottomAnimated:(BOOL)animated;

/**
 Scroll content to left.
 
 @param animated  Use animation.
 */
- (void)scrollToLeftAnimated:(BOOL)animated;

/**
 Scroll content to right.
 
 @param animated  Use animation.
 */
- (void)scrollToRightAnimated:(BOOL)animated;

@end

NS_ASSUME_NONNULL_END

{'avg_line_length': 15.363636363636363, 'max_line_length': 52, 'alphanum_fraction': 0.7071005917159763, 'licenses': ['MIT'], 'repository_name': 'xudusheng/BXToolKit', 'path': 'BXToolKit/Classes/UIKit/UIScrollView+BXAddition.h', 'size': 1015, 'lang': 'C'}