Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions AsyncSwift/Views/StampView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,30 @@ struct StampView: View {
notScannedView
}
}
.padding(36)
.navigationTitle("Stamp")
.padding(36)
.navigationTitle("Stamp")
}
} // body
} // View

private extension StampView {

@ViewBuilder
var stampBack: some View {
Image("Seminar002StampBack")
.resizable()
.aspectRatio(contentMode: .fit)
.shadow(color: Color(.sRGB, red: 0, green: 0, blue: 0, opacity: 0.2), radius: 20, x: 0, y: 4) //TODO: 디자인 수정 사항이 있습니다.
.shadow(color: Color(.sRGB, red: 0, green: 0, blue: 0, opacity: 0.2), radius: 20 , x: 40 * frontDegree / 90, y: 4)
.rotation3DEffect(Angle(degrees: frontDegree), axis: (x: 0, y: 1, z: 0))
}

@ViewBuilder
var stampFront: some View {
Image("Seminar002StampFront")

.resizable()
.aspectRatio(contentMode: .fit)
.shadow(color: Color(.sRGB, red: 0, green: 0, blue: 0, opacity: 0.2), radius: 20, x: 0, y: 4) //TODO: 디자인 수정 사항이 있습니다.
.shadow(color: Color(.sRGB, red: 0, green: 0, blue: 0, opacity: 0.2), radius: 20, x: 40 * backDegree / 90, y: 4)
.rotation3DEffect(Angle(degrees: backDegree), axis: (x: 0, y: 1, z: 0))
}

Expand Down