Amended the previews for the FeedListViewController view controller in the Feed framework.
This commit is contained in:
parent
d7cd78cd5a
commit
55a878b467
@ -451,15 +451,6 @@ private extension UIEdgeInsets {
|
||||
#if DEBUG
|
||||
import ReviewsiTunesKit
|
||||
|
||||
@available(iOS 17.0, *)
|
||||
#Preview("Feed List loading reviews") {
|
||||
MockURLProtocol.response = .init(statusCode: 404)
|
||||
|
||||
return UINavigationController(rootViewController: FeedListViewController(.init(
|
||||
configuration: .init(session: .mock)
|
||||
)))
|
||||
}
|
||||
|
||||
@available(iOS 17.0, *)
|
||||
#Preview("Feed List with few reviews") {
|
||||
MockURLProtocol.response = .init(
|
||||
@ -530,6 +521,15 @@ import ReviewsiTunesKit
|
||||
)))
|
||||
}
|
||||
|
||||
@available(iOS 17.0, *)
|
||||
#Preview("Feed List with error when loading reviews") {
|
||||
MockURLProtocol.response = .init(statusCode: 404)
|
||||
|
||||
return UINavigationController(rootViewController: FeedListViewController(.init(
|
||||
configuration: .init(session: .mock)
|
||||
)))
|
||||
}
|
||||
|
||||
@available(iOS 17.0, *)
|
||||
#Preview("Feed List with live reviews") {
|
||||
return UINavigationController(rootViewController: FeedListViewController(.init()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user