-
Xcode 11 displays previews of your user interface right in the editor, streamlining the edit-debug-run cycle into a seamless workflow. Learn how previews work, how to optimize the structure of your SwiftUI app for previews, and how to add preview support to your existing views and view controllers.
Resources
Related Videos
WWDC19
-
0:00
0:30
0:48
0:51
1:06
You run the code. You navigate through a bunch of screens that you have already built before to this new screen, show it to them. And they say, "Hey that looks pretty good. But now that I see this thing in the flesh, that button, that could be a little bit more blue." That - that's no big deal. You quit the app, you open Xcode, you make the edit that you want to make. You run it again. You navigate through a bunch of screens to the new screen that you have just built. You show it to your designer. And they go, "Hey, that's much better. But the padding on that text is - it could be a little tighter, don't you think?" You get where I'm going with this story. This sort of iteration, this back-and-forth, is a normal process. It happens to all of us. And this is how we get great-looking apps. But this is something that's also potentially time consuming. And the time-consuming bit here is not the iteration itself. It's not the making of the small changes here and there. And it's not the getting of the feedback. It's the building and running and configuring and navigating and getting your app to the state where you can verify that the changes that you are making have the results you expect.
2:17
2:22
2:53
3:02
3:20
3:48
4:00
4:20
4:32
4:38
4:51
5:00
5:14
5:18
5:45
6:10
6:21
6:48
7:01
7:10
7:33
7:51
7:53
8:00
8:05
8:12
8:21
8:26
8:32
8:52
9:02
9:08
9:19
9:24
9:29
9:34
9:45
9:49
9:54
10:04
10:10
10:19
10:48
11:26
11:51
12:07
12:16
12:23
12:24
12:37
12:56
13:20
13:29
13:49
14:24
14:32
14:51
15:01
15:14
15:18
15:23
16:09
16:52
17:05
17:38
17:51
18:01
18:04
18:19
18:33
19:01
19:21
19:57
20:14
20:45
21:45
22:26
22:43
22:50
22:58
23:19
23:24
23:57
23:59
24:09
25:10
25:22
25:49
26:05
26:21
26:28
27:36
27:43
28:08
28:33
28:38
28:42
28:56
29:26
29:35
29:43
30:19
30:33
30:42
31:03
31:13
31:25
31:28
31:42
31:51
31:55
32:03
32:06
32:19
32:28
32:43
32:48
33:13
33:37
33:42
33:49
34:15
34:34
34:38
34:54
35:07
35:13
35:41
35:54
36:10
36:20
36:36
36:47
36:58
37:07
37:10
37:19
37:36
37:43
37:49
37:54
38:07
38:13
38:17
38:47
38:57
39:01
39:05
39:15
39:21
39:25
39:33
39:43
40:16
40:23
40:50
40:55
41:06
41:32
41:51
42:02
42:08
42:22
42:35
42:43
42:48
43:04
43:10
43:14
43:23
43:35
-