mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 07:28:28 +02:00
Made StateStoreViewModel state mutable and removed the reducer for all the features using it.
This commit is contained in:
committed by
Stefan Ceriu
parent
fc9e95aee8
commit
313b05485a
@@ -19,7 +19,7 @@ import Combine
|
||||
|
||||
@available(iOS 14, *)
|
||||
typealias AnalyticsPromptViewModelType = StateStoreViewModel<AnalyticsPromptViewState,
|
||||
AnalyticsPromptStateAction,
|
||||
Never,
|
||||
AnalyticsPromptViewAction>
|
||||
@available(iOS 14, *)
|
||||
class AnalyticsPromptViewModel: AnalyticsPromptViewModelType {
|
||||
@@ -54,10 +54,6 @@ class AnalyticsPromptViewModel: AnalyticsPromptViewModelType {
|
||||
openTermsURL()
|
||||
}
|
||||
}
|
||||
|
||||
override class func reducer(state: inout AnalyticsPromptViewState, action: AnalyticsPromptStateAction) {
|
||||
// There is no mutable state to reduce :)
|
||||
}
|
||||
|
||||
/// Enable analytics. The call to the Analytics class is made in the completion.
|
||||
private func enable() {
|
||||
|
||||
Reference in New Issue
Block a user