diff --git a/AsyncSwift/Views/StampView.swift b/AsyncSwift/Views/StampView.swift index 03a0031..7b6f9a1 100644 --- a/AsyncSwift/Views/StampView.swift +++ b/AsyncSwift/Views/StampView.swift @@ -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)) }