Fix previews

This commit is contained in:
Justin Mazzocchi 2020-08-26 15:36:11 -07:00
parent ea6b1edd3d
commit d2e84c984c
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
2 changed files with 9 additions and 1 deletions

View File

@ -9,6 +9,6 @@ import AppKit
extension TimelinesEndpoint: Stubbing {
func data(url: URL) -> Data? {
NSDataAsset(name: "TimelineJSON")!.data
NSDataAsset(name: "timelineJSON")!.data
}
}

View File

@ -13,3 +13,11 @@ struct StatusListView: UIViewControllerRepresentable {
}
}
#if DEBUG
struct StatusListView_Previews: PreviewProvider {
static var previews: some View {
StatusListView(viewModel: .development)
}
}
#endif