I have created the following code where I have an outlet name password, when the user enters a password, I seek to have a limit of more than 5 characters and less than 15. How can I impose this limit within this code?
guard let password = password.text, password.count > 6 else {
self.password.showError(true)
return
}
guard (password == confirmPassword.text) else {
self.confirmPassword.showError(true)
return
}