1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 06:40:32 +05:30
yattee/Apple TV/VideosListView.swift

24 lines
586 B
Swift
Raw Normal View History

2021-06-27 04:59:55 +05:30
import Defaults
2021-06-24 03:49:58 +05:30
import SwiftUI
struct VideosListView: View {
var videos: [Video]
var body: some View {
Section {
List {
ForEach(videos) { video in
2021-06-28 20:32:13 +05:30
VideoListRowView(video: video)
.contextMenu { VideoContextMenuView(video: video) }
2021-06-24 03:49:58 +05:30
.listRowInsets(listRowInsets)
}
}
.listStyle(GroupedListStyle())
}
}
var listRowInsets: EdgeInsets {
EdgeInsets(top: .zero, leading: .zero, bottom: .zero, trailing: 30)
}
}