File tree Expand file tree Collapse file tree 11 files changed +97
-297
lines changed Expand file tree Collapse file tree 11 files changed +97
-297
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ final class ExampleView: UIViewController {
37
37
. distribution ( . equalSpacing)
38
38
}
39
39
} . padding ( )
40
- } . addView ( view)
40
+ } . embedTo ( view)
41
41
. fillToSuperView ( )
42
42
}
43
43
@@ -46,13 +46,16 @@ final class ExampleView: UIViewController {
46
46
UIImageView ( )
47
47
. asyncImage ( URL ( string: image) )
48
48
. contentMode ( . scaleAspectFill)
49
- . frame ( width: 35.0 . responsiveW, height: 35.0 . responsiveW)
49
+ . cornerRadius ( 8 )
50
+ . clipsToBounds ( true )
51
+
50
52
UILabel ( " History " )
51
53
. font ( . boldSystemFont( ofSize: 15 ) )
52
54
} . padding ( )
53
55
. backgroundColor ( . systemBackground)
54
56
. cornerRadius ( 10 )
55
57
. shadow ( )
58
+ . frame ( width: 45.0 . responsiveW, height: 50 . responsiveW)
56
59
}
57
60
}
58
61
#endif
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import UIKit
19
19
/// .setTitle("Button Title")
20
20
/// .padding(.horizontal)
21
21
/// ```
22
- public final class BaseButton : UIButton {
22
+ open class BaseButton : UIButton {
23
23
24
24
/// The closure that will be called when the button is clicked.
25
25
private var didClick : ( ( ) -> Void ) ?
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import UIKit
29
29
/// }
30
30
/// }
31
31
/// ```
32
- public final class BaseScrollView : UIScrollView {
32
+ open class BaseScrollView : UIScrollView {
33
33
34
34
/// The stack view that will hold the content.
35
35
private let contentView = VerticalStack ( )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import UIKit
16
16
/// print("Switch value changed to \(value)")
17
17
/// }
18
18
/// ```
19
- public final class BaseSwitch : UISwitch {
19
+ open class BaseSwitch : UISwitch {
20
20
21
21
private var didValueChanged : ( ( _ value: Bool ) -> Void ) ?
22
22
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import UIKit
23
23
/// print("Text editing ended: \(text)")
24
24
/// }
25
25
/// ```
26
- public final class BaseTextField : UITextField {
26
+ open class BaseTextField : UITextField {
27
27
28
28
/// The closure that will be called when the text field's text changes.
29
29
private var onEdit : ( ( _ value: String ) -> Void ) ?
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import UIKit
23
23
/// print("Text editing ended: \(text)")
24
24
/// }
25
25
/// ```
26
- public final class BaseTextView : UITextView {
26
+ open class BaseTextView : UITextView {
27
27
28
28
/// The closure that will be called when the text view's text changes.
29
29
private var onEdit : ( ( _ value: String ) -> Void ) ?
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import UIKit
16
16
/// UILabel("Third Label")
17
17
/// }
18
18
/// ```
19
- public final class HorizontalStack : UIStackView {
19
+ open class HorizontalStack : UIStackView {
20
20
21
21
/// Initializes a new instance of `HorizontalStack` with the given subviews.
22
22
///
Original file line number Diff line number Diff line change @@ -17,5 +17,5 @@ import UIKit
17
17
/// UILabel("Third Label")
18
18
/// }
19
19
/// ```
20
- public final class Spacer : UIView { }
20
+ open class Spacer : UIView { }
21
21
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import UIKit
17
17
/// UILabel("Third Label")
18
18
/// }
19
19
/// ```
20
- public final class VerticalStack : UIStackView {
20
+ open class VerticalStack : UIStackView {
21
21
22
22
/// Initializes a new instance of `VerticalStack` with the given subviews.
23
23
///
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import UIKit
9
9
import SwiftUI
10
10
11
11
/// An enum representing the edges of a rectangle or a view.
12
- public enum Edges : Int8 , CaseIterable {
12
+ @ frozen public enum Edges : Int8 , CaseIterable {
13
13
case top
14
14
case leading
15
15
case bottom
You can’t perform that action at this time.
0 commit comments