Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Animal model file for sample Safari Animals
// MARK: - Frameworks
import SwiftUI
// MARK: - Animal
struct Animal: Hashable, Identifiable {
// MARK: - Variables
var id: Int
var name: String
var description: String
var imageName: String
// MARK: - Dynamic Varaibles
var image: Image {
return Image(imageName)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment