Merge pull request #120 from snikket-im/iOS15-UI-Fixes

- #118 Fixed UI Issues for iOS-15
This commit is contained in:
Matthew Wild 2021-10-05 11:36:40 +01:00 committed by GitHub
commit f147ae9b51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View file

@ -70,7 +70,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
}
_ = JingleManager.instance;
UINavigationBar.appearance().tintColor = UIColor(named: "tintColor");
if #available(iOS 15, *) {
let appearance = UINavigationBarAppearance()
appearance.configureWithOpaqueBackground()
appearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.black]
appearance.backgroundColor = UIColor(named: "chatslistBackground")
UINavigationBar.appearance().standardAppearance = appearance;
UINavigationBar.appearance().scrollEdgeAppearance = appearance
}
NotificationManager.instance.initialize(provider: MainNotificationManagerProvider());
xmppService.initialize();
Settings.setDefaultSettings()

View file

@ -458,6 +458,8 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<color key="selectedImageTintColor" name="tintColor"/>
<tabBarAppearance key="standardAppearance"/>
<tabBarAppearance key="scrollEdgeAppearance"/>
</tabBar>
<connections>
<segue destination="JxF-gw-olp" kind="relationship" relationship="viewControllers" id="ifN-oQ-Gcj"/>
@ -472,9 +474,9 @@
<!--Contacts-->
<scene sceneID="x6U-yq-dO2">
<objects>
<tableViewController id="mps-t3-QBq" customClass="RosterViewController" customModule="Snikket" customModuleProvider="target" sceneMemberID="viewController">
<tableViewController extendedLayoutIncludesOpaqueBars="YES" id="mps-t3-QBq" customClass="RosterViewController" customModule="Snikket" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" id="dbg-Pp-Ujo">
<rect key="frame" x="0.0" y="0.0" width="428" height="838"/>
<rect key="frame" x="0.0" y="0.0" width="428" height="926"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="separatorColor" systemColor="systemBackgroundColor"/>
@ -553,7 +555,6 @@
<outlet property="delegate" destination="mps-t3-QBq" id="ZYI-Wf-ZtU"/>
</connections>
</tableView>
<extendedEdge key="edgesForExtendedLayout" bottom="YES"/>
<navigationItem key="navigationItem" title="Contacts" id="SEz-IM-IWL">
<barButtonItem key="backBarButtonItem" title=" " id="NYU-vU-24f">
<attributedString key="userComments">