mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
173008fba9
Layout needs to be kept tight for small form factors, but it was overly cramped on larger devices. // FREEBIE
33 lines
859 B
Objective-C
33 lines
859 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class PinEntryView;
|
|
|
|
@protocol PinEntryViewDelegate <NSObject>
|
|
|
|
- (void)pinEntryView:(PinEntryView *)entryView submittedPinCode:(NSString *)pinCode;
|
|
- (void)pinEntryViewForgotPinLinkTapped:(PinEntryView *)entryView;
|
|
|
|
@optional
|
|
- (void)pinEntryView:(PinEntryView *)entryView pinCodeDidChange:(NSString *)pinCode;
|
|
|
|
@end
|
|
|
|
@interface PinEntryView : UIView
|
|
|
|
@property (nonatomic, weak, nullable) id<PinEntryViewDelegate> delegate;
|
|
@property (nonatomic, readonly) BOOL hasValidPin;
|
|
@property (nullable, nonatomic) NSString *instructionsText;
|
|
@property (nullable, nonatomic) NSAttributedString *attributedInstructionsText;
|
|
@property (nonatomic, readonly) UIFont *boldLabelFont;
|
|
|
|
- (void)clearText;
|
|
- (BOOL)makePinTextFieldFirstResponder;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|