mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-05-30 19:30:45 +02:00
Essential changes for Xcode 11 beta4
This commit is contained in:
@@ -6,7 +6,7 @@ public final class Store<StateType>: BindableObject where StateType: StateMachin
|
||||
private let initialState: StateType
|
||||
private var subsequentStates: [StateType] = []
|
||||
|
||||
public let didChange = PassthroughSubject<Void, Never>()
|
||||
public let willChange = PassthroughSubject<Void, Never>()
|
||||
|
||||
public init(state: StateType) {
|
||||
initialState = state
|
||||
@@ -23,7 +23,7 @@ public final class Store<StateType>: BindableObject where StateType: StateMachin
|
||||
var currentStateIndex: Int = 0 {
|
||||
didSet {
|
||||
withAnimation {
|
||||
didChange.send(())
|
||||
willChange.send(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user