Эх сурвалжийг харах

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 жил өмнө
parent
commit
63d6377dcd

+ 7 - 3
iOSClient/Settings/NCManageE2EE.swift

@@ -26,15 +26,19 @@ import SwiftUI
 @objc
 class NCManageE2EEInterface: NSObject {
     @objc func makeShipDetailsUI() -> UIViewController {
-        var details = NCManageE2EE()
+        let details = NCManageE2EE()
         return UIHostingController(rootView: details)
     }
 }
 
 struct NCManageE2EE: View {
     var body: some View {
-        Text("Hello, world!")
-            .navigationTitle("Cifratura End-To-End")
+        VStack {
+            Text("Hello, world! 1")
+            Text("Hello, world! 2")
+            Text("Hello, world! 3")
+        }
+        .navigationTitle("Cifratura End-To-End")
     }
 }
 

+ 1 - 0
iOSClient/Settings/NCSettings.m

@@ -115,6 +115,7 @@
         row = [XLFormRowDescriptor formRowDescriptorWithTag:@"e2eEncryption" rowType:XLFormRowDescriptorTypeButton title:title];
         row.cellConfigAtConfigure[@"backgroundColor"] = UIColor.secondarySystemGroupedBackgroundColor;
         [row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
+        [row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
         [row.cellConfig setObject:UIColor.labelColor forKey:@"textLabel.textColor"];
         [row.cellConfig setObject:[[UIImage imageNamed:@"lock"] imageWithColor:NCBrandColor.shared.gray size:25] forKey:@"imageView.image"];
         row.action.formSelector = @selector(manageE2EE:);