Sfoglia il codice sorgente

Update fix contact center & url force close

kevin 7 mesi fa
parent
commit
a41380bab8

+ 11 - 10
NexilisLite/NexilisLite/Resource/Palio.storyboard

@@ -598,6 +598,7 @@
                             </tableViewCell>
                         </prototypes>
                     </tableView>
+                    <navigationItem key="navigationItem" id="Qu0-c5-awh"/>
                 </viewController>
                 <placeholder placeholderIdentifier="IBFirstResponder" id="7fh-dr-hHj" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
             </objects>
@@ -3290,37 +3291,37 @@
             <color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
         </systemColor>
         <systemColor name="secondarySystemBackgroundColor">
-            <color red="0.94901960780000005" green="0.94901960780000005" blue="0.96862745100000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
         <systemColor name="systemBackgroundColor">
             <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
         </systemColor>
         <systemColor name="systemBlueColor">
-            <color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
         <systemColor name="systemGray2Color">
-            <color red="0.68235294120000001" green="0.68235294120000001" blue="0.69803921570000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="0.68235294117647061" green="0.68235294117647061" blue="0.69803921568627447" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
         <systemColor name="systemGray3Color">
-            <color red="0.78039215689999997" green="0.78039215689999997" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="0.7803921568627451" green="0.7803921568627451" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
         <systemColor name="systemGray4Color">
-            <color red="0.81960784310000001" green="0.81960784310000001" blue="0.83921568629999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="0.81960784313725488" green="0.81960784313725488" blue="0.83921568627450982" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
         <systemColor name="systemGrayColor">
-            <color red="0.5568627451" green="0.5568627451" blue="0.57647058819999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="0.55686274509803924" green="0.55686274509803924" blue="0.57647058823529407" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
         <systemColor name="systemGreenColor">
-            <color red="0.20392156859999999" green="0.78039215689999997" blue="0.34901960780000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="0.20392156862745098" green="0.7803921568627451" blue="0.34901960784313724" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
         <systemColor name="systemIndigoColor">
-            <color red="0.34509803919999998" green="0.33725490200000002" blue="0.83921568629999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="0.34509803921568627" green="0.33725490196078434" blue="0.83921568627450982" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
         <systemColor name="systemRedColor">
-            <color red="1" green="0.23137254900000001" blue="0.18823529410000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="1" green="0.23137254901960785" blue="0.18823529411764706" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
         <systemColor name="tintColor">
-            <color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </systemColor>
     </resources>
 </document>

+ 2 - 0
NexilisLite/NexilisLite/Source/APIS.swift

@@ -65,6 +65,8 @@ public class APIS: NSObject {
             controller.isOfficer = true
             controller.fromAPI = true
             let navigationController = CustomNavigationController(rootViewController: controller)
+            navigationController.setNavigationBarHidden(false, animated: false)
+            navigationController.navigationBar.isTranslucent = false
             navigationController.defaultStyle()
             if UIApplication.shared.visibleViewController?.navigationController != nil {
                 UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)

+ 1 - 1
NexilisLite/NexilisLite/Source/Extension.swift

@@ -764,7 +764,7 @@ extension String {
         let boldItalicFont = UIFont.systemFont(ofSize: 12, weight: .semibold)
         let textUTF8 = String(self.utf8)
         let finalText = NSMutableAttributedString(string: textUTF8, attributes: [NSAttributedString.Key.font: font])
-        finalText.addAttribute(.foregroundColor, value: UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? UIColor.white : UIColor.black, range: NSRange(location: 0, length: textUTF8.count + textUTF8.countEmojiCharacter()))
+// finalText.addAttribute(.foregroundColor, value: UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? UIColor.white : UIColor.black, range: NSRange(location: 0, length: finalText.length + textUTF8.countEmojiCharacter()))
         let boldSign: Character = "*"
         let italicSign: Character = "_"
         let underlineSign: Character = "^"

+ 15 - 8
NexilisLite/NexilisLite/Source/View/Control/HistoryCCViewController.swift

@@ -22,14 +22,21 @@ public class HistoryCCViewController: UITableViewController, QLPreviewController
         self.title = "Call Center History".localized()
         
         if fromAPI {
-            let imageButton = UIImageView(frame: CGRect(x: -16, y: 0, width: 20, height: 44))
-            imageButton.image = UIImage(systemName: "chevron.backward", withConfiguration: UIImage.SymbolConfiguration(pointSize: 20, weight: .regular, scale: .default))?.withTintColor(.white)
-            imageButton.contentMode = .left
-            let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didTapExit))
-            imageButton.isUserInteractionEnabled = true
-            imageButton.addGestureRecognizer(tapGestureRecognizer)
-            let leftItem = UIBarButtonItem(customView: imageButton)
-            self.navigationItem.leftBarButtonItem = leftItem
+            if let navigationBar = navigationController?.navigationBar {
+                    let appearance = UINavigationBarAppearance()
+                    appearance.configureWithOpaqueBackground() // or `.configureWithTransparentBackground()`
+                    navigationBar.standardAppearance = appearance
+                    navigationBar.scrollEdgeAppearance = appearance
+                    let imageButton = UIImageView(frame: CGRect(x: -16, y: 0, width: 20, height: 44))
+                    imageButton.image = UIImage(systemName: "chevron.backward", withConfiguration: UIImage.SymbolConfiguration(pointSize: 20, weight: .regular, scale: .default))?.withTintColor(.white)
+                    imageButton.contentMode = .left
+                    let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didTapExit))
+                    imageButton.isUserInteractionEnabled = true
+                    imageButton.addGestureRecognizer(tapGestureRecognizer)
+                    let leftItem = UIBarButtonItem(customView: imageButton)
+                    self.navigationItem.leftBarButtonItem = leftItem
+                }
+            tableView.contentInsetAdjustmentBehavior = .automatic
         }
         
     }