From 40da59275f288626eeec962a9262209c7ffb39d2 Mon Sep 17 00:00:00 2001 From: WindowsMEMZ Date: Wed, 31 Jul 2024 03:12:30 +0800 Subject: [PATCH] Fixed environment --- Sources/RadarKit/Environment.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/RadarKit/Environment.swift b/Sources/RadarKit/Environment.swift index abaa04c..4b86365 100644 --- a/Sources/RadarKit/Environment.swift +++ b/Sources/RadarKit/Environment.swift @@ -7,7 +7,7 @@ import SwiftUI -struct FAQViewKey: EnvironmentKey { +struct FAQViewKey: EnvironmentKey, Equatable { static var defaultValue: AnyView? = nil } extension EnvironmentValues { @@ -17,7 +17,7 @@ extension EnvironmentValues { } } -struct FeedbackTitleSampleKey: EnvironmentKey { +struct FeedbackTitleSampleKey: EnvironmentKey, Equatable { static var defaultValue: LocalizedStringKey = "" } extension EnvironmentValues { @@ -27,7 +27,7 @@ extension EnvironmentValues { } } -struct FeedbackAttachmentSelectorKey: EnvironmentKey { +struct FeedbackAttachmentSelectorKey: EnvironmentKey, Equatable { static var defaultValue: ((@escaping (String, String) -> Void) -> AnyView)? } extension EnvironmentValues { @@ -37,7 +37,7 @@ extension EnvironmentValues { } } -struct FeedbackExtDataKey: EnvironmentKey { +struct FeedbackExtDataKey: EnvironmentKey, Equatable { static var defaultValue: [String: String] = [:] } extension EnvironmentValues { @@ -47,7 +47,7 @@ extension EnvironmentValues { } } -struct TipperKey: EnvironmentKey { +struct TipperKey: EnvironmentKey, Equatable { static var defaultValue: ((LocalizedStringKey, String) -> Void)? } extension EnvironmentValues { @@ -57,7 +57,7 @@ extension EnvironmentValues { } } -struct NewFeedbackActionKey: EnvironmentKey { +struct NewFeedbackActionKey: EnvironmentKey, Equatable { static var defaultValue: (() -> Void)? } extension EnvironmentValues {