Skip to content

Commit

Permalink
presentation settings
Browse files Browse the repository at this point in the history
  • Loading branch information
illabo committed Jun 22, 2020
1 parent ce9c919 commit e2b0253
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 146 deletions.
6 changes: 6 additions & 0 deletions ASDKUI/Payment/PaymentFormStarter/ASDKDesignConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,10 @@ typedef NS_ENUM(NSUInteger, TableViewCellType)
- (void)setPayViewTitle:(NSString *)title;
- (NSString *)payViewTitle;


- (void)setPresentationCompletion:(void (^)(void))presentationCompletion;
- (void (^)(void))getPresentationCompletion;
- (void)setPresentAnimated:(BOOL)animated;
- (BOOL)shouldAnimate;

@end
22 changes: 22 additions & 0 deletions ASDKUI/Payment/PaymentFormStarter/ASDKDesignConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ @interface ASDKDesignConfiguration ()

@property (nonatomic, strong) NSString *payViewControllerTitle;

@property (nonatomic, strong) void (^presentationCompletion)(void);
@property (nonatomic) BOOL _presentAnimated;

@end

@implementation ASDKDesignConfiguration
Expand All @@ -62,6 +65,7 @@ - (id)init
__navigationBarItemsTextColor = UIColor.blackColor;
}
__presentStyleModal = UIModalPresentationFullScreen;
__presentAnimated = YES;
}

return self;
Expand Down Expand Up @@ -298,4 +302,22 @@ - (NSString *)payViewTitle
return self.payViewControllerTitle;
}

- (void)setPresentationCompletion:(void (^)(void))presentationCompletion
{
_presentationCompletion = presentationCompletion;
}
- (void (^)(void))getPresentationCompletion
{
return _presentationCompletion;
}

-(void)setPresentAnimated:(BOOL)animated
{
__presentAnimated = animated;
}
-(BOOL)shouldAnimate
{
return __presentAnimated;
}

@end
Loading

0 comments on commit e2b0253

Please sign in to comment.