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/931e6b513a3e6dc140d848eddb7db2ba to your computer and use it in GitHub Desktop.
Save rtking1993/931e6b513a3e6dc140d848eddb7db2ba to your computer and use it in GitHub Desktop.
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