Skip to content

Commit ab11080

Browse files
committed
attempting to address EventHandler init method
Inheriting from `EventReceiver` yields an issue when attempting to override the `init` method. Calling `super.init()` results in an error, so this will hopefully fix it.
1 parent 7a05228 commit ab11080

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ let package = Package(
125125
dependencies: [
126126
.package(
127127
url: "https://github.com/Flowduino/EventDrivenSwift.git",
128-
.upToNextMajor(from: "1.0.0")
128+
.upToNextMajor(from: "1.1.0")
129129
),
130130
],
131131
//...
@@ -355,7 +355,7 @@ Now that we've walked through these basic Usage Examples, see if you can produce
355355
- **Event Pools** - A superset expanding upon a given `EventReceiver` descendant type to provide pooled processing based on given scaling rules and conditions.
356356
- **`UIEventReceiver`** - Will enable you to register Event Listener Callbacks to be executed on the UI Thread. This is required if you wish to use Event-Driven behaviour to directly update SwiftUI Views, for example.
357357

358-
These are the features intended for the next Release, which will either be *1.1.0* or *2.0.0* depending on whether these additions require interface-breaking changes to the interfaces in version *1.0.0*.
358+
These are the features intended for the next Release, which will either be *1.2.0* or *2.0.0* depending on whether these additions require interface-breaking changes to the interfaces in version *1.1.0*.
359359

360360
## License
361361

Sources/EventDrivenSwift/EventHandler/EventHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ open class EventHandler: ObservableThread, EventHandlable {
175175
}
176176
}
177177

178-
override init() {
178+
public override init() {
179179
super.init()
180180
start()
181181
}

Sources/EventDrivenSwift/EventReceiver/EventReceiver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ open class EventReceiver: EventHandler, EventReceivable {
120120
- Author: Simon J. Stuart
121121
- Version: 1.0.0
122122
*/
123-
override init() {
123+
public override init() {
124124
super.init()
125125
registerEventListeners()
126126
}

0 commit comments

Comments
 (0)