Skip to content

Commit

Permalink
allows text of the textfield to be set without formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jwolkovitz committed Apr 17, 2017
1 parent 8e460a6 commit 5f40ca3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PhoneNumberKit/UI/TextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ open class PhoneNumberTextField: UITextField, UITextFieldDelegate {
}
}

/// allows text to be set without formatting
open func setTextUnformatted(newValue:String?) {
super.text = newValue
}

/// Override region to set a custom region. Automatically uses the default region code.
public var defaultRegion = PhoneNumberKit.defaultRegionCode() {
didSet {
Expand Down

0 comments on commit 5f40ca3

Please sign in to comment.