LuxChat  2.0
Instant messenger for iOS
PFSignUpView.h
1 /*
2  * Copyright (c) 2014, Parse, LLC. All rights reserved.
3  *
4  * You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5  * copy, modify, and distribute this software in source code or binary form for use
6  * in connection with the web services and APIs provided by Parse.
7  *
8  * As with any software that integrates with the Parse platform, your use of
9  * this software is subject to the Parse Terms of Service
10  * [https://www.parse.com/about/terms]. This copyright notice shall be
11  * included in all copies or substantial portions of the software.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19  *
20  */
21 
22 #import <UIKit/UIKit.h>
23 
24 #import <ParseUI/ParseUIConstants.h>
25 
26 NS_ASSUME_NONNULL_BEGIN
27 
34 typedef NS_OPTIONS(NSInteger, PFSignUpFields) {
36  PFSignUpFieldsUsernameAndPassword = 0,
38  PFSignUpFieldsEmail = 1 << 0,
40  PFSignUpFieldsAdditional = 1 << 1,
42  PFSignUpFieldsSignUpButton = 1 << 2,
44  PFSignUpFieldsDismissButton = 1 << 3,
46  PFSignUpFieldsDefault = (PFSignUpFieldsUsernameAndPassword |
47  PFSignUpFieldsEmail |
48  PFSignUpFieldsSignUpButton |
49  PFSignUpFieldsDismissButton)
50 };
51 
57 extern NSString *const PFSignUpViewUsernameFieldAccessibilityIdentifier;
58 extern NSString *const PFSignUpViewEmailFieldAccessibilityIdentifier;
59 extern NSString *const PFSignUpViewPasswordFieldAccessibilityIdentifier;
60 extern NSString *const PFSignUpViewAdditionalFieldAccessibilityIdentifier;
61 extern NSString *const PFSignUpViewSignUpButtonAccessibilityIdentifier;
62 extern NSString *const PFSignUpViewDismissButtonAccessibilityIdentifier;
63 
64 @class PFTextField;
65 
69 @interface PFSignUpView : UIScrollView
70 
74 
84 - (instancetype)initWithFields:(PFSignUpFields)fields;
85 
91 @property (nullable, nonatomic, weak) UIViewController *presentingViewController;
92 
96 
100 @property (nullable, nonatomic, strong) UIView *logo;
101 
105 
111 @property (nonatomic, assign) BOOL emailAsUsername;
112 
116 
120 @property (nonatomic, assign, readonly) PFSignUpFields fields;
121 
125 @property (nullable, nonatomic, strong, readonly) PFTextField *usernameField;
126 
130 @property (nullable, nonatomic, strong, readonly) PFTextField *passwordField;
131 
135 @property (nullable, nonatomic, strong, readonly) PFTextField *emailField;
136 
142 @property (nullable, nonatomic, strong, readonly) PFTextField *additionalField;
143 
147 @property (nullable, nonatomic, strong, readonly) UIButton *signUpButton;
148 
152 @property (nullable, nonatomic, strong, readonly) UIButton *dismissButton;
153 
154 @end
155 
156 NS_ASSUME_NONNULL_END
UIView * logo
Definition: PFSignUpView.h:100
PFTextField * additionalField
Definition: PFSignUpView.h:142
UIButton * signUpButton
Definition: PFSignUpView.h:147
BOOL emailAsUsername
Definition: PFSignUpView.h:111
Definition: PFTextField.h:47
PFTextField * passwordField
Definition: PFSignUpView.h:130
Definition: PFSignUpView.h:69
PFTextField * usernameField
Definition: PFSignUpView.h:125
PFTextField * emailField
Definition: PFSignUpView.h:135
UIViewController * presentingViewController
Definition: PFSignUpView.h:91
UIButton * dismissButton
Definition: PFSignUpView.h:152