2
This commit is contained in:
23
keyBoard/Class/Login/VC/KBLoginSheetViewController.h
Normal file
23
keyBoard/Class/Login/VC/KBLoginSheetViewController.h
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// KBLoginSheetViewController.h
|
||||
// keyBoard
|
||||
//
|
||||
// A lightweight bottom-sheet style login prompt.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KBLoginSheetViewController : UIViewController
|
||||
|
||||
/// Called when the login finished successfully; sheet will dismiss itself as well.
|
||||
@property (nonatomic, copy, nullable) void (^onLoginSuccess)(void);
|
||||
|
||||
/// Present the sheet from a top most view controller.
|
||||
+ (void)presentIfNeededFrom:(UIViewController *)presenting;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
Reference in New Issue
Block a user