Skip to content

Commit c76c414

Browse files
remove default values from progress components' inits
1 parent c7bcd73 commit c76c414

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Sources/ComponentsKit/Components/CircularProgress/SUCircularProgress.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public struct SUCircularProgress: View {
3232
/// Initializer.
3333
/// - Parameters:
3434
/// - model: A model that defines the appearance properties.
35-
public init(model: CircularProgressVM = .init()) {
35+
public init(model: CircularProgressVM) {
3636
self.model = model
3737
}
3838

Sources/ComponentsKit/Components/CircularProgress/UKCircularProgress.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ open class UKCircularProgress: UIView, UKComponent {
6363
/// Initializer.
6464
/// - Parameters:
6565
/// - model: The model that defines the appearance properties.
66-
public init(model: CircularProgressVM = .init()) {
66+
public init(model: CircularProgressVM) {
6767
self.model = model
6868
super.init(frame: .zero)
6969

Sources/ComponentsKit/Components/ProgressBar/SUProgressBar.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ public struct SUProgressBar: View {
3131
/// Initializer.
3232
/// - Parameters:
3333
/// - model: A model that defines the appearance properties.
34-
public init(
35-
model: ProgressBarVM = .init()
36-
) {
34+
public init(model: ProgressBarVM) {
3735
self.model = model
3836
}
3937

Sources/ComponentsKit/Components/ProgressBar/UKProgressBar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ open class UKProgressBar: UIView, UKComponent {
7171
/// Initializer.
7272
/// - Parameters:
7373
/// - model: A model that defines the appearance properties.
74-
public init(model: ProgressBarVM = .init()) {
74+
public init(model: ProgressBarVM) {
7575
self.model = model
7676
super.init(frame: .zero)
7777

0 commit comments

Comments
 (0)