Tweaks to the Use Case screen ready for review.

Update strings.
Show the custom server field as needed.
Enable scroll edges appearance for white navigation bar.
This commit is contained in:
Doug
2022-02-04 16:10:03 +00:00
parent 2cef1a7398
commit 9dd22024a1
14 changed files with 73 additions and 27 deletions
@@ -28,6 +28,10 @@ class VectorHostingController: UIHostingController<AnyView> {
private var theme: Theme
// MARK: Public
var enableNavigationBarScrollEdgesAppearance = false
init<Content>(rootView: Content) where Content: View {
self.theme = ThemeService.shared().theme
super.init(rootView: AnyView(rootView.vectorContent()))
@@ -67,7 +71,7 @@ class VectorHostingController: UIHostingController<AnyView> {
private func update(theme: Theme) {
if let navigationBar = self.navigationController?.navigationBar {
theme.applyStyle(onNavigationBar: navigationBar)
theme.applyStyle(onNavigationBar: navigationBar, withModernScrollEdgesAppearance: enableNavigationBarScrollEdgesAppearance)
}
}
}