Animal Row for each animal in Safari Animals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - Frameworks | |
import SwiftUI | |
// MARK: - AnimalRow | |
struct AnimalRow: View { | |
var animal: Animal | |
var body: some View { | |
HStack { | |
Text(animal.name) | |
Spacer() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment