mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 06:40:32 +05:30
24 lines
586 B
Swift
24 lines
586 B
Swift
import Defaults
|
|
import SwiftUI
|
|
|
|
struct VideosListView: View {
|
|
var videos: [Video]
|
|
|
|
var body: some View {
|
|
Section {
|
|
List {
|
|
ForEach(videos) { video in
|
|
VideoListRowView(video: video)
|
|
.contextMenu { VideoContextMenuView(video: video) }
|
|
.listRowInsets(listRowInsets)
|
|
}
|
|
}
|
|
.listStyle(GroupedListStyle())
|
|
}
|
|
}
|
|
|
|
var listRowInsets: EdgeInsets {
|
|
EdgeInsets(top: .zero, leading: .zero, bottom: .zero, trailing: 30)
|
|
}
|
|
}
|