@@ -33,6 +33,11 @@ typedef NS_ENUM(NSInteger, TOPasscodeInputFieldStyle) {
3333 TOPasscodeInputFieldStyleVariable // The passcode can be any arbitrary number of characters (Shows an empty rectangle)
3434};
3535
36+ /* *
37+ An abstract input view capable of receiving different types of passcodes.
38+ When a fixed character passcode is specified, the view shows a row of circles.
39+ When a variable passcode is specified, a rounded rectangle is shown.
40+ */
3641@interface TOPasscodeInputField : UIView <UIKeyInput>
3742
3843/* The visual effects view used to control the vibrancy of the input field */
@@ -86,7 +91,7 @@ typedef NS_ENUM(NSInteger, TOPasscodeInputFieldStyle) {
8691/* Init with the target length needed for this passcode */
8792- (instancetype )initWithStyle : (TOPasscodeInputFieldStyle)style ;
8893
89- /* Replace the passcode with this one, and animate the transition */
94+ /* Replace the passcode with this one, and animate the transition. */
9095- (void )setPasscode : (nullable NSString *)passcode animated : (BOOL )animated ;
9196
9297/* Add additional characters to the end of the passcode, and animate if desired. */
@@ -98,7 +103,7 @@ typedef NS_ENUM(NSInteger, TOPasscodeInputFieldStyle) {
98103/* Plays a shaking animation and resets the passcode back to empty */
99104- (void )resetPasscodeAnimated : (BOOL )animated playImpact : (BOOL )impact ;
100105
101- /* Animates the OK button changing location */
106+ /* Animates the OK button changing location. */
102107- (void )setHorizontalLayout : (BOOL )horizontalLayout animated : (BOOL )animated duration : (CGFloat)duration ;
103108
104109@end
0 commit comments