title: How can I make text in UITextField all lowercase?
body: <p>I have the below query to firebase which searches for usernames. </p>
  
  <pre><code>        let ref = Database.database().reference().child("UsernameIndex")
      ref.queryOrdered(byChild: "username").queryStarting(atValue: username).queryEnding(atValue: username+"\u{f8ff}").observeSingleEvent(of: .value) { snap in
  </code></pre>
  
  <p>The issue is that if I type  upercase at any point it will not search so how can i make all leters lower case or make the text lowercase or make the query not case sensitive?</p>
  
  <p>The best I have been able to do to make the text lowercase is:</p>
  
  <pre><code>        searchField.autocapitalizationType = .none
      searchField.autocorrectionType = .no
      searchField.spellCheckingType = .no
  </code></pre>
  
  <p>But this still allows teh user to type uppercase. </p>