Moved the ViewStatus enumeration from the BrowseView view to its own file for the Browse module.
This commit is contained in:
parent
bc40f46649
commit
64b89b488f
16
Modules/Sources/Browse/UI/Enumerations/ViewStatus.swift
Normal file
16
Modules/Sources/Browse/UI/Enumerations/ViewStatus.swift
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
//
|
||||||
|
// ViewStatus.swift
|
||||||
|
// Browse
|
||||||
|
//
|
||||||
|
// Created by Javier Cicchelli on 16/12/2022.
|
||||||
|
// Copyright © 2022 Röck+Cöde. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
enum ViewStatus {
|
||||||
|
case noCredentials
|
||||||
|
case notSupported
|
||||||
|
case loading
|
||||||
|
case loaded
|
||||||
|
case empty
|
||||||
|
case error
|
||||||
|
}
|
@ -175,18 +175,6 @@ private extension BrowseView {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Enumerations
|
|
||||||
|
|
||||||
private extension BrowseView {
|
|
||||||
enum ViewStatus {
|
|
||||||
case noCredentials
|
|
||||||
case loading
|
|
||||||
case loaded
|
|
||||||
case empty
|
|
||||||
case error
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - Previews
|
// MARK: - Previews
|
||||||
|
|
||||||
struct BrowseView_Previews: PreviewProvider {
|
struct BrowseView_Previews: PreviewProvider {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user