Skip to content

Instantly share code, notes, and snippets.

@rtking1993
Last active June 5, 2019 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtking1993/872f24ea180a58f05ba416346b460a36 to your computer and use it in GitHub Desktop.
Save rtking1993/872f24ea180a58f05ba416346b460a36 to your computer and use it in GitHub Desktop.
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