Signal-iOS/SignalUI
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
..
Appearance More updates to chat input bar. 2022-11-14 13:33:37 -08:00
Categories Add icon to "donate with credit/debit card" button 2022-11-22 12:25:18 -06:00
Environment Change license to AGPL 2022-10-13 08:25:37 -05:00
Fonts Add new fonts for text stories 2022-03-17 14:30:19 -07:00
Payments Fix various bugs in OWSHttpHeaders 2022-11-22 11:43:55 -08:00
SignalUI.docc Add SignalUI framework target. 2021-10-19 09:39:52 -03:00
UI Remove unused UI utility functions 2022-11-03 07:07:50 -05:00
Utils Format credit/debit card donation inputs 2022-11-23 18:49:21 -06:00
ViewControllers Improve animations in conversation input bar 2022-11-21 11:37:21 -08:00
ViewModels Add all JobQueues to environment, via a wrapper 2022-11-09 14:08:44 -06:00
Views Improve animations in conversation input bar 2022-11-21 11:37:21 -08:00
Wallpapers Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalUI-Prefix.pch Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalUI.h Translate OWSNavigationController to swift 2022-11-03 15:33:02 -07:00