Added the "open" case to the Stack enumeration for the Browse module.

This commit is contained in:
Javier Cicchelli 2022-12-16 01:15:56 +01:00
parent 64b89b488f
commit 3ec892ae93

View File

@ -8,6 +8,7 @@
enum Stack {
case browse(Folder)
case open(Document)
}
// MARK: - Computed
@ -16,6 +17,8 @@ extension Stack {
var tag: String {
if case .browse(let folder) = self {
return folder.id
} else if case .open(let document) = self {
return document.id
} else {
return .Constants.noId
}