Skip to content

Commit f77f876

Browse files
committed
Prevent Crash
1 parent b481abe commit f77f876

1 file changed

Lines changed: 14 additions & 22 deletions

File tree

Demo/Demo/ContentView.swift

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,27 @@ import SplashScreenKit
1111
struct ContentView: View {
1212
var body: some View {
1313
SplashScreen(
14-
images: [],
15-
title: "STRING",
16-
product: "STRING",
17-
caption: "STRING",
18-
cta: "STRING"
14+
images: [
15+
Photo("Apple TV 1"),
16+
Photo("Apple TV 2"),
17+
Photo("Apple TV 3"),
18+
Photo("Apple TV 4"),
19+
Photo("Apple TV 5"),
20+
Photo("Apple TV 6")
21+
],
22+
title: "Welcome to",
23+
product: "Apple TV",
24+
caption: "Browse all movies, TV shows, and more from Apple TV+. Watch all Apple Originals here.",
25+
cta: "Watch Now"
1926
) {
2027
// Button Action
28+
print("Hello, Apple TV!")
2129
}
2230
}
2331
}
2432

2533
#Preview("Apple TV") {
26-
SplashScreen(
27-
images: [
28-
Photo("Apple TV 1"),
29-
Photo("Apple TV 2"),
30-
Photo("Apple TV 3"),
31-
Photo("Apple TV 4"),
32-
Photo("Apple TV 5"),
33-
Photo("Apple TV 6")
34-
],
35-
title: "Welcome to",
36-
product: "Apple TV",
37-
caption: "Browse all movies, TV shows, and more from Apple TV+. Watch all Apple Originals here.",
38-
cta: "Watch Now"
39-
) {
40-
// Button Action
41-
print("Hello, Apple TV!")
42-
}
34+
ContentView()
4335
}
4436

4537
#Preview("Final Cut Camera") {

0 commit comments

Comments
 (0)