Message for no statuses
This commit is contained in:
parent
0a30ba67ed
commit
c70a9b6bb4
|
@ -13,6 +13,7 @@ struct TimelineView: View {
|
|||
var body: some View {
|
||||
NavigationStack(path: $navigator.path) {
|
||||
if statuses != nil {
|
||||
if !statuses!.isEmpty {
|
||||
ScrollView(showsIndicators: false) {
|
||||
Image("HeroIcon")
|
||||
.resizable()
|
||||
|
@ -29,6 +30,31 @@ struct TimelineView: View {
|
|||
.padding(.top)
|
||||
.background(Color.appBackground)
|
||||
.withAppRouter()
|
||||
} else {
|
||||
ZStack {
|
||||
Color.appBackground
|
||||
.ignoresSafeArea()
|
||||
|
||||
VStack {
|
||||
Image("HeroIcon")
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.frame(width: 50)
|
||||
.padding(.bottom)
|
||||
|
||||
ContentUnavailableView {
|
||||
Text("timeline.empty")
|
||||
.bold()
|
||||
} description: {
|
||||
Text("timeline.empty.description")
|
||||
}
|
||||
.scrollDisabled(true)
|
||||
}
|
||||
.scrollDisabled(true)
|
||||
.background(Color.appBackground)
|
||||
.frame(height: 150)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ZStack {
|
||||
Color.appBackground
|
||||
|
|
Loading…
Reference in New Issue