Commit Graph

35 Commits

Author SHA1 Message Date
Max Radermacher
624ee6359d
Add memory safe localized string method 2026-04-03 16:20:31 -05:00
Max Radermacher
41ee7e4be6
Clean up UIColor extensions 2026-03-31 16:42:28 -05:00
Pete Walters
b198b9e8a9
Fix a permissions issue related to validating media tier attachments. 2026-02-06 15:18:24 -06:00
Max Radermacher
7f0e73ab16
Run swiftformat . using v0.59.0 2026-01-28 14:16:20 -06:00
Max Radermacher
523b2de637
Adjust enforced attachment size limits 2026-01-15 16:13:09 -06:00
Max Radermacher
c3ecdf6823
Don’t re-encode images repeatedly 2026-01-15 12:06:12 -06:00
Sasha Weiss
d267ec8305
Run swiftformat . 2025-12-30 11:34:05 -08:00
Igor Solomennikov
effab076b4
Sticker picker redesign.
1. Sticker pack toolbar is now at the bottom of the "sticker keyboard" in chat.
2. Sticker pack toolbar is now "floating" in a a glass panel on iOS 26, both in sticker keyboard in chat and in full-screen sticker picker in media editor.
3. There's some helper text when "recent stickers" panel is empty.
2025-11-25 13:12:10 -08:00
Max Radermacher
ea3e1474af
Simplify video trimming logic; remove unused code 2025-11-13 17:52:19 -06:00
Elaine
9d8ff66a45
Glass member action sheet 2025-11-04 22:30:47 -05:00
Max Radermacher
b6264c0e6b
Asyncify outputAttachmentsPromise 2025-11-03 12:48:42 -06:00
Max Radermacher
2c2c7e0251
Remove OWSImageSource.hasAlpha(…) 2025-10-21 00:10:29 -05:00
Max Radermacher
2bc550eddf
Add DataImageSource 2025-10-21 00:09:39 -05:00
Max Radermacher
c0094036a4
Remove unused cropping code 2025-10-20 20:17:04 -05:00
Max Radermacher
28e28a44cf
Remove unused mimeType code 2025-10-20 20:13:38 -05:00
Igor Solomennikov
af48dd5186
Workaround for dysfunctional UIKeyboardLayoutGuide on iOS 15.
• bring back keyboard frame tracking to OWSViewController if running on iOS 15.
• add our own layout guide to OWSViewController that is updated based on keyboard frame notifications on iOS 15; on newer iOS versions it's a proxy to view.keyboardLayoutGuide.
• use OWSViewController.keyboardLayoutGuide where needed.
• in media composer screen (not OWSVIewController subclass) we already track keyboard frame - use that to position bottom toolbar on iOS 15.

I have also discovered that profile avatar editing screen was somewhat broken on older (15, 16) iOS versions. Fixed that here.
2025-10-02 10:12:45 -07:00
Igor Solomennikov
22e5ac2181
Fix instances where super.viewDidLoad wasn't called. 2025-09-30 01:39:53 -05:00
Igor Solomennikov
ac2a39c09a
Remove keyboard frame tracking from OWSViewController.
Let individual view controllers do the layout using (relatively) new UIView.keyboardLayoutGuide.
2025-09-23 12:03:32 -07:00
Igor Solomennikov
f2ce8ecd5f
Remove UIFont.dynamicTypeBody2 - it's the same as subheadline. 2025-09-08 20:10:43 -05:00
Elaine
b0c5451237
Update action sheet style 2025-08-21 11:13:50 -07:00
Max Radermacher
43191d1939
Asyncify image blurring methods 2025-08-14 14:17:59 -05:00
Harry
1210f747fd
Fix icon tint colors throughout the app 2024-08-29 12:54:19 -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
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
Harry
bb083ca39c
Fold SignalCoreKit into SignalServiceKit
Co-authored-by: Adam Sharp <sharplet@signal.org>
2024-06-26 08:44:41 -07:00
Max Radermacher
7f1bcbf991
Stop tracking pending calls at the app layer 2024-05-24 14:39:57 -05:00
Max Radermacher
34eca8a139
Fix some dependency cycles with CallService 2024-05-14 11:46:52 -05:00
Harry
768040273e
Create StickerMetadata from TSResourceStream 2024-05-03 16:26:01 -07:00
Ehren Kret
b63a2d6bf4 migrate NSData+Image to swift 2024-04-26 05:24:55 -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
Ehren Kret
9197f8ac8e move mimeTypeForFileExtension to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
ed6cdb675a migrate isDefinitelyAnimated/isMaybeAnimated to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
de101a0c31 inline isAudio/isVideo/isImage/isBinaryData 2024-04-11 22:19:16 -05: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
Max Radermacher
8910fc4d5b
Move around files in SignalUI/ and the share ext 2024-03-25 14:22:28 -05:00