SCLAlertView-Swift icon indicating copy to clipboard operation
SCLAlertView-Swift copied to clipboard

Textfield by default shift on?

Open felixfrtz opened this issue 8 years ago • 1 comments

I have the issue that by default the first letter of the input in a textfield always seems to be capitalized.

I am using the textfields for letting a user change it's email and password, which is why this is a bit annoying. For the password field, I would also like to have it be transformed into dots. Is that possible?

felixfrtz avatar Jun 29 '17 10:06 felixfrtz

@warhost You could do it like this:

        let alert = SCLAlertView(appearance: appearance)
	let txt = alert.addTextField("Enter some data")
        txt.autocapitalizationType = .none
        txt.isSecureTextEntry = true

algrid avatar Aug 18 '17 21:08 algrid