Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Animal Details view for Safari Animals
// MARK: - Frameworks
import SwiftUI
// MARK: - AnimalDetail
struct AnimalDetail: View {
var animal: Animal
var body: some View {
VStack {
Spacer()
CircleImage(image: animal.image)
.offset(x: 0, y: -130)
.padding(.bottom, -130)
VStack(alignment: .leading) {
Text(animal.name)
.font(.title)
Text(animal.description)
.font(.subheadline)
}
.padding()
Spacer()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment