Skip to content

Commit

Permalink
Fix edge insets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tawa committed Jul 3, 2017
1 parent fb4f0cc commit 56c6abf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Binary file not shown.
9 changes: 9 additions & 0 deletions Sample/TNTutorialManagerSample/FirstViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ -(void)viewDidAppear:(BOOL)animated
return nil;
}

-(NSArray<TNTutorialEdgeInsets *> *)tutorialViewsEdgeInsets:(NSInteger)index
{
if (index == 1) {
return @[TNTutorialEdgeInsetsMake(8, 8, 8, 8)];
}

return nil;
}

-(NSArray<NSNumber *> *)tutorialTextPositions:(NSInteger)index
{
return @[@(TNTutorialTextPositionTop)];
Expand Down
4 changes: 1 addition & 3 deletions TNTutorialManager/TNTutorialManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

@end

//TNTutorialEdgeInsets *TNTutorialEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right) {
// return [[TNTutorialEdgeInsets alloc] initWithEdgeInsets:UIEdgeInsetsMake(top, left, bottom, right)];
//}
#define TNTutorialEdgeInsetsMake(top,left,bottom,right) [[TNTutorialEdgeInsets alloc] initWithEdgeInsets:UIEdgeInsetsMake(top, left, bottom, right)]


typedef NS_ENUM(NSInteger, TNTutorialTextPosition) {
Expand Down

0 comments on commit 56c6abf

Please sign in to comment.