diff options
author | 2024-05-15 09:50:08 +0300 | |
---|---|---|
committer | 2024-05-15 09:50:08 +0300 | |
commit | 891418e90fe29515364a236a2bb9c81e2a37ff65 (patch) | |
tree | 35422be50e4b38534ba5a0d442c90668d7d07500 /JuickNext/LoadableState.swift | |
parent | 517bc874906e5b81cade91f5c7903736779fbeb0 (diff) |
Refactor & reorganize project
* LoadableState -> Result
Diffstat (limited to 'JuickNext/LoadableState.swift')
-rw-r--r-- | JuickNext/LoadableState.swift | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/JuickNext/LoadableState.swift b/JuickNext/LoadableState.swift deleted file mode 100644 index a45edb2..0000000 --- a/JuickNext/LoadableState.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// LoadableState.swift -// tst -// -// Created by Vitaly Takmazov on 10.12.2019. -// Copyright © 2019 com.juick. All rights reserved. -// - -import Foundation - -enum LoadableState<T> { - case loading - case fetched(Result<T, FetchError>) -} - -enum FetchError: Error { - case error(String) - - var localizedDescription: String { - switch self { - case .error(let message): - return message - } - } -} |