Skip to content
Snippets Groups Projects
Commit dd9c6b49 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update ErrorFeature

parent 2ce9a024
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!19Update example app
......@@ -59,6 +59,10 @@ let package = Package(
url: "https://github.com/kishikawakatsumi/KeychainAccess.git",
.upToNextMajor(from: "4.2.2")
),
.package(
url: "https://github.com/pointfreeco/xctest-dynamic-overlay.git",
.upToNextMajor(from: "0.3.3")
),
],
targets: [
.target(
......@@ -106,6 +110,10 @@ let package = Package(
name: "ElixxirDAppsSDK",
package: "elixxir-dapps-sdk-swift"
),
.product(
name: "XCTestDynamicOverlay",
package: "xctest-dynamic-overlay"
),
],
swiftSettings: swiftSettings
),
......
import ComposableArchitecture
import SwiftUI
import XCTestDynamicOverlay
public struct ErrorState: Equatable {
public init(error: NSError) {
......@@ -17,8 +17,6 @@ public struct ErrorEnvironment {
public let errorReducer = Reducer<ErrorState, ErrorAction, ErrorEnvironment>.empty
#if DEBUG
extension ErrorEnvironment {
public static let failing = ErrorEnvironment()
public static let unimplemented = ErrorEnvironment()
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment