Last active
June 5, 2019 16:31
-
-
Save rtking1993/931e6b513a3e6dc140d848eddb7db2ba to your computer and use it in GitHub Desktop.
Animal Details view for 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: - 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