Commit Graph

417 Commits

Author SHA1 Message Date
Ehren Kret
372db4eba4 cleanup biometry type related code 2024-08-29 15:33:58 -05:00
Harry
4ccfb958f6
Disable ai writing tools on all text fields in the app 2024-08-27 09:53:07 -07:00
Adam Sharp
1a8c9fb5c6
Fix iOS 18 crash on launch due to offscreen rendering
Creating a UIImageView outside a view hierarchy now crashes on iOS 18. We can
avoid this offscreen rendering technique by removing UIImage.asTintedImage(),
configuring the tint colour and template rendering on the UIImage directly, and
rendering with UIGraphicsImageRenderer instead of lower-level Core Graphics
APIs.
2024-08-20 10:47:28 -04:00
Ehren Kret
fc350cb88a convert PhoneNumber to swift 2024-08-07 16:16:02 -05:00
Adam Sharp
b9a72a000e Update CaptchaView to use async delegate methods 2024-08-05 10:29:39 -04:00
Elaine
ed35c95216
Update call header for controls drawer 2024-07-22 13:35:04 -06:00
Adam Sharp
d5b8ec648d
Remove simple availability checks for iOS 15 2024-07-10 09:40:13 -04:00
Adam Sharp
ce9e1594ec
Fix attachment/media keyboard not appearing
Scaling the system keyboard height eagerly meant that if the window was not
set, the keyboard height would be set to 0.  Defer scaling the system keyboard
height until layout time when the view has been added to a view hierarchy.
2024-07-09 12:17:37 -04:00
Adam Sharp
03e018de09
Raise deployment target to iOS 15
The only remaining code using API deprecated in iOS 15 is navigation bar
styling code that never runs on iOS 15.
2024-07-08 16:04:03 -04:00
Adam Sharp
1dd76032c6 Replace AppContext.interfaceOrientation with UIWindowScene equivalent 2024-07-08 15:58:31 -04:00
Adam Sharp
b42710cf90 Work around use of deprecated UIButton API
The old UIButton API is still functional as long as we don't use
UIButton.Configuration, so we can safely ignore these warnings until we're
ready to adopt the configuration API across the codebase.
2024-07-03 14:27:48 -04:00
Adam Sharp
0835dd1fc7 Make retroactive conformances conditional on compiler version 2024-07-03 11:28:45 -04:00
Harry
bb083ca39c
Fold SignalCoreKit into SignalServiceKit
Co-authored-by: Adam Sharp <sharplet@signal.org>
2024-06-26 08:44:41 -07:00
Elaine
d600ae8055
Add raise hand toast feature flag 2024-06-21 12:48:33 -06:00
Adam Sharp
3f0405e9fb
When editing a message, prompt before discarding current draft 2024-06-03 12:23:09 -04:00
Harry
0331807a05
Handle TSResource in AudioPlayer, take 2 2024-05-21 10:14:07 -07:00
Harry
e472f501d8
Revert recent AudioPlayer TSResource changes 2024-05-13 16:15:11 -07:00
Adam Sharp
5f1820748e Don't ignore theme changes when switching to system interface style
When switching to the "system" theme mode, if the effective appearance matched
the previous overridden theme mode, the theme change would be ignored. By
comparing the mode instead of just the effective appearance, we properly react
to system appearance changes.

Additionally, rework the transition animation for changing themes to match the
animation of system appearance changes (i.e., a 0.5-second cross-dissolve).

Fixes: https://signalmessenger.atlassian.net/browse/IOS-4431
2024-05-13 16:16:53 -05:00
Ehren Kret
13a1637608 migrate AppContext protoocl to swift 2024-05-08 07:37:37 -05:00
Harry
427ee2b087
Use TSResource in ViewOnceMessageViewController 2024-05-07 15:04:01 -07:00
Harry
ca5bd9702a
Set UIView image on main thread 2024-05-06 12:07:11 -05:00
Harry
67ad7494f4
Use TSResourceStream.avAsset directly in AudioPlayer 2024-05-03 14:44:06 -07:00
Harry
633014ae72
Remove a few easy TSAttachmentStream bridges 2024-05-03 14:33:53 -07:00
Max Radermacher
0b3d2a8f18
Remove and fix confusing substring methods 2024-05-01 15:46:25 -05:00
Ehren Kret
30424e19ae remove OWSNavigationControllerBase
This appears to have been a hack for something that may have been
necessary in older versions of iOS. Current iOS seems to just return
true with no side-effects from this super call so there's no reason to
retain this hack apparent.
2024-04-28 23:19:43 -05:00
Harry
e8939fa928
Some final easy story TSAttachment bridging removals 2024-04-25 10:22:30 -07:00
Pete Walters
6a5cb5bdcd
Limit gradient points and colors 2024-04-23 15:16:43 -05:00
Max Radermacher
456f2037ee
Stop putting kLocalProfileUniqueId in addresses 2024-04-23 13:58:27 -05:00
Ehren Kret
3b51f00f6a migrate two factory methods of UIImage+OWS to swift 2024-04-22 00:17:31 -05:00
Ehren Kret
039d2625b9 convert OWSMath.h to swift
OWSMath.swift overlaps somewhat with Math+OWS.swift but no worse than
OWSMath.h did previously. There are future refactoring efforts that
should occur there to use more of the extensions of Math+OWS.swift and
less of the extensions from OWSMath.swift
2024-04-21 23:26:16 -05:00
Elaine
8d9d04af42
Add nickname tooltip to contact about sheet 2024-04-18 15:05:44 -06:00
Max Radermacher
972bb6d37a
Tweak some info and warning lines 2024-04-16 18:10:49 -05:00
Harry
ec181d09b8
TSAttachment->TSResource cleanups 2024-04-15 09:44:21 -07:00
Elaine
2eea4e9060
Add character limit label to profile note editor 2024-04-10 09:55:23 -06:00
Elaine
ef8e838553
Allow contact notes to be viewed and edited from the contact about sheet 2024-04-09 16:31:25 -06:00
Elaine
659e897dc9
Allow nicknames to be saved and displayed 2024-04-05 09:35:57 -06:00
Jordan Rose
b0de59f2e2 Remove required from every init that is not dynamically dispatched
This included:
- Removing unavailable inits wholesale if no longer `required`
- Marking a few classes `final` so they could continue using
  `Self(...)` rather than `OWSWhatever(...)`
2024-04-01 15:27:20 -07:00
Jordan Rose
2727a70b90 Make AtomicValue's lock-sharing explicit
Also:
- Remove AtomicUInt's @objc, it's no longer used from ObjC
- Remove Codable conformances, they would implicitly use shared locks
  and weren't used in practice
2024-03-27 10:57:32 -07:00
Max Radermacher
be4cada92d
Clean up some info lines 2024-03-27 12:08:43 -05:00
Elaine
1a5bacd220
Create Nicknames View Controller 2024-03-27 10:38:03 -06:00
Elaine
0887f70f1e
Streamline using a text view in a table view 2024-03-26 10:55:28 -06:00
Max Radermacher
8910fc4d5b
Move around files in SignalUI/ and the share ext 2024-03-25 14:22:28 -05:00
Elaine
1aad6898ac
Simplify using OWSTextField in OWSTableItem 2024-03-21 14:19:08 -06:00
Max Radermacher
42c704a4e3
Remove some debug/verbose lines 2024-03-19 19:24:54 -05:00
Marissa Le Coz
1139af694a
Add tooltip notifying that flip cam moved to pip 2024-03-19 17:11:30 -04:00
Harry
a55476d667
Modernize LinkPreviewManager 2024-03-19 13:46:09 -07:00
Ehren Kret
d4e17730f3 remove import SignalMessaging statements 2024-03-12 03:35:34 -05:00
Ehren Kret
9c7078b3f8 migrate OWSContactsManager to swift
as the last remaining objective-c file, this removed direct dependency
from the SignalMessaging framework headers on SignalServiceKit and
thus required adding lots of import statements
2024-03-09 10:45:55 -06:00
Harry
c84c97268c
Add thumbnail image generation methods to TSResourceStream 2024-03-08 19:28:12 -06:00
Elaine
192ee39f8c
Allow username QR codes to be scanned from main in-app camera 2024-03-08 15:59:30 -07:00