Skip to content

Commit

Permalink
Demo properties on "views"
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlongco committed Nov 28, 2021
1 parent 75e8871 commit c32110e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Builder/DetailCardView.swift
Expand Up @@ -21,17 +21,17 @@ struct DetailCardView: ViewBuilder {
DLSCardView {
VStackView {
DetailPhotoView(photo: viewModel.photo(), name: viewModel.fullname)

.height(250)
VStackView {
NameValueView(name: "Address", value: viewModel.street)
NameValueView(name: "", value: viewModel.cityStateZip)
SpacerView(16)
SpacerView(8)
NameValueView(name: "Email", value: viewModel.email)
NameValueView(name: "Phone1", value: viewModel.phone)
SpacerView(16)
SpacerView(8)
NameValueView(name: "Age", value: viewModel.age)
}
.spacing(2)
.spacing(0)
.padding(20)
}
.onAppear { _ in
Expand All @@ -55,7 +55,6 @@ struct DetailPhotoView: ViewBuilder {
ImageView(photo)
.contentMode(.scaleAspectFill)
.clipsToBounds(true)

LabelView(name)
.alignment(.right)
.font(.title2)
Expand All @@ -65,7 +64,6 @@ struct DetailPhotoView: ViewBuilder {
.alpha(0.7)
.position(.bottom)
}
.height(250)
}
}

Expand Down

0 comments on commit c32110e

Please sign in to comment.