Signal-iOS/Signal/test/ViewControllers
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
..
BadgeExpirationSheetStateTest.swift Update badge expiration sheet to match new designs 2022-11-10 17:08:35 -06:00
BadgeGiftingChooseBadgeViewControllerStateTest.swift Add FiatMoney type 2022-10-26 17:04:51 -05:00
ConversationViewControllerTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
ConversationViewTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
CreditOrDebitCardDonationViewControllerTest.swift Format credit/debit card donation inputs 2022-11-23 18:49:21 -06:00
CVMessageMappingTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
CVTextTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
DonateViewControllerTest.swift Update subscriptions without re-prompting for Apple Pay 2022-11-20 08:08:15 -06:00
JournalingOrderedDictionaryTests.swift Adopt JournalingOrderedDictionary. (#5405) 2022-11-16 17:31:23 -08:00
MediaGalleryCollectionViewUpdaterTest.swift Add MediaGalleryCollectionViewUpdater 2022-11-23 15:20:48 -08:00
MediaGallerySectionsTest.swift Adopt JournalingOrderedDictionary. (#5405) 2022-11-16 17:31:23 -08:00
VisibleBadgeResolverTest.swift Change license to AGPL 2022-10-13 08:25:37 -05:00