Signal-iOS/SignalUI/Views
Max Radermacher 1311d3f665
Refactor contact access code
Split it based on whether the purpose is “editing” or “sharing”. If
we’re editing, it generally means we have full access to contacts, and
that we’ve checked which of the contacts are registered on Signal. If
we’re “sharing”, we don’t care whether or not they’re registered.

If we’re “sharing”, we check whether or not we’ve prompted for the
contacts permission yet. If not, we’ll show the prompt.

If we’re “editing”, we assume we’ve already prompted (which is already
the case today), so `.notDetermined` isn’t a possible state.

Other things to note:

- The `supportsContactEditing` was always true, so it’s been removed.

- The error when contacts access isn’t allowed is now shown more
  consistently. Previously, it was sometimes shown in response to
  initializing a view controller.

- Some RecipientPickerViewController code was moved from Obj-C to Swift.
  This is probably useful on its own, but it’ll also make it easier to
  build some new UI in subsequent commits.
2023-01-12 09:55:30 -08:00
..
ConversationView Change license to AGPL 2022-10-13 08:25:37 -05:00
ImageEditor Improvements for "Media Review" screen. 2023-01-11 16:22:40 -08:00
Link Preview Attach link previews present in the message text 2022-12-07 16:13:49 -08:00
Mentions Fix vertical alignment of text in chat input bar. 2023-01-11 15:27:33 -08:00
Tooltips Change license to AGPL 2022-10-13 08:25:37 -05:00
VideoEditor Improvements for "Media Review" screen. 2023-01-11 16:22:40 -08:00
AvatarImageView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
BezierPathView.swift Convert OWSBezierPathView to Swift. 2022-11-30 16:16:36 -08:00
CaptchaView.swift Prefer isEmpty with strings 2022-11-01 17:53:46 -05:00
CircleView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
ColorPickerBar.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
ContactCell.swift Improve collation methods in ContactsPicker 2023-01-10 14:43:09 -08:00
ContactCellView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
ContactsViewHelper.h Refactor contact access code 2023-01-12 09:55:30 -08:00
ContactsViewHelper.m Refactor contact access code 2023-01-12 09:55:30 -08:00
ContactsViewHelper.swift Refactor contact access code 2023-01-12 09:55:30 -08:00
ContactTableViewCell.swift Clean up recipient picker contact/group cells 2022-11-07 13:02:45 -08:00
ConversationAvatarView.swift Consolidate one-time & monthly donation screens 2022-11-08 16:27:50 -06:00
CustomKeyboard.swift Don't let large custom keyboards break attachment keyboard height 2022-12-23 14:55:31 -08:00
DirectionalPanGestureRecognizer.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
DisappearingTimerConfigurationView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
GalleryRailView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
GradientView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
GroupTableViewCell.swift Import SignalMessaging where it’s needed 2022-10-24 10:19:06 -07:00
InputAccessoryViewPlaceholder.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
LinkingTextView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
LoopingVideoView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
ManualLayoutView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
ManualStackView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
MediaTextView.swift Update text overlay UI in photo editor to match text story composer UI. 2022-11-08 11:26:54 -08:00
NonContactTableViewCell.swift Clean up recipient picker contact/group cells 2022-11-07 13:02:45 -08:00
OWSActionSheets.swift Prefer isEmpty with strings 2022-11-01 17:53:46 -05:00
OWSBubbleShapeView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSBubbleView.h Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSButton.swift Consolidate one-time & monthly donation screens 2022-11-08 16:27:50 -06:00
OWSFlatButton.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSLayerView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSNavigationBar.swift Use solid color for dark theme navbar 2022-12-23 11:43:45 -08:00
OWSSearchBar.h Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSSearchBar.m Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSStackView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
OWSTextField.swift Swiftify OWSTextField 2022-11-28 17:51:27 -06:00
OWSTextView.swift Convert OWSTextView to Swift 2022-11-29 23:06:14 -08:00
PrimaryImageView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
ReminderView.swift Handle theme changes in ReminderView 2022-10-31 15:45:06 -07:00
ResizingScrollView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
RoundMediaButton.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
TappableStackView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
TappableView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
TextAttachmentView.swift Switify some code related to ConversationInputToolbar. 2022-11-07 16:32:59 -08:00
TextFieldWithPlaceholder.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
TextViewWithPlaceholder.swift Prefer isEmpty with strings 2022-11-01 17:53:46 -05:00
ThemeHeaderView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
Toast.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
VideoPlayerView.swift Change license to AGPL 2022-10-13 08:25:37 -05:00