Signal-iOS/SignalUI/Stories/StoryContextViewState.swift
2023-07-27 09:35:19 -06:00

20 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
}
}
}