19 lines
368 B
Swift
19 lines
368 B
Swift
//
|
|
// Copyright 2023 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public enum StoryContextViewState: Equatable {
|
|
case unviewed
|
|
case viewed
|
|
case noStories
|
|
|
|
var hasStoriesToDisplay: Bool {
|
|
switch self {
|
|
case .noStories: return false
|
|
case .viewed, .unviewed: return true
|
|
}
|
|
}
|
|
}
|