Quellcode durchsuchen

revert changes in EmptyStateLabel and Flex Label wrt the scope of access

cyberta vor 5 Jahren
Ursprung
Commit
ca965e3270
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 3 3
      deltachat-ios/View/EmptyStateLabel.swift
  2. 1 1
      deltachat-ios/View/FlexLabel.swift

+ 3 - 3
deltachat-ios/View/EmptyStateLabel.swift

@@ -1,9 +1,9 @@
 import UIKit
 import DcCore
 
-public class EmptyStateLabel: FlexLabel {
+class EmptyStateLabel: FlexLabel {
 
-    public override var text: String? {
+    override var text: String? {
         set {
             guard let newValue = newValue else {
                 super.label.attributedText = nil
@@ -26,7 +26,7 @@ public class EmptyStateLabel: FlexLabel {
         }
     }
 
-    public override init() {
+    override init() {
         super.init()
         label.backgroundColor = DcColors.systemMessageBackgroundColor
         label.textColor = DcColors.defaultTextColor

+ 1 - 1
deltachat-ios/View/FlexLabel.swift

@@ -2,7 +2,7 @@ import UIKit
 
 /// view that contains a label (horizontally centered) and
 /// allows it's label to grow/shrink within it's available space
-public class FlexLabel: UIView {
+class FlexLabel: UIView {
 
     var text: String? {
         set {