Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions Classes/AFDropdownNotification.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
@interface AFDropdownNotification : NSObject

typedef NS_ENUM(NSInteger, AFDropdownNotificationEvent) {

AFDropdownNotificationEventTopButton,
AFDropdownNotificationEventBottomButton,
AFDropdownNotificationEventTap
AFDropdownNotificationEventTap,
AFDropdownNotificationEventSwipe
};

typedef void (^block)(AFDropdownNotificationEvent event);
Expand All @@ -37,6 +37,20 @@ typedef void (^block)(AFDropdownNotificationEvent event);
@property (nonatomic, strong) UIImage *image;
@property (nonatomic, strong) NSString *topButtonText;
@property (nonatomic, strong) NSString *bottomButtonText;
@property (nonatomic, strong) UIFont *titleLabelFont;
@property (nonatomic, strong) UIColor *titleLabelColor;
@property (nonatomic, strong) UIFont *subtitleLabelFont;
@property (nonatomic, strong) UIColor *subtitleLabelColor;
@property (nonatomic, strong) UIFont *buttonFont;
@property (nonatomic, strong) UIColor *topButtonTextColor;
@property (nonatomic, strong) UIColor *topButtonBackgroundColor;
@property (nonatomic, strong) UIColor *topButtonBorderColor;
@property (nonatomic, strong) UIColor *bottomButtonTextColor;
@property (nonatomic, strong) UIColor *bottomButtonBackgroundColor;
@property (nonatomic, strong) UIColor *bottomButtonBorderColor;
@property (nonatomic) CGFloat buttonCornerRadius;
@property (nonatomic) CGFloat buttonBorderWidth;
@property (nonatomic, assign) UIBlurEffectStyle blurEffectStyle;

@property (nonatomic) BOOL isBeingShown;
@property (nonatomic) BOOL isImageRounded;
Expand All @@ -47,5 +61,6 @@ typedef void (^block)(AFDropdownNotificationEvent event);
-(void)dismissWithGravityAnimation:(BOOL)animation;

@property (nonatomic) BOOL dismissOnTap;
@property (nonatomic) BOOL dismissOnSwipeUp;

@end
Loading