forked from slackhq/SlackTextViewController
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIScrollView+SLKAdditions.h
More file actions
40 lines (31 loc) · 1.14 KB
/
Copy pathUIScrollView+SLKAdditions.h
File metadata and controls
40 lines (31 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// SlackTextViewController
// https://github.com/slackhq/SlackTextViewController
//
// Copyright 2014-2016 Slack Technologies, Inc.
// Licence: MIT-Licence
//
#import <UIKit/UIKit.h>
/** @name UIScrollView additional features used for SlackTextViewController. */
@interface UIScrollView (SLKAdditions)
/** YES if the scrollView's offset is at the very top. */
@property (nonatomic, readonly) BOOL slk_isAtTop;
/** YES if the scrollView's offset is at the very bottom. */
@property (nonatomic, readonly) BOOL slk_isAtBottom;
/** The visible area of the content size. */
@property (nonatomic, readonly) CGRect slk_visibleRect;
/**
Sets the content offset to the top.
@param animated YES to animate the transition at a constant velocity to the new offset, NO to make the transition immediate.
*/
- (void)slk_scrollToTopAnimated:(BOOL)animated;
/**
Sets the content offset to the bottom.
@param animated YES to animate the transition at a constant velocity to the new offset, NO to make the transition immediate.
*/
- (void)slk_scrollToBottomAnimated:(BOOL)animated;
/**
Stops scrolling, if it was scrolling.
*/
- (void)slk_stopScrolling;
@end