mirror of
https://github.com/yattee/yattee.git
synced 2024-11-12 17:18:22 +00:00
21 lines
460 B
Swift
21 lines
460 B
Swift
import AVFoundation
|
|
import Foundation
|
|
|
|
final class AppState: ObservableObject {
|
|
@Published var showingChannel = false
|
|
@Published var channelID: String = ""
|
|
@Published var channel: String = ""
|
|
|
|
func openChannel(from video: Video) {
|
|
channel = video.author
|
|
channelID = video.channelID
|
|
showingChannel = true
|
|
}
|
|
|
|
func closeChannel() {
|
|
showingChannel = false
|
|
channel = ""
|
|
channelID = ""
|
|
}
|
|
}
|