Signal-iOS/SignalUITests
Evan Hahn 53642df893 Format credit/debit card donation inputs
This formats the text users enter on the card donation screen. For
example, "4242424242424242" becomes "4242 4242 4242 4242".

It uses [the `textField(_:shouldChangeCharactersIn:replacementString:)`
method of `UITextFieldDelegate`][0] to accomplish this, and implements a
helper that can handle all the cases (inserting, deleting, replacing,
pasting, and so on).

Tested this in an iPhone 14 simulator and on a physical iOS 12 device.

[0]: https://developer.apple.com/documentation/uikit/uitextfielddelegate/1619599-textfield
2022-11-23 18:49:21 -06:00
..
FormattedNumberFieldTest.swift Format credit/debit card donation inputs 2022-11-23 18:49:21 -06:00
MobileCoinHelperTests.swift Import SignalMessaging where it’s needed 2022-10-24 10:19:06 -07:00
PhoneNumberFinderTests.swift Add ContactDiscoveryManager 2022-11-15 13:37:28 -08:00