Skip to content

Commit f9c5398

Browse files
committed
Fixes in accessibility access
1 parent 7b7acfa commit f9c5398

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Sources/MiniSwift/Store.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class Store<State: StateType, StoreController: Disposable>: ObservableTyp
6464

6565
private var _initialState: State
6666
public let dispatcher: Dispatcher
67-
private var storeController: StoreController
67+
public var storeController: StoreController
6868

6969
private let queue = DispatchQueue(label: "atomic state")
7070

Sources/MiniSwift/Utils/Middleware/TestMiddleware.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ public class TestMiddleware: Middleware {
3636
return TestOnlyAction()
3737
}
3838
}
39+
40+
public init() { }
3941

4042
/// Check if a given action have been intercepted before by the Middleware.
4143
///
4244
/// - Parameter action: action to be checked
4345
/// - Returns: returns true if an action with the same params have been intercepted before.
44-
func contains(action: Action) -> Bool {
46+
public func contains(action: Action) -> Bool {
4547
return interceptedActions.contains(where: {
4648
action.isEqual(to: $0)
4749
})
@@ -51,12 +53,12 @@ public class TestMiddleware: Middleware {
5153
///
5254
/// - Parameter kind: Action type to be checked against the intercepted actions.
5355
/// - Returns: Array of actions of `kind` being intercepted.
54-
func actions<T: Action>(of kind: T.Type) -> [T] {
56+
public func actions<T: Action>(of kind: T.Type) -> [T] {
5557
return interceptedActions.compactMap { $0 as? T }
5658
}
5759

5860
/// Clear all the intercepted actions
59-
func clear() {
61+
public func clear() {
6062
interceptedActions.removeAll()
6163
}
6264
}

Sources/MiniSwift/Utils/Service/LoggingService.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ public class LoggingService: Service {
2525
NSLog(String(dumping: action))
2626
}
2727
}
28+
29+
public init() { }
2830
}

0 commit comments

Comments
 (0)