SwiftUI Fundamentals

Feb 28 2023 · Swift 5.7, macOS Venture 13.1, Xcode 14.2

Part 2: Navigation & Data Flow

14. Challenge: Navigation & Bindings

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 13. Present Modal Views Next episode: 15. State & State Objects

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

Now that you’ve got a bit of experience navigating between views, it’s time for a challenge.

NavigationView {
  VStack(spacing: 0.0) {
}
.navigationViewStyle(StackNavigationViewStyle())
  FeaturedCats(artists: mix.tracks.map(\.artist))
    .padding(.vertical)
    .background(Color.gray.opacity(0.2))
}
.navigationBarHidden(true)
List(mix.tracks) { track in
  NavigationLink(
    destination: DetailView(track: track),
    label: {
      TrackRow(track: track)
    })
}
@State private var showMessage = false
.onTapGesture {
  showMessage = true
}
.popover(isPresented: $showMessage, content: {
  MessagePopover()
})