Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Animal List for Safari Animals
// MARK: - Frameworks
import SwiftUI
// MARK: - AnimalList
struct AnimalList: View {
var body: some View {
NavigationView {
List(Animal.all) { animal in
NavigationButton(destination: AnimalDetail(animal: animal)) {
AnimalRow(animal: animal)
.navigationBarTitle(Text("Animals"), displayMode: .large)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment