From d2e84c984c0429dc2d4b76a14a693f5a88e14baf Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Wed, 26 Aug 2020 15:36:11 -0700 Subject: [PATCH] Fix previews --- .../Mastodon API Stubs/TimelinesEndpoint+Stubbing.swift | 2 +- iOS/Views/StatusListView.swift | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Development Assets/Mastodon API Stubs/TimelinesEndpoint+Stubbing.swift b/Development Assets/Mastodon API Stubs/TimelinesEndpoint+Stubbing.swift index d4b35a7..66fad3b 100644 --- a/Development Assets/Mastodon API Stubs/TimelinesEndpoint+Stubbing.swift +++ b/Development Assets/Mastodon API Stubs/TimelinesEndpoint+Stubbing.swift @@ -9,6 +9,6 @@ import AppKit extension TimelinesEndpoint: Stubbing { func data(url: URL) -> Data? { - NSDataAsset(name: "TimelineJSON")!.data + NSDataAsset(name: "timelineJSON")!.data } } diff --git a/iOS/Views/StatusListView.swift b/iOS/Views/StatusListView.swift index 0251b81..e2cd891 100644 --- a/iOS/Views/StatusListView.swift +++ b/iOS/Views/StatusListView.swift @@ -13,3 +13,11 @@ struct StatusListView: UIViewControllerRepresentable { } } + +#if DEBUG +struct StatusListView_Previews: PreviewProvider { + static var previews: some View { + StatusListView(viewModel: .development) + } +} +#endif