Skip to content

Commit 53e2099

Browse files
committed
all features refactored
1 parent 1d28662 commit 53e2099

File tree

11 files changed

+97
-297
lines changed

11 files changed

+97
-297
lines changed

Sources/SwiftyKit/ExampleView.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class ExampleView: UIViewController {
3737
.distribution(.equalSpacing)
3838
}
3939
}.padding()
40-
}.addView(view)
40+
}.embedTo(view)
4141
.fillToSuperView()
4242
}
4343

@@ -46,13 +46,16 @@ final class ExampleView: UIViewController {
4646
UIImageView()
4747
.asyncImage(URL(string: image))
4848
.contentMode(.scaleAspectFill)
49-
.frame(width: 35.0.responsiveW, height: 35.0.responsiveW)
49+
.cornerRadius(8)
50+
.clipsToBounds(true)
51+
5052
UILabel("History")
5153
.font(.boldSystemFont(ofSize: 15))
5254
}.padding()
5355
.backgroundColor(.systemBackground)
5456
.cornerRadius(10)
5557
.shadow()
58+
.frame(width: 45.0.responsiveW, height: 50.responsiveW)
5659
}
5760
}
5861
#endif

Sources/SwiftyKit/Kit/Bases/BaseButton.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import UIKit
1919
/// .setTitle("Button Title")
2020
/// .padding(.horizontal)
2121
/// ```
22-
public final class BaseButton: UIButton {
22+
open class BaseButton: UIButton {
2323

2424
/// The closure that will be called when the button is clicked.
2525
private var didClick: (() -> Void)?

Sources/SwiftyKit/Kit/Bases/BaseScrollView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import UIKit
2929
/// }
3030
/// }
3131
/// ```
32-
public final class BaseScrollView: UIScrollView {
32+
open class BaseScrollView: UIScrollView {
3333

3434
/// The stack view that will hold the content.
3535
private let contentView = VerticalStack()

Sources/SwiftyKit/Kit/Bases/BaseSwitch.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import UIKit
1616
/// print("Switch value changed to \(value)")
1717
/// }
1818
/// ```
19-
public final class BaseSwitch: UISwitch {
19+
open class BaseSwitch: UISwitch {
2020

2121
private var didValueChanged: ((_ value: Bool) -> Void)?
2222

Sources/SwiftyKit/Kit/Bases/BaseTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import UIKit
2323
/// print("Text editing ended: \(text)")
2424
/// }
2525
/// ```
26-
public final class BaseTextField: UITextField {
26+
open class BaseTextField: UITextField {
2727

2828
/// The closure that will be called when the text field's text changes.
2929
private var onEdit: ((_ value: String) -> Void)?

Sources/SwiftyKit/Kit/Bases/BaseTextView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import UIKit
2323
/// print("Text editing ended: \(text)")
2424
/// }
2525
/// ```
26-
public final class BaseTextView: UITextView {
26+
open class BaseTextView: UITextView {
2727

2828
/// The closure that will be called when the text view's text changes.
2929
private var onEdit: ((_ value: String) -> Void)?

Sources/SwiftyKit/Kit/Bases/HorizontalStack.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import UIKit
1616
/// UILabel("Third Label")
1717
/// }
1818
/// ```
19-
public final class HorizontalStack: UIStackView {
19+
open class HorizontalStack: UIStackView {
2020

2121
/// Initializes a new instance of `HorizontalStack` with the given subviews.
2222
///

Sources/SwiftyKit/Kit/Bases/Spacer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ import UIKit
1717
/// UILabel("Third Label")
1818
/// }
1919
/// ```
20-
public final class Spacer: UIView {}
20+
open class Spacer: UIView {}
2121

Sources/SwiftyKit/Kit/Bases/VerticalStack.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import UIKit
1717
/// UILabel("Third Label")
1818
/// }
1919
/// ```
20-
public final class VerticalStack: UIStackView {
20+
open class VerticalStack: UIStackView {
2121

2222
/// Initializes a new instance of `VerticalStack` with the given subviews.
2323
///

Sources/SwiftyKit/Kit/Enums/Edges.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import UIKit
99
import SwiftUI
1010

1111
/// An enum representing the edges of a rectangle or a view.
12-
public enum Edges: Int8, CaseIterable {
12+
@frozen public enum Edges: Int8, CaseIterable {
1313
case top
1414
case leading
1515
case bottom

0 commit comments

Comments
 (0)