Adding a small empty timeline view to make it more obvious when there is no content and when there is content
This commit is contained in:
committed by
William Casarin
parent
ea8394e7cf
commit
d7d8076bee
29
damus/Views/Empty Views/EmptyTimelineView.swift
Normal file
29
damus/Views/Empty Views/EmptyTimelineView.swift
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// EmptyNotificationsView.swift
|
||||
// damus
|
||||
//
|
||||
// Created by Sam DuBois on 12/17/22.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct EmptyTimelineView: View {
|
||||
var body: some View {
|
||||
VStack {
|
||||
Image(systemName: "tray.fill")
|
||||
.font(.system(size: 35))
|
||||
.padding()
|
||||
Text("Nothing to see here. Check back later!")
|
||||
.multilineTextAlignment(.center)
|
||||
.font(.callout.weight(.medium))
|
||||
}
|
||||
.foregroundColor(.gray)
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
||||
struct EmptyTimelineView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
EmptyTimelineView()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user