diff --git a/src/assets/json/en/ios/wwdc/ios-wwdc-listnota11y.json b/src/assets/json/en/ios/wwdc/ios-wwdc-listnota11y.json index 860f0e48a..f72d15e87 100644 --- a/src/assets/json/en/ios/wwdc/ios-wwdc-listnota11y.json +++ b/src/assets/json/en/ios/wwdc/ios-wwdc-listnota11y.json @@ -10,6 +10,17 @@ "raccourcis": "", "profils": ["All","Accessibility","Dark Mode","Debugging","DocC","Formatting","Instruments","Keyboard","Keynote","Localization","Optimization","Platforms State...","Regex","Shortcuts","Swift","Swift Playgrounds","SwiftUI","What's new in...","Xcode"] }, + { + "themes": "WWDC 2023", + "title": "Build programmatic UI with Xcode Previews", + "type": [], + "tests": [], + "verifier": [], + "resultat": [], + "exception": "", + "raccourcis": "2023/2310252", + "profils": ["All","SwiftUI","Xcode"] + }, { "themes": "WWDC 2023", "title": "Expand on Swift macros", diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_1.png b/src/en/mobile/images/iOSdev/wwdc23-10252_1.png new file mode 100644 index 000000000..fe26481ba Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_1.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_10.png b/src/en/mobile/images/iOSdev/wwdc23-10252_10.png new file mode 100644 index 000000000..11a778f9a Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_10.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_11.png b/src/en/mobile/images/iOSdev/wwdc23-10252_11.png new file mode 100644 index 000000000..da181dc56 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_11.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_12.png b/src/en/mobile/images/iOSdev/wwdc23-10252_12.png new file mode 100644 index 000000000..662e66c17 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_12.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_13.png b/src/en/mobile/images/iOSdev/wwdc23-10252_13.png new file mode 100644 index 000000000..f04f32ff7 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_13.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_14.png b/src/en/mobile/images/iOSdev/wwdc23-10252_14.png new file mode 100644 index 000000000..1bf00ed77 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_14.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_15.png b/src/en/mobile/images/iOSdev/wwdc23-10252_15.png new file mode 100644 index 000000000..14fe5709b Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_15.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_16.png b/src/en/mobile/images/iOSdev/wwdc23-10252_16.png new file mode 100644 index 000000000..9eb9a28f8 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_16.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_17.png b/src/en/mobile/images/iOSdev/wwdc23-10252_17.png new file mode 100644 index 000000000..05b342462 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_17.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_18.png b/src/en/mobile/images/iOSdev/wwdc23-10252_18.png new file mode 100644 index 000000000..ca91efab2 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_18.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_19.png b/src/en/mobile/images/iOSdev/wwdc23-10252_19.png new file mode 100644 index 000000000..5eeb06092 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_19.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_2.png b/src/en/mobile/images/iOSdev/wwdc23-10252_2.png new file mode 100644 index 000000000..251fd4963 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_2.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_20.png b/src/en/mobile/images/iOSdev/wwdc23-10252_20.png new file mode 100644 index 000000000..a968f1cff Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_20.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_21.png b/src/en/mobile/images/iOSdev/wwdc23-10252_21.png new file mode 100644 index 000000000..06855eb37 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_21.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_22.png b/src/en/mobile/images/iOSdev/wwdc23-10252_22.png new file mode 100644 index 000000000..740331ea0 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_22.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_23.png b/src/en/mobile/images/iOSdev/wwdc23-10252_23.png new file mode 100644 index 000000000..2fedd2053 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_23.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_24.png b/src/en/mobile/images/iOSdev/wwdc23-10252_24.png new file mode 100644 index 000000000..9c8f80b97 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_24.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_25.png b/src/en/mobile/images/iOSdev/wwdc23-10252_25.png new file mode 100644 index 000000000..18e22d7ad Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_25.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_3.png b/src/en/mobile/images/iOSdev/wwdc23-10252_3.png new file mode 100644 index 000000000..0f44ea26d Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_3.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_4.png b/src/en/mobile/images/iOSdev/wwdc23-10252_4.png new file mode 100644 index 000000000..4b1b8415d Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_4.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_5.png b/src/en/mobile/images/iOSdev/wwdc23-10252_5.png new file mode 100644 index 000000000..c67b7ce10 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_5.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_6.png b/src/en/mobile/images/iOSdev/wwdc23-10252_6.png new file mode 100644 index 000000000..de3bc49e0 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_6.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_7.png b/src/en/mobile/images/iOSdev/wwdc23-10252_7.png new file mode 100644 index 000000000..8f3cc75e8 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_7.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_8.png b/src/en/mobile/images/iOSdev/wwdc23-10252_8.png new file mode 100644 index 000000000..21a68afad Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_8.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_9.png b/src/en/mobile/images/iOSdev/wwdc23-10252_9.png new file mode 100644 index 000000000..25d17500b Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_9.png differ diff --git a/src/en/mobile/images/iOSdev/wwdc23-10252_Poster.png b/src/en/mobile/images/iOSdev/wwdc23-10252_Poster.png new file mode 100644 index 000000000..554a63b65 Binary files /dev/null and b/src/en/mobile/images/iOSdev/wwdc23-10252_Poster.png differ diff --git a/src/en/mobile/ios/wwdc/nota11y/2023/2310252.md b/src/en/mobile/ios/wwdc/nota11y/2023/2310252.md new file mode 100644 index 000000000..9a7d6b7d7 --- /dev/null +++ b/src/en/mobile/ios/wwdc/nota11y/2023/2310252.md @@ -0,0 +1,326 @@ +--- +title : "Build programmatic UI with Xcode Previews" +abstract: "Learn how you can use the #Preview macro on Xcode 15 to quickly iterate on your UI code written in SwiftUI, UIKit, or AppKit." + +displayToc: true +--- + +# WWDC 2023: Build programmatic UI with Xcode Previews +Find hereafter a detailed summary of a video that belongs to a [taxonomy of some WWDC footages](../../). + +The original videos is available on the **Apple official website** ([session 10252](https://developer.apple.com/videos/play/wwdc2023/10252/)). + +![](../../../../../images/iOSdev/wwdc23-10252_Poster.png) + +"Learn how you can use the **#Preview macro on `Xcode 15`** to quickly iterate on your UI code written in SwiftUI, UIKit, or AppKit. Explore a collage of unique workflows for **interacting with views right in the canvas**, find out how to **view multiple variations of UI simultaneously**, and discover how you can **travel through your widget's timeline** in seconds to test the transitions between entries. We'll also show you how to add previews to libraries, provide sample assets, and preview your views in your physical devices to leverage their capabilities and existing data." +Hereafter, the underlined elements lead directly to the playback of the WWDC video at the appropriate moment. + + +## [Overview](https://developer.apple.com/videos/play/wwdc2023/10252/?time=87) +**Previews** are handled by the **#Preview macro** to return views that are automatically managed by the system when changes are added in the `Swift` code. +![](../../../../../images/iOSdev/wwdc23-10252_1.png) + +Using the previews leads towards [major pros](https://developer.apple.com/videos/play/wwdc2023/10252/?time=171) that streamline the code programing. + +![](../../../../../images/iOSdev/wwdc23-10252_2.png) + + +## [Previews contents](https://developer.apple.com/videos/play/wwdc2023/10252/?time=228) +Two different types of elements can be previewed: the **views** and the **widgets**. +### Views +![](../../../../../images/iOSdev/wwdc23-10252_6.png) +
+ +