Whitespace being added at beginning of string when pasting into Eureka form | Swift

38 Views Asked by At

I have a Eureka form that displays a TextAreaRow. When the user attempts to "Paste" something from the UIPasteboard into this field, it adds a space to the front of the string (Example: "Homework" becomes " Homework" - notice the space at the front). How can I stop this from happening?

import UIKit
import Eureka

class MyViewController: FormViewController {
   func setupEurekaForm() {
      form
      +++ Section("TEXTFIELDS")
      <<< TextAreaRow() {
         $0.value = "Test text"
         // here I need to somehow tell the field to disable smartInsertDeleteType
      }
   }
}
0

There are 0 best solutions below