Skip to content
New issue

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

Remove "$" from texfield #11

Open
DenisJanoto opened this issue Jun 1, 2020 · 2 comments
Open

Remove "$" from texfield #11

DenisJanoto opened this issue Jun 1, 2020 · 2 comments
Assignees

Comments

@DenisJanoto
Copy link

Hi man,
First, thanks for your great job !

Please how can i remove the "$" from textfield ?

Tks..

@richa008 richa008 self-assigned this Jun 1, 2020
@VijayYadav984
Copy link

VijayYadav984 commented Aug 21, 2020

add below line in initTextField() method for remove currency symbol from textfield
currencyFormatter.currencySymbol = ""

@irfanabdulkhaliq
Copy link

extension String {

var stripped: String {
    let okayChars = Set("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLKMNOPQRSTUVWXYZ1234567890+-=().!_")
    return self.filter {okayChars.contains($0) }
}
}

//Usage
(perHourRateTF?.text ?? emptyString).stripped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants