mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 17:50:59 +00:00
Fix previews
This commit is contained in:
parent
ea6b1edd3d
commit
d2e84c984c
2 changed files with 9 additions and 1 deletions
|
@ -9,6 +9,6 @@ import AppKit
|
||||||
|
|
||||||
extension TimelinesEndpoint: Stubbing {
|
extension TimelinesEndpoint: Stubbing {
|
||||||
func data(url: URL) -> Data? {
|
func data(url: URL) -> Data? {
|
||||||
NSDataAsset(name: "TimelineJSON")!.data
|
NSDataAsset(name: "timelineJSON")!.data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,3 +13,11 @@ struct StatusListView: UIViewControllerRepresentable {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
struct StatusListView_Previews: PreviewProvider {
|
||||||
|
static var previews: some View {
|
||||||
|
StatusListView(viewModel: .development)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue