Commit Graph

20 Commits

Author SHA1 Message Date
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