We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I edit my subtitle? ` let appearance = SCLAlertView.SCLAppearance( kTitleFont: UIFont(name: "HelveticaNeue", size: 0)!, kTextFont: UIFont(name: "HelveticaNeue", size: 13)!, kButtonFont: UIFont(name: "HelveticaNeue-Bold", size: 14)!, showCloseButton: false, shouldAutoDismiss: false )
let alert = SCLAlertView(appearance: appearance) // Add a text field //let alert = SCLAlertView() let txt = alert.addTextView() let contactPerson = alert.addTextField("Contact person") alert.addButton("Done") { let characterset = CharacterSet(charactersIn: "@!?.£%abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 \n") if (txt.text.rangeOfCharacter(from: characterset.inverted) != nil || contactPerson.text!.rangeOfCharacter(from: characterset.inverted) != nil) { //print("string contains special characters") txt.resignFirstResponder() contactPerson.resignFirstResponder() alert.shake() print("This is when it has special chars", txt.text, contactPerson.text) } else { print("This is when it doesnt have special chars", txt.text, contactPerson.text) orgMoreInfo = "\(txt.text!)" orgContactPerson = "\(contactPerson.text!)" print("Information: \(txt.text!)") print("Contact Person: \(contactPerson.text!)") alert.hideView() } } let customColor = UIColor(red: 112.0/255, green: 23.0/255, blue: 43.0/255, alpha: 1.0) _ = alert.showEdit("", subTitle: "Please add more details ", colorStyle: customColor.colorAsUInt)`
This is what I'm using, I want to edit the subtitle when it has special characters.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How do I edit my subtitle?
` let appearance = SCLAlertView.SCLAppearance(
kTitleFont: UIFont(name: "HelveticaNeue", size: 0)!,
kTextFont: UIFont(name: "HelveticaNeue", size: 13)!,
kButtonFont: UIFont(name: "HelveticaNeue-Bold", size: 14)!,
showCloseButton: false,
shouldAutoDismiss: false
)
This is what I'm using, I want to edit the subtitle when it has special characters.
The text was updated successfully, but these errors were encountered: