Skip to content

Commit

Permalink
Public Feedback primitive initialiser.
Browse files Browse the repository at this point in the history
  • Loading branch information
andersio committed Nov 19, 2017
1 parent 716b9cf commit 5e9c851
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ReactiveFeedback/Feedback.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import enum Result.NoError

public struct Feedback<State, Event> {
public let events: (Scheduler, Signal<State, NoError>) -> Signal<Event, NoError>

public init(events: @escaping (Scheduler, Signal<State, NoError>) -> Signal<Event, NoError>) {
self.events = events
}

public init<Control: Equatable, Effect: SignalProducerConvertible>(
query: @escaping (State) -> Control?,
Expand Down

0 comments on commit 5e9c851

Please sign in to comment.