فهرست منبع

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 سال پیش
والد
کامیت
61f32781d2
1فایلهای تغییر یافته به همراه14 افزوده شده و 13 حذف شده
  1. 14 13
      iOSClient/Settings/NCManageE2EE.swift

+ 14 - 13
iOSClient/Settings/NCManageE2EE.swift

@@ -167,7 +167,7 @@ struct NCViewE2EE: View {
 
                     List {
 
-                        Section(footer:Text("End-to-End Encription " + versionE2EE + "\n" + manageE2EE.statusOfService)) {
+                        Section(header: SectionView(height: 15), footer:Text("End-to-End Encription " + versionE2EE + "\n" + manageE2EE.statusOfService)) {
                             Label {
                                 Text(NSLocalizedString("_e2e_settings_activated_", comment: ""))
                             } icon: {
@@ -312,6 +312,19 @@ struct DeleteCerificateSection: View {
     }
 }
 
+struct SectionView: View {
+
+    @State var height: CGFloat = 0
+    @State var text: String = ""
+
+    var body: some View {
+        HStack {
+            Text(text)
+        }
+        .frame(maxWidth: .infinity, minHeight: height, alignment: .bottomLeading)
+    }
+}
+
 struct NCViewE2EETest: View {
 
     var body: some View {
@@ -344,18 +357,6 @@ struct NCViewE2EETest: View {
         }
     }
 }
-struct SectionView: View {
-
-    @State var height: CGFloat = 0
-    @State var text: String = ""
-
-    var body: some View {
-        HStack {
-            Text(text)
-        }
-        .frame(maxWidth: .infinity, minHeight: height, alignment: .bottomLeading)
-    }
-}
 
 struct NCViewE2EE_Previews: PreviewProvider {
     static var previews: some View {