Commit Graph

19 Commits

Author SHA1 Message Date
Max Radermacher
c4286aa3e5
Fix crash when backgrounding on iOS 16 2024-06-07 13:34:18 -05: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
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
93ea189a13
Safety number screen follow ups 2023-07-19 15:17:10 -07:00
Igor Solomennikov
0686b39547 Add necessary imports to Swift files.
Those would be required for future PRs.
2023-06-13 14:46:12 -07:00
Harry
f728457039
Update build target to iOS 13.0 2023-06-08 16:21:20 -07:00
Igor Solomennikov
498d173a68 Remove now unused OWSViewControllerObjc. 2023-06-05 16:18:17 -07:00
Igor Solomennikov
76c7b2db28
Convert ChatListVC to Swift. 2023-06-05 16:13:41 -07:00
Igor Solomennikov
c58de3bb5e
Convert RecipientPickerVC to Swift. 2023-06-05 09:59:34 -07:00
Igor Solomennikov
c054f3de91
Remove unnecessary "@objc" in SignalUI. 2023-05-16 16:39:19 -07:00
Igor Solomennikov
bb2b665f6f
Convert Theme to Swift. 2023-05-02 12:49:36 -07:00
Harry
33e686319c
Use iOS 13+ UINavigationBarAppearance for navbar styling
* Use iOS 13+ UINavigationBarAppearance for navbar styling

* various individual view controller navbar style tweaks and fixes

* Remove unused navigation bar styles

* rename 'default' style blur

* Apply blur style to the UIVisualEffectView generated by UINavigationBarAppearance

* Use iOS 12 navbar blur method on iOS 13 since its bugged

* Fix on iOS 15, use old method on iOS 14

* PR comment nits

* explicitly invalidate KVO observers
2022-12-13 16:17:41 -08:00
Harry
f76dc500a7
Fix onboarding & gif picker on iOS 12
* Fix crash in OnboardingNavigationController on iOS 12
* Fix Gif picker on iOS 12
* Update comment & avoid explicit invocations

Co-authored-by: Max Radermacher <max@signal.org>
2022-11-21 11:16:41 -08:00
Max Radermacher
49fa221d3f Fix OWSNavigationController initializer on iOS 12 2022-11-17 16:11:18 -08:00
Harry
190c56b68b
Fix broken navigation when interactive back swiping on root nav controller 2022-11-09 11:59:38 -08:00
Harry
ca64272c56
Fix janky animation caused by uneccessary navbar hidden state changes
* Fix janky animation caused by uneccessary navbar hidden state changes

* Temporary fix for layout crash issues that re-introduces navbar sizing issue
2022-11-08 16:56:03 -08:00
Harry
b415f4f70e
Fix some issues with OWSNavigationController.swift
* this is the dumbest bug fix I have ever experienced

* Fix uneccesary setNavigationBarHidden messing with scroll gestures

* update comment
2022-11-04 16:21:13 -07:00
Harry
520faa95df
Refactor OWSNavigationController
* make shouldCancelNavigationBack a var

* rename OWSNavigationView->OWSNavigationChildController

* forward delegate calls to OWSNavigationController

* apply theme and style to OWSNavigationBar consistently

fix themeing on gif picker controller

* Use topPinned navbar position. Size the blur effect view using the background view

* Use fade animation when hiding the navigation bar

* fix issues with reduced transparency setting

* pr feedback
2022-11-03 16:40:47 -07:00
Harry
d06babf59f
Translate OWSNavigationController to swift
* Translate OWSNavigationController to swift

* pr feedback
2022-11-03 15:33:02 -07:00