Skip to content

Commit 611ba43

Browse files
committed
Removed incorrect references to ‘password’
1 parent 49e2202 commit 611ba43

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

TOPasscodeViewController/Models/TOPasscodeViewContentLayout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
/* Text Field Configuration */
7171
@property (nonatomic, assign) CGFloat textFieldBorderThickness; // The thickness of the border stroke
7272
@property (nonatomic, assign) CGFloat textFieldBorderRadius; // The corner radius of the border
73-
@property (nonatomic, assign) CGFloat textFieldCircleDiameter; // The size of the circles in the password field
73+
@property (nonatomic, assign) CGFloat textFieldCircleDiameter; // The size of the circles in the passcode field
7474
@property (nonatomic, assign) CGFloat textFieldCircleSpacing; // The amount of spacing between each circle
7575
@property (nonatomic, assign) CGSize textFieldBorderPadding; // The amount of padding between the circles and the border
7676
@property (nonatomic, assign) NSInteger textFieldNumericCharacterLength; // The amount of circles to have in this field when set to numeric

TOPasscodeViewController/Models/TOPasscodeViewControllerAnimatedTransitioning.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
8686
[transitionContext completeTransition:completed];
8787
};
8888

89-
// If we're animating out from a successful password, play a zooming out animation
89+
// If we're animating out from a successful passcode, play a zooming out animation
9090
// to give some more context
91-
if (self.passcodeSuccess && self.dismissing) {
91+
if (self.success && self.dismissing) {
9292
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform"];
9393
animation.duration = [self transitionDuration:transitionContext];
9494
animation.toValue = [NSValue valueWithCATransform3D:CATransform3DMakeScale(0.75f, 0.75f, 1)];

TOPasscodeViewController/TOPasscodeSettingsViewController.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
@class TOPasscodeSettingsViewController;
2727

2828
typedef NS_ENUM(NSInteger, TOPasscodeSettingsViewState) {
29-
TOPasscodeSettingsViewStateEnterCurrentPassword,
30-
TOPasscodeSettingsViewStateEnterNewPassword,
31-
TOPasscodeSettingsViewStateConfirmNewPassword
29+
TOPasscodeSettingsViewStateEnterCurrentPasscode,
30+
TOPasscodeSettingsViewStateEnterNewPasscode,
31+
TOPasscodeSettingsViewStateConfirmNewPasscode
3232
};
3333

3434
NS_ASSUME_NONNULL_BEGIN
@@ -82,7 +82,7 @@ NS_ASSUME_NONNULL_BEGIN
8282
/** The number of incorrect passcode attempts the user has made. Use this property to decide when to disable input. */
8383
@property (nonatomic, assign) NSInteger failedPasscodeAttemptCount;
8484

85-
/** Before setting a new passcode, show a UI to validate the existing password. (Default is NO) */
85+
/** Before setting a new passcode, show a UI to validate the existing passcode. (Default is NO) */
8686
@property (nonatomic, assign) BOOL requireCurrentPasscode;
8787

8888
/** If set, the view controller will disable input until this date time has been reached */

TOPasscodeViewController/TOPasscodeSettingsViewController.m

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ - (void)viewWillAppear:(BOOL)animated
184184
{
185185
[super viewWillAppear:animated];
186186

187-
self.state = self.requireCurrentPasscode ? TOPasscodeSettingsViewStateEnterCurrentPassword : TOPasscodeSettingsViewStateEnterNewPassword;
187+
self.state = self.requireCurrentPasscode ? TOPasscodeSettingsViewStateEnterCurrentPasscode : TOPasscodeSettingsViewStateEnterNewPasscode;
188188
[self updateContentForState:self.state type:self.passcodeType animated:NO];
189189
}
190190

@@ -195,7 +195,7 @@ - (void)updateContentForState:(TOPasscodeSettingsViewState)state type:(TOPasscod
195195
BOOL variableSizePasscode = (type >= TOPasscodeTypeCustomNumeric);
196196

197197
// Update the visibility of the options button
198-
self.optionsButton.hidden = !(state == TOPasscodeSettingsViewStateEnterNewPassword);
198+
self.optionsButton.hidden = !(state == TOPasscodeSettingsViewStateEnterNewPasscode);
199199

200200
// Clear the input view
201201
self.inputField.passcode = nil;
@@ -217,17 +217,17 @@ - (void)updateContentForState:(TOPasscodeSettingsViewState)state type:(TOPasscod
217217

218218
// Update text depending on state
219219
switch (state) {
220-
case TOPasscodeSettingsViewStateEnterCurrentPassword:
220+
case TOPasscodeSettingsViewStateEnterCurrentPasscode:
221221
self.titleLabel.text = NSLocalizedString(@"Enter your passcode", @"");
222222
self.navigationItem.rightBarButtonItem = variableSizePasscode ? self.nextBarButtonItem : nil;
223223
self.inputField.returnKeyType = UIReturnKeyContinue;
224224
break;
225-
case TOPasscodeSettingsViewStateEnterNewPassword:
225+
case TOPasscodeSettingsViewStateEnterNewPasscode:
226226
self.titleLabel.text = NSLocalizedString(@"Enter a new passcode", @"");
227227
self.navigationItem.rightBarButtonItem = variableSizePasscode ? self.nextBarButtonItem : nil;
228228
self.inputField.returnKeyType = UIReturnKeyContinue;
229229
break;
230-
case TOPasscodeSettingsViewStateConfirmNewPassword:
230+
case TOPasscodeSettingsViewStateConfirmNewPasscode:
231231
self.titleLabel.text = NSLocalizedString(@"Confirm new passcode", @"");
232232
self.navigationItem.rightBarButtonItem = variableSizePasscode ? self.doneBarButtonItem : nil;
233233
self.inputField.returnKeyType = UIReturnKeyDone;
@@ -276,7 +276,7 @@ - (void)updateContentForState:(TOPasscodeSettingsViewState)state type:(TOPasscod
276276

277277
- (void)updateWarningLabelForState:(TOPasscodeSettingsViewState)state
278278
{
279-
BOOL confirmingPasscode = state == TOPasscodeSettingsViewStateEnterCurrentPassword;
279+
BOOL confirmingPasscode = state == TOPasscodeSettingsViewStateEnterCurrentPasscode;
280280

281281
// Update the warning label
282282
self.warningLabel.hidden = !(confirmingPasscode && self.failedPasscodeAttemptCount > 0);
@@ -317,13 +317,13 @@ - (void)transitionToState:(TOPasscodeSettingsViewState)state animated:(BOOL)anim
317317

318318
// Update the options button alpha depending on transition state
319319
self.optionsButton.hidden = NO;
320-
self.optionsButton.alpha = (state == TOPasscodeSettingsViewStateEnterNewPassword) ? 0.0f : 1.0f;
320+
self.optionsButton.alpha = (state == TOPasscodeSettingsViewStateEnterNewPasscode) ? 0.0f : 1.0f;
321321

322322
// Perform an animation where the snapshot slides off, and the new container slides in
323323
id animationBlock = ^{
324324
snapshot.frame = CGRectOffset(snapshot.frame, -self.view.frame.size.width * multiplier, 0.0f);
325325
self.containerView.frame = CGRectOffset(self.containerView.frame, -self.view.frame.size.width * multiplier, 0.0f);
326-
self.optionsButton.alpha = (state == TOPasscodeSettingsViewStateEnterNewPassword) ? 1.0f : 0.0f;
326+
self.optionsButton.alpha = (state == TOPasscodeSettingsViewStateEnterNewPasscode) ? 1.0f : 0.0f;
327327
};
328328

329329
// Clean up by removing the snapshot view
@@ -443,13 +443,13 @@ - (void)applyThemeForStyle:(TOPasscodeSettingsViewStyle)style
443443
- (void)inputViewDidCompletePasscode:(NSString *)passcode
444444
{
445445
switch (self.state) {
446-
case TOPasscodeSettingsViewStateEnterCurrentPassword:
446+
case TOPasscodeSettingsViewStateEnterCurrentPasscode:
447447
[self validateCurrentPasscodeAttemptWithPasscode:passcode];
448448
break;
449-
case TOPasscodeSettingsViewStateEnterNewPassword:
449+
case TOPasscodeSettingsViewStateEnterNewPasscode:
450450
[self didReceiveNewPasscode:passcode];
451451
break;
452-
case TOPasscodeSettingsViewStateConfirmNewPassword:
452+
case TOPasscodeSettingsViewStateConfirmNewPasscode:
453453
[self confirmNewPasscode:passcode];
454454
break;
455455
}
@@ -467,20 +467,20 @@ - (void)validateCurrentPasscodeAttemptWithPasscode:(NSString *)passcode
467467
self.failedPasscodeAttemptCount++;
468468
}
469469
else {
470-
[self transitionToState:TOPasscodeSettingsViewStateEnterNewPassword animated:YES];
470+
[self transitionToState:TOPasscodeSettingsViewStateEnterNewPasscode animated:YES];
471471
}
472472
}
473473

474474
- (void)didReceiveNewPasscode:(NSString *)passcode
475475
{
476476
self.potentialPasscode = passcode;
477-
[self transitionToState:TOPasscodeSettingsViewStateConfirmNewPassword animated:YES];
477+
[self transitionToState:TOPasscodeSettingsViewStateConfirmNewPasscode animated:YES];
478478
}
479479

480480
- (void)confirmNewPasscode:(NSString *)passcode
481481
{
482482
if (![passcode isEqualToString:self.potentialPasscode]) {
483-
[self transitionToState:TOPasscodeSettingsViewStateEnterNewPassword animated:YES];
483+
[self transitionToState:TOPasscodeSettingsViewStateEnterNewPasscode animated:YES];
484484
self.errorLabel.hidden = NO;
485485
return;
486486
}

TOPasscodeViewController/Views/Settings/TOPasscodeSettingsWarningLabel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@interface TOPasscodeSettingsWarningLabel : UIImageView
1212

13-
/** The number of incorrect password attempts to display */
13+
/** The number of incorrect passcode attempts to display */
1414
@property (nonatomic, assign) NSInteger numberOfWarnings;
1515

1616
/** The font of the text */

TOPasscodeViewController/Views/Shared/TOPasscodeInputField.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef NS_ENUM(NSInteger, TOPasscodeInputFieldStyle) {
3030
/* A row of hollow circles at a preset length. Valid only when `style` is set to `fixed` */
3131
@property (nonatomic, readonly, nullable) TOPasscodeFixedInputView *fixedInputView;
3232

33-
/* A rounded rectangle representing a password of arbitrary length. Valid only when `style` is set to `variable`. */
33+
/* A rounded rectangle representing a passcode of arbitrary length. Valid only when `style` is set to `variable`. */
3434
@property (nonatomic, readonly, nullable) TOPasscodeVariableInputView *variableInputView;
3535

3636
/* The 'submit' button shown when `showSubmitButton` is true. */

0 commit comments

Comments
 (0)