1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 14:20:32 +05:30
yattee/Shared/Player/Video Details/NoCommentsView.swift

29 lines
687 B
Swift
Raw Normal View History

2022-01-05 21:42:32 +05:30
import SwiftUI
struct NoCommentsView: View {
var text: String
var systemImage: String
var body: some View {
2022-12-18 18:09:39 +05:30
VStack(spacing: 10) {
2022-01-05 21:42:32 +05:30
Image(systemName: systemImage)
.font(.system(size: 36))
Text(text)
#if !os(tvOS)
.font(.system(size: 12))
#endif
}
.frame(minWidth: 0, maxWidth: .infinity, maxHeight: .infinity)
2022-01-05 21:42:32 +05:30
#if !os(tvOS)
.foregroundColor(.secondary)
#endif
}
}
struct NoCommentsView_Previews: PreviewProvider {
static var previews: some View {
NoCommentsView(text: "No comments", systemImage: "xmark.circle.fill")
}
}