Huge refactor to add better structure to the project. Separating features with their associated view and model structure. This should be better organization and will allow us to improve the overall architecture in the future. I forsee many more improvements that can follow this change. e.g. MVVM Arch As well as cleaning up duplicate, unused, functionality. Many files have global functions that can also be moved or be renamed. damus/ ├── Features/ │ ├── <Feature>/ │ │ ├── Views/ │ │ └── Models/ ├── Shared/ │ ├── Components/ │ ├── Media/ │ ├── Buttons/ │ ├── Extensions/ │ ├── Empty Views/ │ ├── ErrorHandling/ │ ├── Modifiers/ │ └── Utilities/ ├── Core/ │ ├── Nostr/ │ ├── NIPs/ │ ├── DIPs/ │ ├── Types/ │ ├── Networking/ │ └── Storage/ Signed-off-by: ericholguin <ericholguin@apache.org>
30 lines
705 B
Swift
30 lines
705 B
Swift
//
|
|
// EmptyNotificationsView.swift
|
|
// damus
|
|
//
|
|
// Created by Sam DuBois on 12/17/22.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct EmptyTimelineView: View {
|
|
var body: some View {
|
|
VStack {
|
|
Image("question")
|
|
.font(.system(size: 35))
|
|
.padding()
|
|
Text("Nothing to see here. Check back later!", comment: "Indicates that there are no notes in the timeline to view.")
|
|
.multilineTextAlignment(.center)
|
|
.font(.callout.weight(.medium))
|
|
}
|
|
.foregroundColor(.gray)
|
|
.padding()
|
|
}
|
|
}
|
|
|
|
struct EmptyTimelineView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
EmptyTimelineView()
|
|
}
|
|
}
|