Skip to content

Commit ce13d39

Browse files
authored
Merge pull request #1126 from firebase/mc/auth
fix password field autocapitalizing password
2 parents cef424d + d089177 commit ce13d39

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

authentication/AuthenticationExample.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 50;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -598,7 +598,7 @@
598598
EAE4CBEF24855E3E00245E92 /* Debug */ = {
599599
isa = XCBuildConfiguration;
600600
buildSettings = {
601-
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
601+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
602602
BUNDLE_LOADER = "$(TEST_HOST)";
603603
CODE_SIGN_STYLE = Automatic;
604604
INFOPLIST_FILE = AuthenticationExampleTests/Info.plist;
@@ -619,7 +619,7 @@
619619
EAE4CBF024855E3E00245E92 /* Release */ = {
620620
isa = XCBuildConfiguration;
621621
buildSettings = {
622-
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
622+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
623623
BUNDLE_LOADER = "$(TEST_HOST)";
624624
CODE_SIGN_STYLE = Automatic;
625625
INFOPLIST_FILE = AuthenticationExampleTests/Info.plist;
@@ -640,7 +640,7 @@
640640
EAE4CBF224855E3E00245E92 /* Debug */ = {
641641
isa = XCBuildConfiguration;
642642
buildSettings = {
643-
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
643+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
644644
CODE_SIGN_STYLE = Automatic;
645645
INFOPLIST_FILE = AuthenticationExampleUITests/Info.plist;
646646
LD_RUNPATH_SEARCH_PATHS = (
@@ -660,7 +660,7 @@
660660
EAE4CBF324855E3E00245E92 /* Release */ = {
661661
isa = XCBuildConfiguration;
662662
buildSettings = {
663-
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
663+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
664664
CODE_SIGN_STYLE = Automatic;
665665
INFOPLIST_FILE = AuthenticationExampleUITests/Info.plist;
666666
LD_RUNPATH_SEARCH_PATHS = (

authentication/AuthenticationExample/CustomViews/LoginView.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,16 @@ import UIKit
1616

1717
/// Login View presented when peforming Email & Password Login Flow
1818
class LoginView: UIView {
19-
var emailTextField: UITextField!
20-
var passwordTextField: UITextField!
19+
var emailTextField: UITextField! {
20+
didSet {
21+
emailTextField.textContentType = .emailAddress
22+
}
23+
}
24+
var passwordTextField: UITextField! {
25+
didSet {
26+
passwordTextField.textContentType = .password
27+
}
28+
}
2129

2230
var emailTopConstraint: NSLayoutConstraint!
2331
var passwordTopConstraint: NSLayoutConstraint!

0 commit comments

Comments
 (0)