Cells view

This commit is contained in:
Arkadiusz Fal
2021-06-24 00:19:58 +02:00
parent cbcf58d5c7
commit 0e02a6e25a
13 changed files with 208 additions and 55 deletions

View File

@@ -6,6 +6,8 @@ final class AppState: ObservableObject {
@Published var channelID: String = ""
@Published var channel: String = ""
@Published var profile = Profile()
func openChannel(from video: Video) {
channel = video.author
channelID = video.channelID

View File

@@ -7,6 +7,14 @@ final class Profile: ObservableObject {
// let sid = "B3_WzklziGu8JKefihLrCsTNavdj73KMiPUBfN5HW2M="
let sid = "RpoS7YPPK2-QS81jJF9z4KSQAjmzsOnMpn84c73-GQ8="
let listing = VideoListing.cells
let cellsColumns = 3
}
enum VideoListing: String {
case list, cells
}
enum DefaultStreamResolution: String {