Browse Source

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
4517d1481d

+ 2 - 12
File Provider Extension UI/Base.lproj/MainInterface.storyboard

@@ -20,7 +20,7 @@
                                 <rect key="frame" x="47" y="136" width="256" height="128"/>
                             </imageView>
                             <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="title" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gdj-d0-nZ2">
-                                <rect key="frame" x="10" y="321.5" width="330" height="20.5"/>
+                                <rect key="frame" x="10" y="314" width="330" height="20.5"/>
                                 <accessibility key="accessibilityConfiguration" identifier="FPUInternalActionContentLabelIdentifier"/>
                                 <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
                                 <nil key="textColor"/>
@@ -36,26 +36,17 @@
                                     <action selector="cancelButtonTapped:" destination="J6p-g8-CHO" eventType="touchUpInside" id="rCq-0k-2gc"/>
                                 </connections>
                             </button>
-                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="description" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kLb-hP-5bh">
-                                <rect key="frame" x="10" y="362" width="330" height="18"/>
-                                <fontDescription key="fontDescription" type="system" pointSize="15"/>
-                                <nil key="textColor"/>
-                                <nil key="highlightedColor"/>
-                            </label>
                         </subviews>
                         <viewLayoutGuide key="safeArea" id="zTo-CZ-ppy"/>
                         <color key="backgroundColor" red="0.0" green="0.46000000000000002" blue="0.89000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                         <constraints>
-                            <constraint firstItem="kLb-hP-5bh" firstAttribute="top" secondItem="gdj-d0-nZ2" secondAttribute="bottom" constant="20" id="5tR-KF-UMP"/>
                             <constraint firstItem="gdj-d0-nZ2" firstAttribute="leading" secondItem="zTo-CZ-ppy" secondAttribute="leading" constant="10" id="BRI-CF-hj6"/>
                             <constraint firstItem="kiS-ZU-Z4Y" firstAttribute="centerX" secondItem="zTo-CZ-ppy" secondAttribute="centerX" id="Itg-ba-qVK"/>
+                            <constraint firstItem="gdj-d0-nZ2" firstAttribute="top" secondItem="kiS-ZU-Z4Y" secondAttribute="bottom" constant="50" id="OwB-BO-MCW"/>
                             <constraint firstItem="kiS-ZU-Z4Y" firstAttribute="centerY" secondItem="zTo-CZ-ppy" secondAttribute="centerY" id="XGS-xL-84k"/>
-                            <constraint firstItem="zTo-CZ-ppy" firstAttribute="bottom" secondItem="kLb-hP-5bh" secondAttribute="bottom" constant="20" id="Z8G-JC-dAi"/>
                             <constraint firstItem="kiS-ZU-Z4Y" firstAttribute="height" relation="lessThanOrEqual" secondItem="zTo-CZ-ppy" secondAttribute="height" id="bwc-bK-ais"/>
                             <constraint firstItem="zTo-CZ-ppy" firstAttribute="trailing" secondItem="gdj-d0-nZ2" secondAttribute="trailing" constant="10" id="dN2-Z5-GAe"/>
-                            <constraint firstItem="kLb-hP-5bh" firstAttribute="leading" secondItem="zTo-CZ-ppy" secondAttribute="leading" constant="10" id="eNt-sI-bVb"/>
                             <constraint firstItem="kiS-ZU-Z4Y" firstAttribute="width" relation="lessThanOrEqual" secondItem="zTo-CZ-ppy" secondAttribute="width" id="ivT-Jj-SZi"/>
-                            <constraint firstItem="zTo-CZ-ppy" firstAttribute="trailing" secondItem="kLb-hP-5bh" secondAttribute="trailing" constant="10" id="nKh-Xk-AcZ"/>
                             <constraint firstItem="3gV-2h-5zD" firstAttribute="leading" secondItem="zTo-CZ-ppy" secondAttribute="leading" constant="10" id="oJK-eI-5et"/>
                             <constraint firstItem="3gV-2h-5zD" firstAttribute="top" secondItem="zTo-CZ-ppy" secondAttribute="top" constant="5" id="p24-xC-TOw"/>
                         </constraints>
@@ -64,7 +55,6 @@
                     <size key="freeformSize" width="350" height="400"/>
                     <connections>
                         <outlet property="cancelButton" destination="3gV-2h-5zD" id="TGM-bK-FdL"/>
-                        <outlet property="descriptionError" destination="kLb-hP-5bh" id="8Sb-Mf-0SE"/>
                         <outlet property="titleError" destination="gdj-d0-nZ2" id="Jug-Il-Bvf"/>
                     </connections>
                 </viewController>

+ 0 - 3
File Provider Extension UI/DocumentActionViewController.swift

@@ -13,18 +13,15 @@ class DocumentActionViewController: FPUIActionExtensionViewController {
 
     @IBOutlet weak var cancelButton: UIButton!
     @IBOutlet weak var titleError: UILabel!
-    @IBOutlet weak var descriptionError: UILabel!
 
     override func loadView() {
         super.loadView()
 
         view.backgroundColor = NCBrandColor.shared.brand
         titleError.textColor = NCBrandColor.shared.brandText
-        descriptionError.textColor = NCBrandColor.shared.brandText
         cancelButton.setTitleColor(NCBrandColor.shared.brandText, for: .normal)
 
         titleError.text = ""
-        descriptionError.text = ""
     }
     override func prepare(forAction actionIdentifier: String, itemIdentifiers: [NSFileProviderItemIdentifier]) {
     }