Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-Fabi committed Nov 20, 2023
1 parent 33357a4 commit 99c7f56
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions WaiterRobot/Ui/Core/RefreshableScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,24 @@ struct RefreshableScrollView<Content: View>: View {
}
}

#Preview("Refreshing") {
RefreshableScrollView(
isRefreshing: true,
onRefresh: {}
) {
Text("Refreshing")
struct Refreshing_Preview: PreviewProvider {

Check failure on line 63 in WaiterRobot/Ui/Core/RefreshableScrollView.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Type Name Violation: Type name 'Refreshing_Preview' should only contain alphanumeric and other allowed characters (type_name)
static var previews: some View {
RefreshableScrollView(
isRefreshing: true,
onRefresh: {}
) {
Text("Refreshing")
}
}
}

#Preview("Pull to refresh") {
RefreshableScrollView(
isRefreshing: false,
onRefresh: {}
) {
Text("Pull to refresh")
struct PullToRefresh_Preview: PreviewProvider {

Check failure on line 74 in WaiterRobot/Ui/Core/RefreshableScrollView.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Type Name Violation: Type name 'PullToRefresh_Preview' should only contain alphanumeric and other allowed characters (type_name)
static var previews: some View {
RefreshableScrollView(
isRefreshing: false,
onRefresh: {}
) {
Text("Pull to refresh")
}
}
}

0 comments on commit 99c7f56

Please sign in to comment.