チャレンジ:SwiftUIナビゲーションの料理

熱々で、こんがりと焼け、謎の食材がふんだんに使われているものは何でしょうか。それはもちろん、すばらしい料理です。このチャレンジでは、「SwiftUI cookbook for navigation」のサンプルを、まったく新しいおいしさのレベルにまで高めます。ChallengeContentViewを設定し、スタックビュー、マルチコラムレイアウト、状態復元などのSwiftUIナビゲーションの材料を混ぜ合わせて、自分だけの料理を作りましょう。

課題を始める

シェフとなってSwiftUIを料理する前に、これらのレシピの背後にあるテクニックを理解することが重要です。WWDC22の「The SwiftUI cookbook for navigation」を見てから取り組みましょう。

  • WWDC22

The SwiftUI cookbook for navigation

The recipe for a great app begins with a clear and robust navigation structure. Join the SwiftUI team in our proverbial coding kitchen and learn how you can cook up a great experience for your app. We’ll introduce you to SwiftUI’s navigation stack and split view features, show you how you can...

今回の料理は、「Bringing robust navigation structure to your SwiftUI app」サンプルコードで調理します。お使いのデバイスにダウンロードして、チャレンジを始めてください。

Bringing robust navigation structure to your SwiftUI app

プロジェクトでStackContentView、TwoColumnContentView、またはThreeColumnContentViewを確認し、修正することで、SwiftUIの材料の感触をつかむことができます。

ChallengeContentViewでは、必要なナビゲーションの材料を組み合わせて、最高の料理を作ることができます。(また、「What’s new in SwiftUI」から新しいAPIをいくつかピックアップして、料理にスパイスを加えることもできます)。

  • WWDC22

What's new in SwiftUI

It's a SwiftUI party — and you're invited! Join us as we share the latest updates and a glimpse into the future of UI framework design. Discover deep levels of customization, advanced techniques for layout, elegant strategies for sharing, and rock-solid structural approaches for designing an app...

Explore #WWDC22Challenges on social media

Read the WWDC22 Challenges Terms and Conditions