Signal-iOS/SignalUI
Evan Hahn 198fc1784a
Consolidate one-time & monthly donation screens
Previously, one-time donations were on one screen and monthly donations
were on another. Now, they're on a single screen with a picker.

Most of the interesting changes are in `DonateViewController`.

Other things of note:

- There are some new TODOs here for existing bugs I didn't fix. For
  example, one-time donations don't do so well if there are any problems
  at all.

- Even though we only support Apple Pay, there's code that alludes to
  additional payment methods. For example,
  `DonateChoosePaymentMethodSheet`. We'll expand on this in the future.

- Users should only be able to select currencies that the server
  supports. For example, you shouldn't be able to select EUR if the
  server doesn't support euros. This wasn't working correctly before,
  but is fixed here.

  We already fixed one part, where users could change to an unsupported
  currency (see dab02f30ae). However, if
  your _default_ currency is unsupported and you didn't change it,
  that's no good. This is unlikely for most users but could happen.

  I fixed this by changing it from (effectively)
  `Locale.current.currencyCode ?? "USD"`, which might not be supported,
  to a preference list, choosing the first one the server likes.

- I skip animations if the Reduce Motion setting is enabled.

- On the donation screen, the logic for the preview badge has changed
  slightly. If you already have a badge, we'll always use that.
2022-11-08 16:27:50 -06:00
..
Appearance Consolidate one-time & monthly donation screens 2022-11-08 16:27:50 -06:00
Categories Clean up recipient picker contact/group cells 2022-11-07 13:02:45 -08: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 [Payments] MobileCoin enclave measurements update for v3.0.0 (#5378) 2022-11-07 15:52:36 -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 Update “Find by Number/Username” to latest designs 2022-11-04 13:40:13 -07:00
ViewControllers Switify some code related to ConversationInputToolbar. 2022-11-07 16:32:59 -08:00
ViewModels Observe story viewed ring changes in ConversationAvatarView 2022-10-25 12:57:52 -07:00
Views Consolidate one-time & monthly donation screens 2022-11-08 16:27:50 -06: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