TM-SGNL-iOS/SignalUI/Stories/StoryContextViewState.swift
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

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