Signal-iOS/SignalUI/Utils
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
..
Attachment Multisend Add all JobQueues to environment, via a wrapper 2022-11-09 14:08:44 -06:00
AppContext+SignalUI.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
BlockListUIUtils.h Remove two unused blocklist methods 2022-11-03 11:41:41 -07:00
BlockListUIUtils.m Remove two unused blocklist methods 2022-11-03 11:41:41 -07:00
ConversationStyle.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
FormattedNumberField.swift Format credit/debit card donation inputs 2022-11-23 18:49:21 -06:00
FullTextSearcher.swift Un-index deleted private story threads. Omit disabled private story threads from search results 2022-11-02 11:18:55 -07:00
GroupManager+GroupInvites.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
GroupViewUtils.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
InviteFlow.swift Update “Find by Number/Username” to latest designs 2022-11-04 13:40:13 -07:00
MobileCoinHelperSDK.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
NameCollisionFinder.swift Hide the dropped-members banner more permanently when dismissed 2022-10-29 13:26:26 -07:00
OWSAnyTouchGestureRecognizer.h Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSAnyTouchGestureRecognizer.m Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSAudioPlayer.h Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSAudioPlayer.m Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSAudioSession.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSSounds+SignalUI.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
StoryMessage+SignalUI.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
StorySharing.swift Better multisend of text stories 2022-10-20 11:04:25 -07:00
TSMessage+SignalUI.swift Add all JobQueues to environment, via a wrapper 2022-11-09 14:08:44 -06:00