123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- #import <UIKit/UIKit.h>
- #import "TOPasscodeViewControllerConstants.h"
- #import "TOPasscodeKeypadView.h"
- NS_ASSUME_NONNULL_BEGIN
- @class TOPasscodeCircleButton;
- @class TOPasscodeInputField;
- @class TOPasscodeKeypadView;
- @class TOPasscodeViewContentLayout;
- @interface TOPasscodeView : UIView
- @property (nonatomic, assign) TOPasscodeViewStyle style;
- @property (nonatomic, readonly) TOPasscodeType passcodeType;
- @property (nonatomic, assign) BOOL horizontalLayout;
- @property (nonatomic, copy) NSString *titleText;
- @property (nonatomic, strong, nullable) UIView *titleView;
- @property (nonatomic, strong, nullable) UIButton *leftButton;
- @property (nonatomic, strong, nullable) UIButton *rightButton;
- @property (nonatomic, readonly) UILabel *titleLabel;
- @property (nonatomic, readonly) TOPasscodeInputField *inputField;
- @property (nonatomic, readonly) TOPasscodeKeypadView *keypadView;
- @property (nonatomic, strong, nullable) UIColor *titleLabelColor;
- @property (nonatomic, strong, nullable) UIColor *inputProgressViewTintColor;
- @property (nonatomic, strong, nullable) UIColor *keypadButtonBackgroundColor;
- @property (nonatomic, strong, nullable) UIColor *keypadButtonTextColor;
- @property (nonatomic, strong, nullable) UIColor *keypadButtonHighlightedTextColor;
- @property (nonatomic, readonly) CGFloat keypadButtonInset;
- @property (nonatomic, assign) CGFloat contentAlpha;
- @property (nonatomic, copy, nullable) NSString *passcode;
- @property (nonatomic, strong, null_resettable) TOPasscodeViewContentLayout *defaultContentLayout;
- @property (nonatomic, strong, nullable) NSArray<TOPasscodeViewContentLayout *> *contentLayouts;
- @property (nonatomic, copy, nullable) void (^passcodeDigitEnteredHandler)(void);
- @property (nonatomic, copy, nullable) void (^passcodeCompletedHandler)(NSString *passcode);
- - (instancetype)initWithStyle:(TOPasscodeViewStyle)style passcodeType:(TOPasscodeType)type;
- - (void)sizeToFitSize:(CGSize)size;
- - (void)resetPasscodeAnimated:(BOOL)animated playImpact:(BOOL)impact;
- - (void)deleteLastPasscodeCharacterAnimated:(BOOL)animated;
- - (void)setHorizontalLayout:(BOOL)horizontalLayout animated:(BOOL)animated duration:(CGFloat)duration;
- @end
- NS_ASSUME_NONNULL_END
|