Skip to content

Commit be95a53

Browse files
committed
Added setNeedsOffsetAdjustment to IIViewDeckView.
1 parent beb7231 commit be95a53

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ViewDeck/IIViewDeckController.m

+12
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,14 @@ static NSTimeInterval durationToAnimate(CGFloat pointsToAnimate, CGFloat velocit
149149

150150
@interface IIViewDeckView : UIView {
151151
BOOL _userInteractionEnabled;
152+
BOOL _needsOffsetAdjustment;
152153
}
153154

154155
@property (nonatomic, assign) BOOL allowUserInteractionEnabled;
155156

157+
- (void)setNeedsOffsetAdjustment;
158+
- (BOOL)needsOffsetAdjustment;
159+
156160
@end
157161

158162
@interface UIViewController (UIViewDeckController_ViewContainmentEmulation_Fakes)
@@ -3375,6 +3379,14 @@ - (void)setUserInteractionEnabled:(BOOL)userInteractionEnabled {
33753379
[super setUserInteractionEnabled:_allowUserInteractionEnabled && _userInteractionEnabled];
33763380
}
33773381

3382+
- (void)setNeedsOffsetAdjustment {
3383+
_needsOffsetAdjustment = YES;
3384+
}
3385+
3386+
- (BOOL)needsOffsetAdjustment {
3387+
return _needsOffsetAdjustment;
3388+
}
3389+
33783390
@end
33793391

33803392
@implementation UIViewController (UIViewDeckItem)

0 commit comments

Comments
 (0)