Преглед изворни кода

Clear code

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana пре 2 година
родитељ
комит
a37ba2b8d5
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      iOSClient/Settings/NCManageE2EE.swift

+ 4 - 4
iOSClient/Settings/NCManageE2EE.swift

@@ -171,7 +171,7 @@ struct NCViewE2EE: View {
 
                     List {
 
-                        Section(header: SectionView(height: 10), footer:Text(manageE2EE.statusOfService + "\n\n" + "End-to-End Encryption " + versionE2EE)) {
+                        Section(header: Text(""), footer:Text(manageE2EE.statusOfService + "\n\n" + "End-to-End Encryption " + versionE2EE)) {
                             Label {
                                 Text(NSLocalizedString("_e2e_settings_activated_", comment: ""))
                                     .font(NCBrandFont.shared.settings)
@@ -229,7 +229,7 @@ struct NCViewE2EE: View {
 
                     List {
 
-                        Section(header: SectionView(height: 10), footer:Text(manageE2EE.statusOfService + "\n\n" + "End-to-End Encryption " + versionE2EE)) {
+                        Section(header: Text(""), footer:Text(manageE2EE.statusOfService + "\n\n" + "End-to-End Encryption " + versionE2EE)) {
                             Label {
                                 Text(NSLocalizedString("_e2e_settings_start_", comment: ""))
                                     .font(NCBrandFont.shared.settings)
@@ -310,6 +310,8 @@ struct DeleteCerificateSection: View {
     }
 }
 
+// MARK: - Preview / Test
+
 struct SectionView: View {
 
     @State var height: CGFloat = 0
@@ -323,8 +325,6 @@ struct SectionView: View {
     }
 }
 
-// MARK: - Preview
-
 struct NCViewE2EETest: View {
 
     var body: some View {