Skip to content

Commit 1f7bbda

Browse files
committed
1.0.1 release - Added required base Init
Everything needs to have a base Init method, otherwise Factories for types descending from these won't be constructable via Type Reference.
1 parent 515efd2 commit 1f7bbda

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ iOSInjectionProject/
9292
.swiftpm/xcode/.DS_Store
9393
Sources/.DS_Store
9494
Tests/.DS_Store
95+
Package.resolved

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let package = Package(
2727
dependencies: [
2828
.package(
2929
url: "https://github.com/Flowduino/Observable.git",
30-
.upToNextMajor(from: "1.0.0")
30+
.upToNextMajor(from: "1.0.1")
3131
),
3232
],
3333
//...

Sources/Observable/ObservableClass.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,8 @@ open class ObservableClass: Observable, ObservableObject {
6060
}
6161
}
6262
}
63+
64+
required public init() {
65+
66+
}
6367
}

Sources/Observable/ObservableThread.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,8 @@ open class ObservableThread: Thread, Observable, ObservableObject {
123123
objectWillChange.send()
124124
}
125125
}
126+
127+
required override public init() {
128+
super.init()
129+
}
126130
}

Sources/Observable/ObservableThreadSafeClass.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,8 @@ open class ObservableThreadSafeClass: Observable, ObservableObject {
123123
objectWillChange.send()
124124
}
125125
}
126+
127+
required public init() {
128+
129+
}
126130
}

0 commit comments

Comments
 (0)